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

[Solved] Controlling the row expansion arror

2 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Reid
Top achievements
Rank 2
Reid asked on 09 May 2012, 08:15 PM
Hi,

Is there a way to tap into the rendering of a row indicator when the row has children in a hierachy? I would like to in markup, check if there is a count of an item in the Model and if so show one arrow type  (image)  and if not another arrow type.


Thanks,
Reid                                                         

2 Answers, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 14 May 2012, 03:40 PM
Hi Reid,

There is no built in configuration to specify the arrow image used for expanding the detail view - you need to use jQuery to change it. Also if you are using Ajax binding there is no way you can detect on the client if the child Grid has records or not before expanding the row and thus performing a request to the server.

Kind regards,
Petur Subev
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Reid
Top achievements
Rank 2
answered on 14 May 2012, 09:43 PM
Hi Peter,

Ok that's right about the client, something I was not thinking about.

Thanks,
Reid
Tags
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Petur Subev
Telerik team
Reid
Top achievements
Rank 2
Share this question
or