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

Add text after the GroupContinuedFormatString

3 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff Wowk
Top achievements
Rank 1
Jeff Wowk asked on 05 Mar 2014, 11:47 PM
Is there a way to add data driven text after all of the GroupContinued and GroupSplit strings.  I assume this would have to done in the ItemDataBound event or the ColumnCreated event?

Example
ParentFolder: 3020-20-02 Computer Hardware Purchases (Showing 24 of 68 items. Group continues on the next page.) <Add text here>

3 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 10 Mar 2014, 12:47 PM
Hello Jeff,

A possible solution is to get the GridHeaderItem and add a text at the end of it. i prepared a small sample and attached it to this thread. Please give it a try and let me know about the result.

Regards,
Kostadin
Telerik

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

0
Jeff Wowk
Top achievements
Rank 1
answered on 10 Mar 2014, 03:26 PM
Thanks for the reply

The example you provided works fine.  Quick question.  I've been using the ItemDataBound event to makes changes to controls in my radgrid.  It's also where I had code very similar to your solution, but my txt was being placed in between the two strings.  My question is, is the PreRender event a more efficient  place to make these changes?
0
Kostadin
Telerik team
answered on 13 Mar 2014, 12:41 PM
Hello Jeff,

If you want to add the text at the end of the string you have to use the PreRender event handler, because the text between the brackets is added after the ItemDataBound event handler. On the other hand if you want to add the text before the text between the brackets then you could use ItemDataBound event handler.

Regards,
Kostadin
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
Grid
Asked by
Jeff Wowk
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Jeff Wowk
Top achievements
Rank 1
Share this question
or