Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
118 views
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:

<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
catalintcg
Top achievements
Rank 1
 answered on 12 Mar 2015
4 answers
427 views
how we can add autocontemplate Textbox at header part of radgrid?
Dhamodharan
Top achievements
Rank 1
 answered on 12 Mar 2015
1 answer
98 views
What is the best way to parse out the RecurrenceRuleText?  I need to get a list of dates saved as recurrences for some custom validation.

Thanks! 
Plamen
Telerik team
 answered on 12 Mar 2015
1 answer
87 views
Hello, I using RadAsycUpload ASP.NET AJAX 2013.3.1324.40

I need that RadAsyncUpload persists the uploaded files after that button_Click event finishes. 

For example, the click action saves all uploaded files in the database, if occurs an error (during saving the files), it is necesary to show a message to user and persist the selected files previously. I tried to specify the property PostbackTriggers="button" in the RadAsyncUpload but when I press the button this control is empty after of the postback.

 <telerik:RadAsyncUpload ID="radUploadOne" runat="server"
                    OnFileUploaded="radUpload_FileUploaded" 
                    MaxFileInputsCount="1" 
                    InputSize="4" Width="90px" 
                    PostbackTriggers="button">

<telerik:RadButton ID="button" runat="server" Text="ok" ClientIDMode="Static"
         onclick="button_Click">







Plamen
Telerik team
 answered on 12 Mar 2015
1 answer
117 views
I have radlistbox in pop-up which is causing a run-time Error "System.FormatException: Input string was not in a correct format error is thrown." .when the same pop-up is been opened in IE or FireFox it works properly without any error or interruptions.Please Provide solution to this problem.
Plamen
Telerik team
 answered on 12 Mar 2015
1 answer
132 views
I have a RAD grid with around 100 rows and need to submit each of the rows to database. As of performance constraints, we planned to do the submission through client side using JQuery. What's the best way to collect each RAD grid row data from client side and push it to server? 
Viktor Tachev
Telerik team
 answered on 12 Mar 2015
10 answers
250 views
Hi there,

I have got a scheduler and a grid on the page and I basically drag an item from the grid and drop onto the scheduler.
The controls are working on the server-side. 

The scheduler involves the assigned appointments and the grid involves the unassigned appointments. The scheduler is also grouped by the staff list which ultimately shows that staff list and the staff's appointment based on the date.

So, the problem occurs once I drag and drop onto the scheduler control. The scheduler and the grid are refreshing (the loading circle comes up) however, the data are on the same spot at the end. I have to refresh the page to see the right result which the data has moved from the grid to the scheduler.

Here is my server side code which does the last thing in order to refresh the controls, however, that doesn't work.
Appreciate your help and time.

1.private void BindData()
2.        {
3.            RadScheduler2.DataSource = Appointments;
4. 
5.            RadGrid1.DataSource = UnassignedAppointments;
6.            RadGrid1.DataBind();
7.        }

Mehmet
Top achievements
Rank 1
 answered on 12 Mar 2015
1 answer
74 views
Hi,

 When I click on a column of a radgrid, grid.SortExpressions.GetSortString()  returns NULL on first click. On second click it returns clicked column name ASC on thrid click it returns clicked column DESC and on next click it returns NULLagain.

 Can you please advise me what is wrong here. Need to correct it ASAP.

My Code look like this:


<telerik:RadGrid ID="HmsCasesGridView" runat="server" AutoGenerateColumns="false" AllowSorting="true" Skin="Default" AllowPaging="true" AllowCustomPaging="true" PageSize="20">
<MasterTableView>
<Columns>
<telerik:GridHyperLinkColumn DataTextField="OpenActionTitle" DataNavigateUrlFields="EmployeeID,CaseID" DataNavigateUrlFormatString="../Forms/Case.aspx?EmployeeID={0}&CaseID={1}" Display="true">
</telerik:GridHyperLinkColumn>
<telerik:GridBoundColumn DataField="CaseID" />
<telerik:GridBoundColumn DataField="EmployeeID" />
<telerik:GridBoundColumn DataField="Name" />
<telerik:GridBoundColumn DataField="NextPlannedDate" DataFormatString="{0:dd.MM.yyyy}" />
<telerik:GridBoundColumn DataField="NextActivityName" />                
</Columns>
</MasterTableView>
</telerik:RadGrid>

Thank you,
Tabassum
Pavlina
Telerik team
 answered on 11 Mar 2015
4 answers
58 views
All other ParentNodes are firing OnNodeClick event
Dave
Top achievements
Rank 1
 answered on 11 Mar 2015
3 answers
1.4K+ views
I have multiple RadComboBox controls on a page with an empty message. They work great until a user accidentally selects an item and is unable to clear the item so that it shows the empty message again.  As soon as the user leaves the control, it shows the last selection they had.  I would prefer that a user could press the delete or backspace button and have the selection show the empty message as if they had not made a selection.  How do I go about doing that?
Nencho
Telerik team
 answered on 11 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?