Solved

Telerik Radgrid select column

Posted on 2016-10-11
5
28 Views
Last Modified: 2016-11-14
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
Comment
Question by:lrbrister
  • 3
5 Comments
 
LVL 13

Expert Comment

by:Naman Goel
ID: 41839792
so are you trying to set the checkbox value or just select the row.
0
 

Author Comment

by:lrbrister
ID: 41840058
The checkbox only
0
 

Accepted Solution

by:
lrbrister earned 0 total points
ID: 41880597
I have found my own solution.
It was the simple matter of moving a nested function to within a loop
0
 

Author Closing Comment

by:lrbrister
ID: 41886026
Found my own solution
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Calling web service and its methods dynamically 2 42
vb.net checkbox 7 41
.NET tools for adding thread safety to a web app? 3 17
Problem to picture file 20 34
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now