Hello, Telerik team.
I have a strange problem with radgrid. After an upgrade from VS 2012 to VS 2013 and moving from telerik.web.ui version 2013.1.417.40 to version 2013.1.417.45, the grid that in previous version worked well now seems it lost its styles.
After testing this problem I identified that the problem is related to the command item template of the grid. If the template is active the grid displays all columns and rows like plain text (see Figure 1). If I remove the command item template the grid displays its structure as a table (Figure 2), as it should be.
This is the ASPX markup:
I have no idea what causes this behaviour. Please help me to make this work.
Thank you.
Catalin
I have a strange problem with radgrid. After an upgrade from VS 2012 to VS 2013 and moving from telerik.web.ui version 2013.1.417.40 to version 2013.1.417.45, the grid that in previous version worked well now seems it lost its styles.
After testing this problem I identified that the problem is related to the command item template of the grid. If the template is active the grid displays all columns and rows like plain text (see Figure 1). If I remove the command item template the grid displays its structure as a table (Figure 2), as it should be.
This is the ASPX markup:
<telerik:RadGrid ID="grdChestionare" runat="server" AutoGenerateColumns="False" CellSpacing="0" DataSourceID="edsChestionare" GridLines="None" AllowAutomaticDeletes="True"> <MasterTableView AllowNaturalSort="False" AllowSorting="false" CommandItemDisplay="Top" DataKeyNames="Id" DataSourceID="edsChestionare" NoDetailRecordsText="No question added." NoMasterRecordsText="No questionnaire added."> <DetailTables> <telerik:GridTableView runat="server" AllowNaturalSort="False" AllowSorting="True" CommandItemDisplay="Top" DataKeyNames="Id,IdIntrebare" DataSourceID="EDSIntrebari" NoDetailRecordsText="" NoMasterRecordsText="" TableLayout="Auto" > <DetailTables> <telerik:GridTableView runat="server" AllowNaturalSort="False" AllowSorting="True" CommandItemDisplay="Top" DataKeyNames="Id" DataSourceID="EDSVarianteRaspuns" NoMasterRecordsText="Nu există variante de răspuns" TableLayout="Fixed"> <ParentTableRelation> <telerik:GridRelationFields DetailKeyField="IdIntrebare" MasterKeyField="IdIntrebare" /> </ParentTableRelation> <CommandItemSettings AddNewRecordText="Adaugă o nouă variantă de răspuns." ExportToPdfText="Export to PDF" ShowAddNewRecordButton="False" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True"> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True"> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="Enunt" FilterControlAltText="Filter colEnuntVarianta column" HeaderText="Enunt variantă răspuns" UniqueName="colEnuntVarianta"> <ColumnValidationSettings> <ModelErrorMessage Text="" /> </ColumnValidationSettings> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="OrdineAfisare" FilterControlAltText="Filter colOrdine column" HeaderText="Ordinea de afişare" UniqueName="colOrdine"> <ColumnValidationSettings> <ModelErrorMessage Text="" /> </ColumnValidationSettings> </telerik:GridBoundColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> <PagerStyle PageSizeControlType="RadComboBox" /> </telerik:GridTableView> </DetailTables> <ParentTableRelation> <telerik:GridRelationFields DetailKeyField="IdChestionar" MasterKeyField="Id" /> </ParentTableRelation> <CommandItemSettings AddNewRecordText="Adaugă o nouă întrebare." ExportToPdfText="Export to PDF" ShowAddNewRecordButton="False" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True"> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True"> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="Intrebare.Enunt" FilterControlAltText="Filter colEnuntIntrebare column" HeaderText="Enunţul întrebării" UniqueName="colEnuntIntrebare"> <ColumnValidationSettings> <ModelErrorMessage Text="" /> </ColumnValidationSettings> </telerik:GridBoundColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText="Eliminati aceasta intrebare din cadrul testului?" ConfirmTitle="Confirmati" FilterControlAltText="Filter colStergere column" HeaderText="Stergere" UniqueName="colStergere"> </telerik:GridButtonColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> <PagerStyle PageSizeControlType="RadComboBox" /> <CommandItemTemplate> <telerik:RadButton ID="btnAdaugaIntrebare" runat="server" Skin="Simple" Text="Gestionează întrebările" CommandName="AdaugaIntrebare"> <Icon PrimaryIconUrl="../IMG/Pictograme/add.png" /> </telerik:RadButton> </CommandItemTemplate> </telerik:GridTableView> </DetailTables> <CommandItemSettings AddNewRecordText="Adaugă un nou chestionar." ExportToPdfText="Export to PDF" ShowAddNewRecordButton="False" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True"> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True"> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="Denumire" FilterControlAltText="Filter Denumire column" HeaderText="Denumire" SortExpression="Denumire" UniqueName="Denumire"> <ColumnValidationSettings> <ModelErrorMessage Text="" /> </ColumnValidationSettings> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="DataCrearii" DataType="System.DateTime" FilterControlAltText="Filter DataCrearii column" HeaderText="DataCrearii" SortExpression="DataCrearii" UniqueName="DataCrearii"> <ColumnValidationSettings> <ModelErrorMessage Text="" /> </ColumnValidationSettings> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Autor" FilterControlAltText="Filter Autor column" HeaderText="Autor" SortExpression="Autor" UniqueName="Autor"> <ColumnValidationSettings> <ModelErrorMessage Text="" /> </ColumnValidationSettings> </telerik:GridBoundColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Edit" FilterControlAltText="Filter colEditare column" UniqueName="colEditare"> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmTextFields="Denumire" ConfirmTextFormatString="Sunteti sigur ca doriti stergerea chestionarului {0}?" ConfirmTitle="Confirmati stergerea" FilterControlAltText="Filter colDelete column" UniqueName="colDelete"> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Sondaje" FilterControlAltText="Filter colSondaje column" HeaderText="Sondaje" ImageUrl="~/CT/IMG/Pictograme/arrow_right.png" UniqueName="colSondaje"> </telerik:GridButtonColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> <PagerStyle PageSizeControlType="RadComboBox" /> <CommandItemTemplate> <telerik:RadButton ID="btnAdaugaChestionar" runat="server" CommandName="AdaugaChestionar" Skin="Web20" Text="Adauga chestionar nou"> <Icon PrimaryIconUrl="../IMG/Pictograme/add.png" /> </telerik:RadButton> </CommandItemTemplate> </MasterTableView> <PagerStyle PageSizeControlType="RadComboBox" /> </telerik:RadGrid>I have no idea what causes this behaviour. Please help me to make this work.
Thank you.
Catalin