Does anyone know how to programmatically select items in a multiextended radlistcontrol?

2 Answers 52 Views
ListControl
Jay
Top achievements
Rank 1
Iron
Iron
Jay asked on 14 Oct 2023, 05:34 AM

There is nothing in the docs about this after four hours of searching. I can only conclude there isn't support for this functionality but find that difficult to believe.

 

Thanks,.

 

2 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 16 Oct 2023, 11:38 AM

Hi Jay,

Thank you for reaching out to us. 

To programmatically select items in multiextend selection mode, you will need to manually set the Selected property of the required RadListDataItems to true. Check the following code snippet.

private void radButton1_Click(object sender, EventArgs e)
{
    List<int> selected = new List<int>();
    selected.Add(1);
    selected.Add(3);
    foreach (RadListDataItem item in this.radListControl1.Items)
    {
        if (selected.Contains(Convert.ToInt32(item.Value)))
        {
            item.Selected = true;
        }
    }
}

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Dinko | Tech Support Engineer
Telerik team
commented on 18 Oct 2023, 09:44 AM

I want to follow up on my question. You are right that the suggested approach is not mentioned in our documentation. I have logged an internal task to update the Selection article of the RadListControl to include how to select items programmatically in each selection mode.

I have updated your Telerik Points for bringing this behavior to our attention.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Oct 2023, 05:47 AM

Hi, Jay,

After reviewing the currently available documentation for the selection functionality in RadListControl, we have several ideas in mind for potential improvements. However, since your feedback is valuable to us, it would be greatly apricated if you share what information exactly you want to find in a documentation article for a certain feature. Thus, we can identify if other documentation articles would also need to be revised.

Since we strive to follow a specific structure and internal style guide when creating documentation resources, it is essential for us to gather feedback by our customers. This is a common approach to identify potential areas for improvements and adjust the documentation content whenever it is necessary. 

Off topic, I would like to encourage you to use the ninja that pops up on the right side of the page and share your toughs and ideas what to be included in the respective article:

We review the documentation feedback on a regular basis and address the constructive feedback accordingly. Thank you for your cooperation.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ListControl
Asked by
Jay
Top achievements
Rank 1
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or