I'm using radgrid with the detail table.
I need to change the expand-collapse button of the radgrid to
SinglePlus.gif so that the users can easily identify that the detail table is there.Please give a solution, i'm providing the users to change the theme too. So the change should be applicable when applying different themes.
Thanks In Advance
19 Answers, 1 is accepted
You can try out the following css settings to change the Expand/Collapse images in your grid:
Thank you very much for fast reply.
I tried with the css that you provided. But the image is not shown when we can expand and collapse the detail table. Is it needed to set any other property for setting the image visibility to true??
I didn't got a reply from the telerik team the last answered was Princy but that solution was not enough to solve the issue. Please some one have an attention to this problem and give me a solution.
This is for the first time for the Telerik Team that I'm not getting a response. 2 days had already passed i didn't got any reply. Is there any maintenance work going behind.
Please help me
Try out the following settings and see if it helps:
Thank you very much. The code worked. I know that the telerik team would provide the solution at the earliest.
Once again Thanks a lot...
I have the same issue and the above code is not working for me.
Following is my code
Following is my code.
Though, I have specified "Image Button" , it still retains the push button and the Text of the Group gets pushed to the next row. Please advise.
Try the following code in ColumnCreated event to change the group expand/collapse image.
That last indication did not work for me.
So, i added OnColumnCreated="rgProcessos_ColumnCreated" to <telerik:RadGrid ... >
After, i put the following code in file.cs:
protected void rgProcessos_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
if (e.Column is GridGroupSplitterColumn)
(e.Column as GridGroupSplitterColumn).ExpandImageUrl = "Images/SinglePlus.gif";
(e.Column as GridGroupSplitterColumn).CollapseImageUrl = "Images/SingleMinus.gif";
Am i doing something wrong?
I'm not sure if you want to set Grouping image or Expand/Collapse image on hierarchy. Please take a look at the below code snippet.
Thank you Princy.
I have a radgrid with one detailtable inside it and a gridtableview inside the detailtable. I want to have expand/collapse image and expand and collapse functionality for the gridtableview records.
For ex: if "order id" and "date ordered" are columns inside the gridtableview, there should be expand/collapse image and I should be expand and collapse the records.
You can traverse the detail tables using the approach demonstrated in the following article and apply your custom logic to display or hide the expand buttons:
Hope this helps.
Thanks for the reply.
I would require some more help. In the above link, the columns: order id, Date Ordered, Employee Id are inside the gridtableview.
Please share with me the code that displays the expand/collapse image against the header of the above columns, so that the records of the gridtableview can be expanded and collapsed. Right now, the expand collapse image does not display by default in my screen.
Do you mean the ExpandAll button as demonstrated here?
Or perhaps you use NestedViewTemplate?
Generally, this requirement is not supported. You can log it as a feature request in our improvements portal and our dev team may consider implementing it for the future releases:
Nevertheless, you can try to incorporate some custom solution similar to this:
Hope this helps.