[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 85
  • 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 GoelSoftware engineer 1Commented:
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

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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