I still do not have any supportive answer for my issues. I am not sure why simple mundane things are taking time. I was expecting that Gurus at Telerik should be able to provide me the answer.
I had two major issues:
- Styles and skins not showing up properly
- Sorting behavior not working properly.
I did following things in order to make it working.
- For my first issues, I found the fix. I still do not have any definitive solution from their end.
I was using the skin file in App_theme folder of my ASP.NET application.
<telerik:RadGrid runat="server" EnableEmbeddedBaseStylesheet="True" EnableEmbeddedSkins="false" ImagesPath="~/global/radcontrols/Grid/MyLink" Skin="BrokerLink">
</telerik:RadGrid>
I took the code from the skin file and put in the individual grid of my ACSX page which goes into the SharePoint.
<telerik:RadGrid ID="uiUserGrid" runat="server" AutoGenerateColumns="False" GridLines="None"
AllowPaging="True" AllowSorting="true" PageSize="20" EnableEmbeddedBaseStylesheet="True" EnableEmbeddedSkins="false" ImagesPath="~/_layouts/global/radcontrols/Grid/MyLink" Skin="MyLink">
I know this is not the best approach since I have to do it for all RadGrids in my application. However, this is what I came up as a fix.
I am still looking for telerik help.
- For my second issues, I found that the issue was with the <ASP:UpdatePanel> tag in the following code. If I take it out, sorting begins to work.
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<telerik:RadGrid ID="uiUserGrid" runat="server" AutoGenerateColumns="False" GridLines="None"
AllowPaging="True" AllowSorting="true" PageSize="20">
I am not sure why UpdatePanel does not work inside a user control embedded within a SharePoint web part.
In one place, I noticed people talking about using Telerik RadAjaxManager. I used the following block of code. However, it still did not work.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="uiUserGrid" >
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="uiUserGrid" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
At this time, I am desparately looking for Telerik to help me resolve UpdatePanel issues related to a RadGrid.
PLEASE HELP!!!