This is a migrated thread and some comments may be shown as answers.

Bind Column data based on previously populated rows

1 Answer 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ash
Top achievements
Rank 1
Ash asked on 28 Mar 2012, 01:45 AM
Hi,

Could you please help me with this scenario.

I am binding a radgrid with primary event data (eventid, locationid, centerid, date) from a list1 and sorting it using SortExpression.  if a certain criteria is met  i need to check the date of the (sorted) first row and find the nearest secondary event date from list2 and add the comuln (template column) during runtime.

Please note the page is still not loaded, How do i access the sorted list that will be shown on UI? How do i populate the template column with data?

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 02 Apr 2012, 06:44 AM
Hello Ash,

You could achieve your scenario by accessing the rows in RadGrid PreRender event. Additionally, you could go through the help articles below for more information on how to access items in RadGrid and how to use the GridTemplateColumn.

Greetings,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Ash
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or