[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 79
  • Last Modified:

Telerik Radgrid select column

I am having trouble setting all selectcolumns to selected in a RadGrid

My code is setting ONLY the last row to selected as you can see in my screen print

This is my HTML
<telerik:GridClientSelectColumn UniqueName="ChkCharge" HeaderText="Charge">
</telerik:GridClientSelectColumn>

Open in new window


This is my code in the pre-render sub
The TryCast does nothing whether I set the text or set to checked
For Each item As GridDataItem In rgMyCustomers.MasterTableView.Items
    item.Selected = True
    ' TryCast(item("ChkCharge").Controls(0), CheckBox).Text = "LL"
Next

Open in new window


SCreen Print
0
lrbrister
Asked:
lrbrister
  • 3
1 Solution
 
Naman GoelCommented:
so are you trying to set the checkbox value or just select the row.
0
 
lrbristerAuthor Commented:
The checkbox only
0
 
lrbristerAuthor Commented:
I have found my own solution.
It was the simple matter of moving a nested function to within a loop
0
 
lrbristerAuthor Commented:
Found my own solution
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now