Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
94 views
The colour column for the resource database table is shown as being 10 characters.  (NCHAR(10)).  I was using RGB in the numeric format eg 255,255,255 for white.  This works however obviously it use 11 characters, changing the DB col to 11 characters works fine.

Please clarify the expected format for the resource colour column.

Regards

Jon

Jon
Top achievements
Rank 1
 answered on 12 Mar 2015
6 answers
335 views
Hi,

i've already reported the problem with some mysterious inline width, added to my grid.
I can now see the same problem with radcombobox.
Here is the piece of markup:
<div style="width: 160px; visibility: visible;" hidecombo="true" class="RadComboBox RadComboBox_GreenSF LargeDropDownList floatRight" id="ddlClusterV2">
    <table style="border-width: 0pt; border-collapse: collapse; width: 160px;" summary="combobox" class="">
        <tbody><tr class="rcbReadOnly">
            <td class="rcbInputCell rcbInputCellLeft" style="width:100%;"><input type="text" readonly="readonly" value="All IBM Storwize & SVC Clusters" id="ddlClusterV2_Input" class="rcbInput" name="ddlClusterV2" autocomplete="off" tabindex="0"></td>
            <td class="rcbArrowCell rcbArrowCellRight"><a style="overflow: hidden;display: block;position: relative;outline: none;" id="ddlClusterV2_Arrow" tabindex="0">select</a></td>
        </tr>
    </tbody></table>
    <div style="z-index:6000;" class="rcbSlide"><div style="display:none;width:190px;" class="RadComboBoxDropDown RadComboBoxDropDown_GreenSF " id="ddlClusterV2_DropDown"><div style="width:100%;" class="rcbScroll rcbWidth"><ul style="list-style:none;margin:0;padding:0;zoom:1;" class="rcbList"><li class="rcbItem  rcbTemplate">
                    <span style="display:inline-block;width:155px;" class="itemText"><input type="checkbox" onclick="stopPropagation(event,this,'ddlClusterV2','' );" checked="checked" name="ddlClusterV2$i0$chbItem" id="ddlClusterV2_i0_chbItem" tabindex="0"><label for="ddlClusterV2_i0_chbItem">All SVC2 Clusters</label></span>
                </li><li class="rcbItem  rcbTemplate">
                    <span style="display:inline-block;width:155px;" class="itemText"><input type="checkbox" onclick="stopPropagation(event,this,'ddlClusterV2','' );" checked="checked" name="ddlClusterV2$i1$chbItem" id="ddlClusterV2_i1_chbItem" tabindex="0"><label for="ddlClusterV2_i1_chbItem">B4RPROD</label></span>
                </li><li class="rcbItem  rcbTemplate">
                    <span style="display:inline-block;width:155px;" class="itemText"><input type="checkbox" onclick="stopPropagation(event,this,'ddlClusterV2','' );" checked="checked" name="ddlClusterV2$i2$chbItem" id="ddlClusterV2_i2_chbItem" tabindex="0"><label for="ddlClusterV2_i2_chbItem">b4rpv01</label></span>
                </li><li class="rcbItem  rcbTemplate">
                    <span style="display:inline-block;width:155px;" class="itemText"><input type="checkbox" onclick="stopPropagation(event,this,'ddlClusterV2','' );" checked="checked" name="ddlClusterV2$i3$chbItem" id="ddlClusterV2_i3_chbItem" tabindex="0"><label for="ddlClusterV2_i3_chbItem">DEVSVC01</label></span>
                </li><li class="rcbItem  rcbTemplate">
                    <span style="display:inline-block;width:155px;" class="itemText"><input type="checkbox" onclick="stopPropagation(event,this,'ddlClusterV2','' );" checked="checked" name="ddlClusterV2$i4$chbItem" id="ddlClusterV2_i4_chbItem" tabindex="0"><label for="ddlClusterV2_i4_chbItem">DEVSVC02</label></span>
                </li></ul></div></div></div><input type="hidden" name="ddlClusterV2_ClientState" id="ddlClusterV2_ClientState" autocomplete="off" value="{"logEntries":[],"value":"","text":"All IBM Storwize & SVC Clusters","enabled":true,"checkedIndices":[]}" tabindex="0">
</div>

As you can see, strange 160px is added in two places! And it overrides my LargeDropDownList CSS class: as a result, my text does not fit into the textbox.

There is no place in my project, where I set inline width for RadComboBox.
mahmoud
Top achievements
Rank 1
 answered on 12 Mar 2015
4 answers
125 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
453 views
how we can add autocontemplate Textbox at header part of radgrid?
Dhamodharan
Top achievements
Rank 1
 answered on 12 Mar 2015
1 answer
110 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
92 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
128 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
148 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
263 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
88 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?