Using the latest SP of 2015.2.
I have a Hierarchy RadGrid with the following options set:
<ClientEvents OnRowClick="expandCollapseRow" />
function expandCollapseRow(sender, args)
var item = args.get_item();
This works great - but if I don't click on the Expand/Collapse Icon directly - the icon does not change. I think this may be a bug with set_expanded()
8 Answers, 1 is accepted
Thank you for contacting us.
I am afraid I was unable to replicate the issue locally. Please check out the attached sample which uses the same approach as the one you have shown but in my sample the expand/collapse icon is changed. Could you please let me know how it differs from your real setup?
I tried using a NestedViewTemplate and on my side the expand collapse images are changes. Could you please check out the attached sample and let me know how it differs from your real setup? I would appreciate if you can replicate it issue either in my sample or in a small runnable one in order to investigate it further.
I prepared a video where you can see that the sample works properly on my end with the same version of the controls. Nevertheless, could you please check for any client side exception which might prevent changing the icons? Also could you please verify that you are not using any custom styles on the page?
Thank you for your video ...
I figured out that the reason was the renderMode ... by default I set it to lightweight ... after setting back to classic it works...
Thank you very much!
It looks like a bug in Lightweight rendering of the grid. I logged it in our system and also create an item in our Ideas&Feedback portal to track the progress. Meanwhile you can manually change the icons when you expand/collapse an item. Please check out the following code snippet.
As a token of gratitude for your help to find the bug your Telerik points have been updated.