Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
352 views
I am using radgrid control and trying to populate a detail table with it. But records are being displayed in the master table but detail table is not being displayed at all.

aspx
  <telerik:RadGrid ID="radBusinessParentDetail"
        runat="server" AutoGenerateColumns="False" AllowSorting="True" AllowMultiRowSelection="False"
        DataSourceID="SqlDataSourcePaymentMaster"
        AllowPaging="false" EnableLinqExpressions="false" GridLines="None" ShowStatusBar="true">
        <ClientSettings AllowExpandCollapse="True"></ClientSettings>
        <MasterTableView DataKeyNames="RecordId" AllowMultiColumnSorting="True" HierarchyLoadMode="Client" Width="100%">
            <DetailTables>
                <telerik:GridTableView Name="PaymentDetail" AutoGenerateColumns="true"
                    DataKeyNames="PaymentScheduleId" Width="100%" DataSourceID="SqlDataSourcePaymentDetail">
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="PaymentScheduleId" MasterKeyField="RecordId">
                        </telerik:GridRelationFields>
                    </ParentTableRelation>
                    <Columns>
                            <telerik:GridBoundColumn DataField="PaidDate" HeaderText="Paid On" SortExpression="PaidDate" DataFormatString="{0:dd/MM/yyyy}"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn Aggregate="Sum" DataField="AmountPaid" HeaderText="Amount Paid" SortExpression="AmountPaid"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Commission" HeaderText="Commission" SortExpression="Commission"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn Aggregate="Sum" DataField="GST" HeaderText="GST" SortExpression="GST"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn Aggregate="Sum" DataField="NetReceived" HeaderText="Net" SortExpression="NetReceived"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="PaymentMethod" HeaderText="Payment Method" SortExpression="PaymentMethod"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Comment" HeaderText="Comment" SortExpression="Comment"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="MiscField" HeaderText="Terminal ID" SortExpression="MiscField"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="IsCommissionPaid" HeaderText="Commission Paid"></telerik:GridBoundColumn>
                    </Columns>
                </telerik:GridTableView>
            </DetailTables>
            <Columns>
                    <telerik:GridBoundColumn DataField="RecordId" HeaderText="RecordId" SortExpression="RecordId" UniqueName="RecordId"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Aggregate="Count" DataField="InstallmentNo" HeaderText="Inst. No"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DueDate" HeaderText="Due On" SortExpression="DueDate" DataFormatString="{0:dd/MM/yyyy}"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Aggregate="Sum" DataField="AmountDue" HeaderText="Amount Due" SortExpression="AmountDue"></telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSourcePaymentMaster" ConnectionString="<%$ ConnectionStrings:COMS %>"
        ProviderName="System.Data.SqlClient"
        SelectCommand = "select RecordId, InstallmentNo, DueDate, AmountDue from paymentschedule where studentid='1302438' and isrefunded=0"
        runat="server">
 
</asp:SqlDataSource>
 
<asp:SqlDataSource ID="SqlDataSourcePaymentDetail" ConnectionString="<%$ ConnectionStrings:COMS %>"
        ProviderName="System.Data.SqlClient" SelectCommand="select
                            PaidDate, Commission, NetReceived, GST, PaymentMethod, Comment, MiscField
                            from paymentscheduledetail where PaymentScheduleId=@RecordId"
        runat="server">
        <SelectParameters>
            <asp:SessionParameter Name="RecordId" SessionField="RecordId" Type="Int32">
            </asp:SessionParameter>
        </SelectParameters>
    </asp:SqlDataSource>
Eyup
Telerik team
 answered on 25 Apr 2019
7 answers
777 views

Dear Sir\Madam,

 

Telerik radgrid gridbound column is showing all the selected columns,but the detail table showing few blank column and then the details.how to avoid that blank rows which are showing in detail table.Please help.

Eyup
Telerik team
 answered on 25 Apr 2019
1 answer
253 views

For this example dataset with 6 columns and 6 rows:

AAA BBB CCC 1 2 3
AAA BBB CCC 4 5 6
DDD EEE FFF 1 2 3
GGG HHH III 1 2 3
GGG HHH III 4 5 6
GGG HHH III 7 8 9

 

Some user operation will result in a call to a webservice, which populate the parent grid.  eg.

var tableView = $find("<%= RadGrid2.ClientID %>").get_masterTableView();
tableView.set_dataSource(result);
tableView.dataBind();

 

My web service returns the distinct first 3 columns, I bind the data as noted above,  and the results look like this: 

+ AAA BBB CCC
+ DDD EEE FFF
 + GGG HHH III

 

I can then click expand [+],  which calls a web service to return the child rows and populate the child grid, yielding:

- AAA BBB CCC
  1 2 3
  4 5 6
- DDD EEE FFF
  1 2 3
- GGG HHH III
  1 2 3
  4 5 6
  7 8 9

 

I actually have all of the above working,  but the only problem is it only works for the first 11 rows.    The child grids and expand/collapse buttons are not dynamically added for any rows beyond the 11th when data is bound.

 

Why not?

 

 

 

My grid structure is defined as follows:

 

<telerik:RadGrid ID="RadGrid2" runat="server">
  <ClientSettings>      <ClientEvents OnCommand="RadGrid2_Command" OnHierarchyExpanding="RadGrid2_HierarchyExpanding" OnDataBound="RadGrid2_OnDataBound"/>
  </ClientSettings>
  <MasterTableView HierarchyLoadMode="Client" ClientDataKeyNames="PositionAreaAppID" RetainExpandStateOnRebind="false" ExpandCollapseColumn-Display="true">
    <Columns>
      <telerik:GridBoundColumn DataField="Description" HeaderText="Software"  HeaderStyle-Font-Bold="true" />
      <telerik:GridBoundColumn DataField="Manufacturer" HeaderText="Manufacturer"  HeaderStyle-Font-Bold="true" />     <telerik:GridBoundColumn DataField="Version" HeaderText="Version"  HeaderStyle-Font-Bold="true" />
    </Columns>                    
 
    <NestedViewTemplate>
      <telerik:RadGrid ID="RadGrid3" runat="server">
        <ClientSettings>
          <ClientEvents OnCommand="RadGrid3_Command" />
        </ClientSettings>
        <MasterTableView ClientDataKeyNames="PositionAreaAppPrivID" ShowHeader="false">                   
          <Columns>                                            
            <telerik:GridTemplateColumn UniqueName="PrivilegeClientTemplateColumn" HeaderText="" ItemStyle-CssClass="" HeaderStyle-Font-Bold="true">
              <ClientItemTemplate>
                <div><b>#=PrivTypeDescription #:</b> #=Priv1 #</div>
              </ClientItemTemplate>                                                  
            </telerik:GridTemplateColumn>                                            
          </Columns>                                          
        </MasterTableView>                                     
      </telerik:RadGrid>
    </NestedViewTemplate>                             
  </MasterTableView>

</telerik:RadGrid>

                            

Is there a different approach that will allow client-side binding of nested grids?  I tried using Grouping, NestedViewTemplates, and DataTables, all without the desired result.

I am about to give up on Grid and considering using a LoadOnDemand TreeView customized with client templates to accomplish this, since i don't need advanced grid functionality like sorting, paging, etc.  I am just using it to display in a tabular format.

 

Eyup
Telerik team
 answered on 25 Apr 2019
8 answers
2.7K+ views
When I return true in asp:Button OnClientClick it doesn't postback form.
I have
<asp:Button ID="btnReplace" runat="server" OnClientClick="return confirm('Are you sure?');" Text="Replace Schedule"></asp:Button>
inside of <asp:Panel ID="pnlMeetingDetails" runat="server">
and pabel is inside of RadAjaxManager
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="pnlMeetingDetails">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlMeetingDetails" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
When I click btnReplace and select Ok in confirm dialog it doesn't make postback and server event btnReplaceSchedule_Click(object sender, EventArgs e) isn't called. If I remove OnClientClick in btnReplace it works fine. How to make client confirm script work together with RadAjaxManager?
Mayuresh
Top achievements
Rank 1
 answered on 25 Apr 2019
1 answer
792 views

Hi all,

I have a div with Id="divColor". I want the div hide/shows according to the value of RadioButtonList with ID="rblColor"

div:

01.<div id="divColor" runat="server">
02.    <tr>
03.        <td align="right">
04.            <asp:Label runat="server" ID="Label11"></asp:Label>
05.        </td>
06.        <td>
07.            <telerik:RadColorPicker ID="color" runat="server" Enabled="true" SelectedColor='<%#System.Drawing.ColorTranslator.FromHtml(Eval("Color").ToString())%>'
08.                PaletteModes="HSV" CurrentColorText="(Color : {0})">
09.            </telerik:RadColorPicker>
10.        </td>
11.    </tr>
12.</div>

 

RadioButtonList:

1.<asp:RadioButtonList ID="rblColor" runat="server">
2.    <asp:ListItem Text="Del Tipo" Value="tipo" />
3.    <asp:ListItem Text="Personalizado" Value="perso" />
4.</asp:RadioButtonList>

 

If value=tipo the div is hide, else is show. I want to do in Javascript.

I've tried it in many ways, but it hasn't worked.

I leave the complete code below.

001.<telerik:RadScriptManager ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="3600">
002.    <Scripts>
003.        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
004.        </asp:ScriptReference>
005.        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
006.        </asp:ScriptReference>
007.        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
008.        </asp:ScriptReference>
009.    </Scripts>
010.</telerik:RadScriptManager>
011.<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
012.</telerik:RadAjaxLoadingPanel>
013.<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
014.    <AjaxSettings>
015.        <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">
016.            <UpdatedControls>
017.                <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
018.            </UpdatedControls>
019.        </telerik:AjaxSetting>
020.    </AjaxSettings>
021.</telerik:RadAjaxManager>
022.<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" AutoTooltipify="true">
023.</telerik:RadToolTipManager>
024.<telerik:RadWindow runat="server" ID="RadWindow_ContentTemplateDeleteNode" RestrictionZoneID="ContentTemplateZone" Modal="true"
025.    Width="500" Height="150" Title="Causa del borrado">
026.    <ContentTemplate>
027.        <asp:Label ID="Label9" runat="server" Text="Motivo del borrado:"></asp:Label>
028.        <br />
029.        <asp:TextBox ID="lmotivo" runat="server" Text="" Width="450" MaxLength="50"></asp:TextBox>
030.        <br />
031.        <br />
032.        <telerik:RadButton runat="server" ID="RadButton4" Text="Eliminar" OnClientClicking="DeleteNode">
033.        </telerik:RadButton>
034.        <telerik:RadButton ID="RadButton5" runat="server" Text="Cancelar" OnClientClicked="closeDeleteNode">
035.        </telerik:RadButton>
036.    </ContentTemplate>
037.</telerik:RadWindow>
038.<telerik:RadWindowManager runat="server" ID="RadWindowManager1">
039.</telerik:RadWindowManager>
040.<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
041.    <asp:PlaceHolder ID="placeholder" runat="server"></asp:PlaceHolder>
042.    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0" OnTabClick="RadTabStrip1_TabClick">
043.        <Tabs>
044.            <telerik:RadTab Text="Datos generales" PageViewID="datosGenerales" Selected="True">
045.            </telerik:RadTab>
046.            <telerik:RadTab Text="Datos InHalt" PageViewID="datosInHalt">
047.            </telerik:RadTab>
048.            <telerik:RadTab Text="Nodos asociados" PageViewID="viewSubnodes">
049.            </telerik:RadTab>
050.            <telerik:RadTab Text="Zonas asociadas" PageViewID="viewZones">
051.            </telerik:RadTab>
052.            <telerik:RadTab Text="Traducciones del nombre" PageViewID="viewNombres">
053.            </telerik:RadTab>
054.            <telerik:RadTab Text="Datos de parada" PageViewID="viewStop" Enabled="False">
055.            </telerik:RadTab>
056.            <telerik:RadTab Text="Datos del display" PageViewID="viewDisplay" Enabled="False">
057.            </telerik:RadTab>
058.            <telerik:RadTab Text="Datos del Integrador" PageViewID="viewIntegrador" Enabled="False">
059.            </telerik:RadTab>
060.            <telerik:RadTab Text="Datos de sistema de comunicación" PageViewID="viewCom" Enabled="False">
061.            </telerik:RadTab>
062.            <telerik:RadTab Text="Macrolíneas" PageViewID="viewMacrolineas">
063.            </telerik:RadTab>
064.            <telerik:RadTab Text="Líneas" PageViewID="viewlineas">
065.            </telerik:RadTab>
066.        </Tabs>
067.    </telerik:RadTabStrip>
068.    <asp:Button runat="server" ID="btnDel" OnClick="DelClick" Style="display: none" />
069.    <asp:Button runat="server" ID="btn1" OnClick="actualizarPanel" Style="display: none" />
070.    <asp:Button runat="server" ID="btn2" OnClick="refrescarPanel" Style="display: none" />
071.    <asp:Button runat="server" ID="btnReZona" OnClick="SobreescribirZona" Style="display: none" />
072.    <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" Width="100%">
073.        <telerik:RadPageView runat="server" ID="datosGenerales">
074.            <asp:FormView runat="server" ID="Detalles">
075.                <ItemTemplate>
076.                    <table class="style1">
077.                        <tr>
078.                            <td align="right">
079.                                <asp:Label runat="server" Text="ID único"></asp:Label>
080.                            </td>
081.                            <td>
082.                                <b>
083.                                        <asp:Label ID="id" runat="server" Text='<%# Eval("Id") %>' locIgnore></asp:Label>
084.                                    </b>
085.                            </td>
086.                        </tr>
087.                        <tr>
088.                            <td align="right">
089.                                <asp:Label runat="server" Text="Nodo"></asp:Label>
090.                            </td>
091.                            <td>
092.                                <b>
093.                                        <asp:Label ID="num" runat="server" Text='<%# Eval("NodeId.Num") %>' locIgnore></asp:Label>
094.                                    </b>
095.                            </td>
096.                        </tr>
097.                        <tr>
098.                            <td align="right">
099.                                <asp:Label runat="server" Text="Tipo"></asp:Label>
100.                            </td>
101.                            <td>
102.                                <b>
103.                                        <asp:Label ID="tipo" runat="server" Text='<%# Eval("TipoNodo.Description") %>' locIgnore></asp:Label>
104.                                    </b>
105.                            </td>
106.                        </tr>
107.                        <tr>
108.                            <td align="right">
109.                                <asp:Label runat="server" Text="Nombre"></asp:Label>
110.                            </td>
111.                            <td>
112.                                <b>
113.                                        <asp:Label ID="nombre" runat="server" Text='<%# Eval("Nombre") %>' locIgnore></asp:Label>
114.                                    </b>
115.                            </td>
116.                        </tr>
117.                        <tr>
118.                            <td align="right">
119.                                <asp:Label runat="server" Text="Etiqueta"></asp:Label>
120.                            </td>
121.                            <td>
122.                                <b>
123.                                        <asp:Label ID="label" runat="server" Text='<%# Eval("Label") %>' locIgnore></asp:Label>
124.                                    </b>
125.                            </td>
126.                        </tr>
127.                        <tr>
128.                            <td align="right">
129.                                <asp:Label runat="server" Text="UTM Coord X"></asp:Label>
130.                            </td>
131.                            <td>
132.                                <b>
133.                                        <asp:Label ID="label1" runat="server" Text='<%# Eval("Punto.X") %>' locIgnore></asp:Label></b>
134.                            </td>
135.                        </tr>
136.                        <tr>
137.                            <td align="right">
138.                                <asp:Label runat="server" Text="UTM Coord Y"></asp:Label>
139.                            </td>
140.                            <td>
141.                                <b>
142.                                        <asp:Label ID="label2" runat="server" Text='<%# Eval("Punto.Y") %>' locIgnore></asp:Label></b>
143.                            </td>
144.                        </tr>
145.                        <tr>
146.                            <td align="right">
147.                                <asp:Label ID="lblColor" runat="server" Text="Color"></asp:Label>
148.                            </td>
149.                            <div id="divTextColor" runat="server">
150.                                <td>
151.                                    <asp:TextBox ID="TextBox1" runat="server" BackColor='<%#System.Drawing.ColorTranslator.FromHtml(Eval("Color").ToString())%>'
152.                                        Enabled="false" CssClass="bold"></asp:TextBox>
153.                                </td>
154.                            </div>
155.                            <div id="divLabelColor" runat="server">
156.                                <td>
157.                                    <asp:Label ID="lblColorTipo" runat="server" Text="El del Tipo" CssClass="bold"></asp:Label>
158.                                </td>
159.                            </div>
160.                        </tr>
161.                        <tr>
162.                            <td colspan="2" align="left" style="font-weight: bold">
163.                                <asp:Button ID="btnEdit" runat="server" CommandName="edit" Text="Modificar" Visible='<%# usuario().getPermiso(DatoSae3.code.PERMISO.NODOS,DatoSae3.code.ACCESS.WRITE) && visible %>'
164.                                />
165.                                <asp:Button ID="btnDelete" runat="server" CommandName="delete" Text="Eliminar nodo" Visible='<%# usuario().getPermiso(DatoSae3.code.PERMISO.NODOS,DatoSae3.code.ACCESS.WRITE) && visible%>'
166.                                    OnClientClick="return confirmCallbackFunctionDeleteNode()" />
167.                                <%--<ajax:ConfirmButtonExtender ID="fffff" runat="server" ConfirmText="Esto eliminará completamente el nodo. ¿Está seguro?"
168.                                        Enabled="True" TargetControlID="btnDelete" />--%>
169.                                    <br />
170.                                    <asp:Button ID="btnPosicion" runat="server" Text="Establecer Posición" Visible='<%# usuario().getPermiso(DatoSae3.code.PERMISO.NODOS,DatoSae3.code.ACCESS.WRITE) && visible%>'
171.                                        OnClick="btnPosicion_Click" />  
172.                                    <asp:CheckBox ID="chkPropagar" Checked="true" runat="server" Text="Propagar cambio a posiciones en ramales" ToolTip="Si marca este checkbox, se recalculará la posición del nodo en todas los ramales, secciones y rutas. Esto puede provocar que se modifique mucha información en Base de datos, pero mantiene la consistencia en las posiciones de los nodos"
173.                                    />
174.                                    <br />
175.                                    <asp:Button ID="btnNodosZona" runat="server" OnClick="btnNodosZona_Click" Visible='<%# usuario().getPermiso(DatoSae3.code.PERMISO.NODOS,DatoSae3.code.ACCESS.WRITE) && visible%>'
176.                                        Text="Seleccionar nodos de zona" />
177.                                    <br />
178.                                    <asp:Button ID="btnPuntos" runat="server" Text="Definir area" OnClick="btnPuntos_Click" Visible='<%# usuario().getPermiso(DatoSae3.code.PERMISO.NODOS,DatoSae3.code.ACCESS.WRITE) && visible && ((Convert.ToInt32(Eval("TipoNodo.Type")) == 5) || (Convert.ToInt32(Eval("TipoNodo.Type")) == 8)) %>'
179.                                    />
180.                            </td>
181.                    </table>
182.                </ItemTemplate>
183.                <EditItemTemplate>
184.                    <table class="style1">
185.                        <tr>
186.                            <td align="right">
187.                                <asp:Label runat="server" Text="ID único"></asp:Label>
188.                            </td>
189.                            <td>
190.                                <b>
191.                                        <asp:Label ID="id" runat="server" Text='<%# Eval("Id") %>' locIgnore></asp:Label>
192.                                    </b>
193.                            </td>
194.                        </tr>
195.                        <tr>
196.                            <td align="right">
197.                                <asp:Label runat="server" Text="Nodo"></asp:Label>
198.                            </td>
199.                            <td>
200.                                <asp:TextBox ID="Num" runat="server" MaxLength="10" Text='<%# Eval("NodeId.Num") %>' CssClass="bold"></asp:TextBox>
201.                                <b>
202.                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="num"
203.                                            ErrorMessage="*"></asp:RequiredFieldValidator>
204.                                        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="num" ErrorMessage="1..65535"
205.                                            MaximumValue="65535" ForeColor="Red" MinimumValue="1" Type="Integer"></asp:RangeValidator>
206.                                    </b>
207.                            </td>
208.                        </tr>
209.                        <tr>
210.                            <td align="right">
211.                                <asp:Label runat="server" Text="Tipo"></asp:Label>
212.                            </td>
213.                            <td>
214.                                <b>
215.                                        <asp:Label ID="tipo" runat="server" Text='<%# Eval("TipoNodo.Description") %>' locIgnore></asp:Label>
216.                                    </b>
217.                            </td>
218.                        </tr>
219.                        <tr>
220.                            <td align="right">
221.                                <asp:Label runat="server" Text="Nombre"></asp:Label>
222.                            </td>
223.                            <td>
224.                                <asp:TextBox ID="nombre" runat="server" Text='<%# Eval("Nombre") %>' MaxLength="60" CssClass="bold"></asp:TextBox>
225.                                <b>
226.                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="nombre"
227.                                            ErrorMessage="*"></asp:RequiredFieldValidator>
228.                                    </b>
229.                            </td>
230.                        </tr>
231.                        <tr>
232.                            <td align="right" class="style2">
233.                                <asp:Label runat="server" Text="Etiqueta"></asp:Label>
234.                            </td>
235.                            <td class="style2">
236.                                <asp:TextBox ID="label" runat="server" Text='<%# Eval("Label") %>' MaxLength="10" CssClass="bold"></asp:TextBox>
237.                                <b>
238.                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="label"
239.                                            ErrorMessage="*"></asp:RequiredFieldValidator>
240.                                    </b>
241.                            </td>
242.                        </tr>
243.                        <tr>
244.                            <td align="right">
245.                                <asp:Label runat="server" ID="labX" Text="UTM Coord X</td>"></asp:Label>
246.                                <td>
247.                                    <asp:TextBox ID="X" runat="server" MaxLength="25" Text='<%# Eval("Punto.X") %>' CssClass="bold"></asp:TextBox>
248.                                    <b>
249.                                            <asp:RequiredFieldValidator ID="XReqValidator" runat="server" ControlToValidate="X"
250.                                                ForeColor="Red" ErrorMessage="*"></asp:RequiredFieldValidator>
251.                                            <asp:RangeValidator ID="XRangeValidator" runat="server" ControlToValidate="X" ErrorMessage="0..1207959551"
252.                                                ForeColor="Red" MaximumValue="1207959551" MinimumValue="0" Type="Double"></asp:RangeValidator>
253.                                            <asp:RegularExpressionValidator ID="XRegExpValidator" runat="server" ControlToValidate="X"
254.                                                ErrorMessage="X°X'X''" ForeColor="Red" ValidationExpression="^[-]*\d+[°º]\s*\d+['´`]\s*\d+[,.]?\d*['`´]{2}\s*$"
255.                                                Enabled="false"></asp:RegularExpressionValidator>
256.                                        </b>
257.                                </td>
258.                        </tr>
259.                        <tr>
260.                            <td align="right">
261.                                <asp:Label runat="server" ID="labY" Text="UTM Coord Y"></asp:Label>
262.                            </td>
263.                            <td>
264.                                <asp:TextBox ID="Y" runat="server" MaxLength="25" Text='<%# Eval("Punto.Y") %>' CssClass="bold"></asp:TextBox>
265.                                <b>
266.                                        <asp:RequiredFieldValidator ID="YReqValidator" runat="server" ControlToValidate="Y"
267.                                            ForeColor="Red" ErrorMessage="*"></asp:RequiredFieldValidator>
268.                                        <asp:RangeValidator ID="YRangeValidator" runat="server" ControlToValidate="Y" ErrorMessage="0..1207959551"
269.                                            ForeColor="Red" MaximumValue="1207959551" MinimumValue="0" Type="Double"></asp:RangeValidator>
270.                                        <asp:RegularExpressionValidator ID="YRegExpValidator" runat="server" ControlToValidate="X"
271.                                            ErrorMessage="X°X'X''" ForeColor="Red" ValidationExpression="^[-]*\d+[°º]\s*\d+['´`]\s*\d+[,.]?\d*['`´]{2}\s*$"
272.                                            Enabled="false"></asp:RegularExpressionValidator>
273.                                    </b>
274.                            </td>
275.                        </tr>
276.                        <tr>
277.                            <td align="right">
278.                                <asp:Label runat="server" ID="Label12" Text="Color"></asp:Label>
279.                            </td>
280.                            <td align="right">
281.                                <asp:RadioButtonList ID="rblColor" runat="server">
282.                                    <asp:ListItem Text="Del Tipo" Value="tipo" />
283.                                    <asp:ListItem Text="Personalizado" Value="perso" />
284.                                </asp:RadioButtonList>
285.                            </td>
286.                        </tr>
287.                        <div id="divColor" runat="server">
288.                            <tr>
289.                                <td align="right">
290.                                    <asp:Label runat="server" ID="Label11"></asp:Label>
291.                                </td>
292.                                <td>
293.                                    <telerik:RadColorPicker ID="color" runat="server" Enabled="true" SelectedColor='<%#System.Drawing.ColorTranslator.FromHtml(Eval("Color").ToString())%>'
294.                                        PaletteModes="HSV" CurrentColorText="(Color : {0})">
295.                                    </telerik:RadColorPicker>
296.                                </td>
297.                            </tr>
298.                        </div>
299.                        <tr>
300.                            <td colspan="2" align="left" style="font-weight: bold">
301.                                <asp:CheckBox ID="chkdegr" runat="server" Text="Ver Coordenadas en grados, minutos, segundos" OnCheckedChanged="chkdegr_changed"
302.                                    AutoPostBack="true" />
303.                            </td>
304.                        </tr>
305.                        <tr>
306.                            <td colspan="2" align="left" style="font-weight: bold">
307.                                <asp:Button ID="btnupdate" runat="server" Text="Guardar cambios" CommandName="update" />
308.                                <asp:Button ID="btncancel" runat="server" Text="Cancelar" CommandName="cancel" />
309.                            </td>
310.                        </tr>
311.                    </table>
312.                </EditItemTemplate>
313.            </asp:FormView>
314.        </telerik:RadPageView>

              ......

 

 

Many thanks in advance.

 

 

 

 

 

 

kaiwjwj

Peter Milchev
Telerik team
 answered on 25 Apr 2019
1 answer
1.1K+ views

I have a list box, with a lengthy list of items (Interests List Box).  A user selects which Interests are likes, and they populate into a different list box for Likes (Likes List Box)

 

To make searching for specific things easier, I would like to use a search box to help narrow down results. Here is a quick snippet of examples of some of my items:

                    <telerik:RadListBoxItem runat="server" Text="Music-Country" />
                    <telerik:RadListBoxItem runat="server" Text="Music-Rap" />
                    <telerik:RadListBoxItem runat="server" Text="TV-Cartoons" />
                    <telerik:RadListBoxItem runat="server" Text="TV-Drama" />

 

So if I type "Music" in the search box, I would like it to filter down and show results that start with "Music-" so they do not have to scroll all the way through the Interests List Box to get there. Once they find what they are looking for, I want them to be able to click the option they were looking for and add it to the Likes List box. I am having trouble finding a way to link the list box and search box together, is this possible?

 

 

Peter Milchev
Telerik team
 answered on 24 Apr 2019
8 answers
694 views
Hi everyone,

I have a RadListView that is bind to Db. I have to show details of the items in listview when user clicks on the each item . But i am facing issue when its SelectedIndexChanged event is firing. When user clicks on the item for the first time, the detailed data shown is correct but as soon as a second item is clicked , it shows exception :

ArgumentOutOfRangeException :
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Exception is thrown when : 

ItemID = ItemListView.SelectedValue.ToString();

Showing data as similar to a demo - http://demos.telerik.com/aspnet-ajax/salesdashboard/
Employee ListView  -> clicking showing - > sales data

Also i found that the selectedindexchanged event is firing twice in some cases. Cannot predict such cases but want to know the reason why it is firing twice when user clicks only once.

please advice
Yana
Telerik team
 answered on 24 Apr 2019
3 answers
146 views
I have an old project that uses 2014 Telerik. What are the basic steps to upgrade to the latest version?
Nikola
Telerik team
 answered on 24 Apr 2019
1 answer
178 views

Hello,

How can you implement subheadings in RadListBox ?

For example:

HEADING 1

ListItem A

ListItem B

HEADING 2

ListItem C

ListItem D

 

Thank you.

Peter Milchev
Telerik team
 answered on 24 Apr 2019
2 answers
95 views

We have a nested tabstrip with dynamically created tabs from the code behind. The parent tabstrip is also dynamically created and populated. When the page first loads both the parent tab pageviews and child tab pageviews are correct and both can be navigated. But when the child tabstrip has a postback created by a contained form, the pageviews for the parent tabstrip clear (except for the current open tab with the form). The parent tabs remain but no content underneath (except the current page with the child tabs).  The content can only be repopulated by reloading the full page. Note that a form postback at the parent page level does not clear the tab pageviews.

We've tried variations of loading the tabs at postback and not postback but can't seem to find a combination that works. 

Is there a way to correct this issue?

thanks!

Jeff
Top achievements
Rank 1
 answered on 23 Apr 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?