Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
151 views
This bug is reproducable on the RadInput demo page

  1. Open the demo page (eg: Input - RadTextBox - First Look page)
  2. Click on either multi-line or single-line textbox. The empty message disappears and ready to receive key strokes.
  3. Without typing anything into the textbox, leave the page by clicking on other browser tab, or windows, or even the taskbar.
  4. Voila! The default empty message on that page (ie: type here) now becomes the value of the textbox.
  5. This is confirmed by the event message stated below it showing: ValueChanged (Client Event): OldValue=; NewValue=type here;


Deyan Enchev
Telerik team
 answered on 19 Jul 2013
1 answer
127 views
I have a RadComboBox that I need to sort by a column other than the Text or Value fields.

The Datasource and the control html is below.

An example subset of the values are:
ID    Rank    Sequence
8     E8     8
9     E9     9
10   O1    10
19   O10  19
11   O2     11

The column 'Sequence' is there to get it to sort in the right order because sorting on the key/ID and the Rank might not get it in the order the user is expecting it. In the case above, "O2" should follow "O1" and "O10" should follow "O9".

The example at: http://www.telerik.com/help/aspnet-ajax/combobox-how-to-implement-custom-sorting.html didn't seem to be what I needed.

    DefaultContainerName="PatientEntities" EnableFlattening="False"
        EntitySetName="Lookup_Rank"
          AutoPage="true" OrderBy="it.[Sequence]">
  </asp:EntityDataSource>

                <telerik:RadComboBox  ID="ddlRank" runat="server" Height="150px" Width="128px" AutoPostBack="true" OnDataBound="ddlRank_DataBound"
                     AllowReorder="false" DataSourceID="edsLookup_GetRanks" Sort="None"
                     DataTextField="Rank" DataValueField="Rank" ></telerik:RadComboBox>
                </td>

**Note: The forum editor was broken and wouldn't let me format as code.
Nencho
Telerik team
 answered on 19 Jul 2013
6 answers
215 views
Hi,

I have a UserControl that contains a RadWindow by the name of 'SubWindow'.

Problem 1
If I use this user control in a Page, that also contains a RadWindow called 'SubWindow', then the window.radopen('xyz.aspx, 'SubWindow') calls in the javascript of the Page start using the window of this user control, instead of the one on the page.

Problem 2
If I change the name of the RadWindow in UserControl to 'UploadWindow', then window.radopen('xyz.aspx, 'SubWindow') calls in the javascript of the Page start using a generic window instead of the one on the page.


How can I enforce use of the RadWindow on the Page by all javascript functions on the Page, and RadWindow of the UserControls by all the javascript in the UserContorl.
Marin Bratanov
Telerik team
 answered on 19 Jul 2013
1 answer
296 views
hello,
I need to load an aspx page in a radwindow but do not charge anything.
this is the code of radwindow:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue">
    <Windows>
        <telerik:RadWindow ID="schedineps" runat="server" Behavior="Minimize, Close, Move, Reload" Behaviors="Minimize, Close, Move, Reload" Modal="True" NavigateUrl="schedineps.aspx" Skin="WebBlue" style="display:none; z-index: 9000" VisibleStatusbar="False" VisibleTitlebar="False" AutoSize="True">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

this is the code with which I open the codebihd radwindow:

Dim script As String = "function f(){$find(""" + schedineps.ClientID + """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
RadScriptManager.RegisterStartupScript(Me, Me.[GetType](), "key", script, True)
 

this is page code aspx of schedineps.aspx:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="schedineps.aspx.vb" Inherits="schedineps" %>
 
<!DOCTYPE html>
 
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="App_Themes/browser/chrome.css" rel="stylesheet" type="text/css" />
    <title></title>
    </head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
        <style type="text/css">
            input {
                text-transform: uppercase !important;
            }
 
            .riTextBox {
                text-transform: uppercase !important;
            }
        </style>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function visiblediv(arg) {
                    if (arg == 1) {
                        first.style.display = 'block';
                        second.style.display = 'none';
                        var grid = $find("<%= RadGrid1.ClientID%>");
                        grid.get_element().style.height = "485px";
                    }
                    else
                        first.style.display = 'none';
                        second.style.display = 'block';
                        var grid = $find("<%= RadGrid1.ClientID%>");
                        grid.get_element().style.height = "675px";
                }
            </script>
        </telerik:RadCodeBlock>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="Btnsalvamembro">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Panel2" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="Btndettaglio">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="Btnsalva">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="WebBlue">
        </telerik:RadSkinManager>
        <div id="container">
            <%-- gestione capofila --%>
            <div id="first" style="height: auto">
                <asp:Panel ID="Panel1" runat="server" DefaultButton="Btnsalva">
                    <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label1" runat="server" Text="Data arrivo:" Width="78px"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadDatePicker ID="arrivo" runat="server" Width="120px">
                                    <Calendar ID="Calendar1" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"></Calendar>
                                    <DateInput ID="DateInput1" runat="server" DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" LabelWidth="40%"></DateInput>
                                    <DatePopupButton ToolTip="Apri calendario" />
                                </telerik:RadDatePicker>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label2" runat="server" Text="Data partenza:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadDatePicker ID="partenza" runat="server" Width="120px">
                                    <Calendar ID="Calendar2" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"></Calendar>
                                    <DateInput ID="DateInput2" runat="server" DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" LabelWidth="40%"></DateInput>
                                    <DatePopupButton ToolTip="Apri calendario" TabIndex="1" />
                                </telerik:RadDatePicker>
                            </td>
                        </tr>
                    </table>
                    <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label3" runat="server" Text="Tipo cliente:" Width="78px"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="tipoalloggiato" runat="server" Culture="it-IT" Width="130px" EnableLoadOnDemand="True" AutoPostBack="True" LoadingMessage="Caricamento...">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="Ospite singolo" Value="16" />
                                        <telerik:RadComboBoxItem runat="server" Text="Capo famiglia" Value="17" />
                                        <telerik:RadComboBoxItem runat="server" Text="Capo gruppo" Value="18" />
                                    </Items>
                                </telerik:RadComboBox>
                            </td>
                            <td id="tdetichettacomponenti" runat="server" style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label4" runat="server" Text="nr. componenti:"></asp:Label></td>
                            <td id="tdcampocomponenti" runat="server" style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadNumericTextBox ID="componenti" runat="server" Culture="it-IT" DbValueFactor="1" LabelWidth="0px" Value="1" Width="50px" DataType="System.Int32" MaxLength="4">
                                    <NumberFormat ZeroPattern="n" DecimalDigits="0" DecimalSeparator="."></NumberFormat>
                                    <ReadOnlyStyle HorizontalAlign="Right" />
                                    <DisabledStyle Font-Underline="False" HorizontalAlign="Right" />
                                    <EnabledStyle HorizontalAlign="Right" />
                                </telerik:RadNumericTextBox></td>
                            <td id="tdetichettatipogruppo" runat="server" style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label5" runat="server" Text="Tipo gruppo:"></asp:Label></td>
                            <td id="tdcampotipogruppo" runat="server" style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="tipogruppo" runat="server" Width="200px" EnableItemCaching="True" EnableLoadOnDemand="True" EnableVirtualScrolling="True" LoadingMessage="Caricamento...">
                                    <WebServiceSettings Method="GetTipoGruppoNome" Path="WebService.asmx" />
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                    </table>
                    <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label6" runat="server" Text="Cognome:" Width="78px"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadTextBox ID="cognome" runat="server" MaxLength="30" Width="300px">
                                </telerik:RadTextBox></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label7" runat="server" Text="Nome:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadTextBox ID="nome" runat="server" MaxLength="30" Width="300px">
                                </telerik:RadTextBox></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label8" runat="server" Text="Sesso:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="sesso" runat="server" Culture="it-IT" Width="80px">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" ImageUrl="~/image/icone/male16x16.png" Text="Uomo" Value="1" />
                                        <telerik:RadComboBoxItem runat="server" ImageUrl="~/image/icone/Girl16x16.png" Text="Donna" Value="2" />
                                    </Items>
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                    </table>
                    <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label9" runat="server" Text="Data nascita:" Width="78px"></asp:Label>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadDateInput ID="datanascita" runat="server" Width="90px" MaxLength="10" MinDate="1900-01-01">
                                </telerik:RadDateInput>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label10" runat="server" Text="Luogo di nascita:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="luogonascita" runat="server" Width="230px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True" MarkFirstMatch="true" EmptyMessage="SELEZIONA LUOGO NASCITA" Height="200px">
                                    <WebServiceSettings Method="GetLuogonascitaNome" Path="WebService.asmx" />
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                    </table>
                    <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label15" runat="server" Text="Cittadinanza:" Width="78px"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="cittadinanza" runat="server" Width="230px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True" MarkFirstMatch="true" EmptyMessage="SELEZIONA CITTADINANZA" Height="200px">
                                    <WebServiceSettings Method="GetCittadinanzaNome" Path="WebService.asmx" />
                                </telerik:RadComboBox>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label11" runat="server" Text="Luogo di residenza:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="luogoresidenza" runat="server" Width="230px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True" MarkFirstMatch="true" EmptyMessage="SELEZIONA LUOGO RESIDENZA" Height="200px">
                                    <WebServiceSettings Method="GetLuogoNome" Path="WebService.asmx" />
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                    </table>
                    <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label12" runat="server" Text="Documento:" Width="78px"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="documento" runat="server" Width="250px" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" EnableVirtualScrolling="True" ShowMoreResultsBox="True" MarkFirstMatch="true" EmptyMessage="SELEZIONA DOCUMENTO" Height="200px">
                                    <WebServiceSettings Method="GetDocumentoNome" Path="WebService.asmx" />
                                </telerik:RadComboBox>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label13" runat="server" Text="numero:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadTextBox ID="numdocumento" runat="server" Width="155px" MaxLength="15">
                                </telerik:RadTextBox></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label14" runat="server" Text="Luogo di rilascio:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="luogodocumento" runat="server" Width="230px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True" MarkFirstMatch="true" EmptyMessage="SELEZIONA LUOGO DOCUMENTO" Height="200px">
                                    <WebServiceSettings Method="GetLuogoNome" Path="WebService.asmx" />
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                    </table>
                    <table id="Tabimposta" runat="server" style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label38" runat="server" Text="Tassa sogg.:" Width="78px"></asp:Label>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="imposta" runat="server" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True" MarkFirstMatch="true" Height="200px">
                                    <WebServiceSettings Method="GetImpostaNome" Path="WebService.asmx" />
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                    </table>
                    <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadButton ID="Btndettaglio" runat="server" Text="INSERISCI DETTAGLIO CLIENTE" ToggleType="CustomToggle" Checked="True"></telerik:RadButton>
                            </td>
                        </tr>
                    </table>
                    <table id="tabdettaglio4" runat="server" style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label29" runat="server" Text="Titolo:" Width="78px"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="titolo" runat="server" Width="100px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" Height="80px">
                                    <WebServiceSettings Method="GetTitoloNome" Path="WebService.asmx" />
                                </telerik:RadComboBox>
                            </td>
 
                        </tr>
                    </table>
                    <table id="tabdettaglio" runat="server" style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label22" runat="server" Text="Indirizzo:" Width="78px"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadTextBox ID="indirizzo" runat="server" MaxLength="50" Width="450px"></telerik:RadTextBox></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label24" runat="server" Text="Codice fiscale:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadTextBox ID="codfiscale" runat="server" MaxLength="16"></telerik:RadTextBox></td>
                        </tr>
                    </table>
                    <table id="tabdettaglio1" runat="server" style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label23" runat="server" Text="Telefono:" Width="78px"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadTextBox ID="telefono" runat="server" MaxLength="15" Width="120px"></telerik:RadTextBox></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label25" runat="server" Text="Cellulare:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadTextBox ID="cellulare" runat="server" MaxLength="15" Width="120px"></telerik:RadTextBox></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label26" runat="server" Text="Fax:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadTextBox ID="fax" runat="server" MaxLength="15" Width="120px"></telerik:RadTextBox></td>
                        </tr>
                    </table>
                    <table id="tabdettaglio2" runat="server" style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label27" runat="server" Text="Email:" Width="78px"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadTextBox ID="email" runat="server" MaxLength="150" Width="250px"></telerik:RadTextBox></td>
                        </tr>
                    </table>
                    <table id="tabdettaglio3" runat="server" style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px; vertical-align: top;">
                                <asp:Label ID="Label28" runat="server" Text="Note:" Width="78px"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadTextBox ID="note" runat="server" Width="700px" Height="80px" TextMode="MultiLine"></telerik:RadTextBox></td>
                        </tr>
                    </table>
                    <table style="width: 1024px; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <hr />
                            </td>
                        </tr>
                    </table>
                    <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadButton ID="Btnsalva" runat="server" Text="Salva cliente">
                                </telerik:RadButton>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadButton ID="Btncamera" runat="server" Text="Gestione camere" Enabled="False">
                                </telerik:RadButton>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadButton ID="Btncerca" runat="server" Text="Cerca schedina">
                                </telerik:RadButton>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadButton ID="Btnuscita" runat="server" Text="Uscita">
                                </telerik:RadButton>
                            </td>
                        </tr>
                    </table>
                    <table style="width: 1024px; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <hr />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
 
            </div>
            <%-- gestione componenti --%>
            <div id="second" style="height: auto">
                <asp:Panel ID="Panel2" runat="server" DefaultButton="Btnsalvamembro">
                    <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label16" runat="server" Text="Cognome:" Width="78px"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadTextBox ID="cognomemembro" runat="server" MaxLength="30" Width="300px">
                                </telerik:RadTextBox></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label17" runat="server" Text="Nome:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadTextBox ID="nomemembro" runat="server" MaxLength="30" Width="300px">
                                </telerik:RadTextBox></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label18" runat="server" Text="Sesso:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="sessomembro" runat="server" Culture="it-IT" Width="80px">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" ImageUrl="~/image/icone/male16x16.png" Text="Uomo" Value="1" />
                                        <telerik:RadComboBoxItem runat="server" ImageUrl="~/image/icone/Girl16x16.png" Text="Donna" Value="2" />
                                    </Items>
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                    </table>
                    <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label19" runat="server" Text="Cittadinanza:" Width="78px"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="cittadinanzamembro" runat="server" Width="200px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True">
                                </telerik:RadComboBox>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label20" runat="server" Text="Luogo di nascita:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="nascitamembro" runat="server" Width="200px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True">
                                </telerik:RadComboBox>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <asp:Label ID="Label21" runat="server" Text="Luogo di residenza:"></asp:Label></td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadComboBox ID="residenzamembro" runat="server" Width="200px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True">
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                    </table>
                    <table style="width: 1024px; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <hr />
                            </td>
                        </tr>
                    </table>
                    <table style="width: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadButton ID="Btnsalvamembro" runat="server" Text="Salva cliente">
                                </telerik:RadButton>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadButton ID="Btncameramembro" runat="server" Text="Gestione camere" Enabled="False">
                                </telerik:RadButton>
                            </td>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <telerik:RadButton ID="Btnuscitamembro" runat="server" Text="Uscita">
                                </telerik:RadButton>
                            </td>
                        </tr>
                    </table>
                    <table style="width: 1024px; height: auto; padding: 0px; margin: 0px">
                        <tr>
                            <td style="width: auto; padding: 0px; margin: 0px">
                                <hr />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
            <div id="grid" style="height: auto">
                <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AutoGenerateHierarchy="True" CellSpacing="0" Culture="it-IT" Height="485px" GridLines="None" PageSize="15" Skin="WebBlue" Width="1024px" AllowPaging="True">
                    <ClientSettings>
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                    <MasterTableView>
                        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridTemplateColumn FilterControlAltText="Filter column column" UniqueName="column">
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImgBtnDelete" runat="server" ImageUrl="~/image/icone/Delete16x16.png" ToolTip="Elimina movimento" />
                                </ItemTemplate>
                                <HeaderStyle Width="30px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn FilterControlAltText="Filter column column" UniqueName="column">
                                <ItemTemplate>
                                    <asp:Image ID="Imgimposta" runat="server" ImageUrl="~/image/icone/euro16x16.png" />
                                </ItemTemplate>
                                <HeaderStyle Width="30px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn FilterControlAltText="Filter column column" UniqueName="column">
                                <ItemTemplate>
                                    <asp:Image ID="Imgdettaglio" runat="server" ImageUrl="~/image/icone/schedina16x16.png" />
                                    <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Imgdettaglio" RelativeTo="Element"
                                        Position="MiddleRight" RenderInPageRoot="true" HideEvent="ManualClose" ManualClose="True">
                                        <table style="width: 100%;">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label30" runat="server" Text="Documento:" Font-Bold="True"></asp:Label></td>
                                                <td><%# CType(Container.DataItem, schedina.proprieta).documento%></td>
                                                <td><asp:Label ID="Label31" runat="server" Text="Numero:" Font-Bold="True"></asp:Label></td>
                                                <td><%# CType(Container.DataItem, schedina.proprieta).ndocumento%></td>
                                                <td><asp:Label ID="Label32" runat="server" Text="Luogo rilascio:" Font-Bold="True"></asp:Label></td>
                                                <td><%# CType(Container.DataItem, schedina.proprieta).luogodocumento%></td>
                                            </tr>
                                            <tr>
                                                <td><asp:Label ID="Label33" runat="server" Text="Telefono:" Font-Bold="True"></asp:Label></td>
                                                <td><%# CType(Container.DataItem, schedina.proprieta).telefono%></td>
                                                <td><asp:Label ID="Label34" runat="server" Text="Cellulare:" Font-Bold="True"></asp:Label></td>
                                                <td><%# CType(Container.DataItem, schedina.proprieta).cellulare%></td>
                                                <td><asp:Label ID="Label35" runat="server" Text="Fax:" Font-Bold="True"></asp:Label></td>
                                                <td><%# CType(Container.DataItem, schedina.proprieta).fax%></td>
                                            </tr>
                                            <tr>
                                                <td><asp:Label ID="Label36" runat="server" Text="Email:" Font-Bold="True"></asp:Label></td>
                                                <td><%# CType(Container.DataItem, schedina.proprieta).email%></td>
                                            </tr>
                                            <tr>
                                                <td><asp:Label ID="Label37" runat="server" Text="Note:" Font-Bold="True"></asp:Label></td>
                                                <td><%# CType(Container.DataItem, schedina.proprieta).note%></td>
                                            </tr>
                                        </table>
                                    </telerik:RadToolTip>
                                </ItemTemplate>
                                <HeaderStyle Width="30px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn FilterControlAltText="Filter column column" UniqueName="column">
                                <ItemTemplate>
                                    <asp:Image ID="imgsesso" BorderWidth="0px" ImageUrl='<%# IIf(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "sesso")) = "1", "~/image/icone/male16x16.png", "~/image/icone/Girl16x16.png")%>'
                                        runat="server"></asp:Image>
                                </ItemTemplate>
                                <HeaderStyle Width="30px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridNumericColumn DataField="idrecord" DataType="System.Int32" DecimalDigits="0" FilterControlAltText="Filter idrecord column" ReadOnly="True" UniqueName="idrecord" Visible="False">
                            </telerik:GridNumericColumn>
                            <telerik:GridNumericColumn DataField="idrecordconnesso" DecimalDigits="2" FilterControlAltText="Filter idrecordconnesso column" ReadOnly="True" UniqueName="idrecordconnesso" Visible="False">
                            </telerik:GridNumericColumn>
                            <telerik:GridNumericColumn DataField="sesso" DecimalDigits="2" FilterControlAltText="Filter sesso column" ReadOnly="True" UniqueName="sesso" Visible="False">
                            </telerik:GridNumericColumn>
                            <telerik:GridBoundColumn DataField="cognome" FilterControlAltText="Filter cognome column" HeaderText="Cognome" ReadOnly="True" UniqueName="cognome">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="nome" FilterControlAltText="Filter nome column" HeaderText="Nome" ReadOnly="True" UniqueName="nome">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="cittadinanza" FilterControlAltText="Filter cittadinanza column" HeaderText="Cittadinanza" ReadOnly="True" UniqueName="cittadinanza">
                                <HeaderStyle Width="100px" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="luogonascita" FilterControlAltText="Filter luogonascita column" HeaderText="Luogo di nascita" ReadOnly="True" UniqueName="luogonascita">
                                <HeaderStyle Width="150px" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="datanascita" DataType="System.DateTime" FilterControlAltText="Filter datanascita column" HeaderText="Data nascita" ReadOnly="True" UniqueName="datanascita">
                                <HeaderStyle Width="85px" HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="luogoresidenza" FilterControlAltText="Filter luogoresidenza column" HeaderText="Luogo di residenza" ReadOnly="True" UniqueName="luogoresidenza">
                                <HeaderStyle Width="150px" />
                            </telerik:GridBoundColumn>
                            <telerik:GridNumericColumn DataField="ncomponenti" DataType="System.Int32" DecimalDigits="2" FilterControlAltText="Filter ncomponenti column" HeaderText="ncomponenti" ReadOnly="True" UniqueName="ncomponenti" Visible="False">
                            </telerik:GridNumericColumn>
                        </Columns>
 
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                        </EditFormSettings>
 
                        <PagerStyle PageSizeControlType="RadComboBox" AlwaysVisible="True"></PagerStyle>
                    </MasterTableView>
 
                    <PagerStyle PageSizeControlType="RadComboBox" AlwaysVisible="True" ChangePageSizeButtonToolTip="Cambia numero righe da visualizzare" FirstPageToolTip="Prima pagina" GoToPageButtonToolTip="A pagina" LastPageToolTip="Ultima pagina" NextPagesToolTip="Prossima pagina" NextPageToolTip="Prossima pagina" PagerTextFormat="Modifica pagina: {4} &nbsp;Pagina <strong>{0}</strong> di <strong>{1}</strong>, clienti <strong>{2}</strong> a <strong>{3}</strong> di <strong>{5}</strong>." PageSizeLabelText="Numero righe" PrevPagesToolTip="Pagine precedenti" PrevPageToolTip="Pagina precedente"></PagerStyle>
                    <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                    <FilterMenu EnableImageSprites="False"></FilterMenu>
                </telerik:RadGrid>
            </div>
        </div>
        <asp:HiddenField ID="hf_idcliente" runat="server" />
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Metro">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadNotification ID="msg" runat="server" Position="Center" Title="Reception" EnableRoundedCorners="True" AutoCloseDelay="3500">
        </telerik:RadNotification>
    </form>
</body>
</html>


radwindow with another new page without code aspx, function perfect, what's the problem in this page?

bye
Marin Bratanov
Telerik team
 answered on 19 Jul 2013
3 answers
625 views
Hi guys,

I had look through your posts and cant seem to find what i am looking for.

Could someone please post a link to a answer to my question because im sure this would have been answered before.

Inside of my 1st Radwindow a user will have an option so search for a customer, When the user clicks on a button it opens another RadWindow inside of my current RadWindow. my 2nd Radwindow will pass data to the 1st RadWindow if the save button is clicked.

The 2nd RadWindow has a "Save" and "Close" button.

What i need is when the save button or close button is clicked the 2nd Radwindow will close and display the 1st one again

Thnx in advance.
newguy
Top achievements
Rank 1
 answered on 19 Jul 2013
5 answers
79 views
hello 
I have attach image of grid
in which grid filter in not visible
Maria Ilieva
Telerik team
 answered on 19 Jul 2013
4 answers
229 views
Hello,
Am using Rad Grid with NeedDataSource for databinding, and also used paging and filter.
I have set filtering only for "Contains" without filter icon just by pressing enter
Please find my aspx below,
I added paging drop down values in Grid_ItemCreated Event,
Filtering works fine when the page size is 50 or less than that,
Now my problem is when I select page size as 100, filtering is not working for any of the columns.

Using the browser Mozilla Firefox,


protected void Managegridview_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridPagerItem)
            {
                var dropDown = (RadComboBox)e.Item.FindControl("PageSizeComboBox");
                var totalCount = ((GridPagerItem)e.Item).Paging.DataSourceCount;
                var sizes = new Dictionary<string, string>()
                {
            {"10", "10"},
            {"20", "20"},
            {"50", "50"}
                };
 
                if (totalCount > 100)
                {
                    sizes.Add("100", "100");
                }
                if (totalCount > 200)
                {
                    sizes.Add("200", "200");
                }
                sizes.Add("All", totalCount.ToString());
 
                dropDown.Items.Clear();
                foreach (var size in sizes)
                {
                    var cboItem = new RadComboBoxItem() { Text = size.Key, Value = size.Value };
                    cboItem.Attributes.Add("ownerTableViewId", e.Item.OwnerTableView.ClientID);
                    dropDown.Items.Add(cboItem);
                }
                
dropDown.FindItemByValue(e.Item.OwnerTableView.PageSize.ToString()).Selected = true;- NullreferenceException in this line(object reference not set to instance of object)
            }
        }

.aspx
<telerik:RadGrid ID="Managegridview" runat="server" AllowPaging="true" AllowSorting='true'
        GridLines="None" OnNeedDataSource="Managegridview_NeedDataSource" OnItemDataBound="Managegridview_ItemDataBound"
        AllowFilteringByColumn="true" CellSpacing="0" Skin="WebBlue"
        OnItemCreated="Managegridview_ItemCreated" PageSize="50">
        <GroupingSettings CaseSensitive="false"/>
        <ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true" AllowColumnHide="true" ColumnsReorderMethod="Reorder">
            <Resizing AllowColumnResize="true" AllowResizeToFit="true" ResizeGridOnColumnResize="false" />
            <Selecting AllowRowSelect="true" />
        </ClientSettings>
        <MasterTableView GridLines="None" Width="100%" AllowMultiColumnSorting="true">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            </RowIndicatorColumn>
            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"
                Created="True">
            </ExpandCollapseColumn>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
            <PagerStyle PageSizeControlType="RadComboBox" Mode="NextPrevAndNumeric" EnableSEOPaging="True"
                AlwaysVisible="true"></PagerStyle>
        </MasterTableView>
        <HeaderStyle Width="100px" />
 
<%--<PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>--%>
 
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
Kothai
Top achievements
Rank 1
 answered on 19 Jul 2013
4 answers
117 views
Hi all

Is it possible to integrate radslider with radnumerictextbox so that each work in a sync fashion. The value change gets reflected in both controls.

Thanks
Ivy
Shinu
Top achievements
Rank 2
 answered on 19 Jul 2013
3 answers
191 views
Hi there
Is it possible to align the date part of the header of the scheduler control?
I have removed all controls in the header except the date part and wish to align this on the right
I have tried some styles as well
Thanks

 

ShowHeader="True" 
ShowNavigationPane="false"   
ShowViewTabs="false" 
EnableDatePicker="false" 
 
<style type="text/css">   
div.RadScheduler .rsHeader   
{   
text-align: right;   
padding-right: 0px;   
margin-right:0px;   
background-position:right;   
 }  
</style>   
 
 

 

 

 

 

 

Boyan Dimitrov
Telerik team
 answered on 19 Jul 2013
1 answer
70 views
I'm using the radGrid control with ajax set, for databinding I'm using asp.net 4.5 model binding and my select method returns an IQueryable as a data type. When I sort a column and then change the page, the page index changes, but the page contents remains the same. How can I solve this problem?
Milena
Telerik team
 answered on 19 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?