I have a webdatagrid that I display a list of classes and allow the user to select which class they want. I apply the 'RubberBlack' CSS to the grid. It was working fine with version 13.1. I recently upgraded to version 14.1. The CSS no longer applies itself to the grid. I am attaching the html associated with the grid itself. Thanks in advance.
<ig:WebDataGrid ID="grdClasses" runat="server" Height="500px" Width="800px" EnableAjax="false" AutoGenerateColumns="False" DataKeyFields="id" StyleSetName="RubberBlack"> <ClientEvents /> <Columns> <ig:BoundDataField DataFieldName="id" DataType="System.Int32" Key="id" Width="100px" Hidden="true"> <Header Text="id" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="classdate" DataType="System.String" Key="classdate" Width="80px" EnableMultiline="true"> <Header Text="Class Date(s)" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="classtimes" DataType="System.String" Key="classtimes" Width="140px" EnableMultiline="true"> <Header Text="Class Times" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="session" DataType="System.String" Key="session" Width="50px" > <Header Text="Session" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="cost" DataType="System.String" Key="cost" Width="55px" DataFormatString="{0:C}"> <Header Text="Cost" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="location" DataType="System.String" Key="location" Width="280px" EnableMultiline="true"> <Header Text="Location" /> </ig:BoundDataField> <ig:TemplateDataField Key="register" Width="80px"> <ItemTemplate> <igtxt:webimagebutton runat="server" id="cmdRegister" text="Register" commandargument='<%# DataBinder.Eval(DirectCast(Container, Infragistics.Web.UI.TemplateContainer).DataItem, "id") %>' CommandName="classid"> </igtxt:webimagebutton> </ItemTemplate> <Header Text="Register" /> </ig:TemplateDataField> </Columns> <Behaviors> <ig:Activation> </ig:Activation> <ig:Selection CellClickAction="Row" CellSelectType="Single" /> </Behaviors> </ig:WebDataGrid>
Hello,
Thank you for contacting us!
Could you please share with me more details regarding this issue. For example where you try to change the StyleSetName, client-side or server-side? Also showing me more code will be highly appreciated. The code that you apply for 13.1 should work for 14.1 also.
Looking forward to hearing from you.
I have attached a text file that contains the html and code behind code. I am using VS2013 for my development environment. I set the StyleSetName in the html code, so I would assume that it happens on the server side.
I have tried to isolate this issue, although I couldn't. Could you please have a look at the attached sample and let me know what I am missing.
let me know if I may be of further assistance.
Alright, I found the solution to my problem. Somehow, somewhere during my upgrades, the ig_res directory was not found since it sat on a different directory level. I had to change where it was looking for the ig_res directory from ~/ig_res to ../ig_res. From there, everything worked just fine.