Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views
I'm using RadGrid Ajax Q3 2009.  I can't believe I'm having trouble with something so simple.  All I want to do is retrieve a value of a non-editable cell for a row in edit mode. 

Using the Update or Item Command event to get the value

GridDataItem

 

dataitem = e.Item as GridDataItem;

 

string mycell = dataitem["MyColumn"].Text;

always gives mycell with a value of  " "

What the hey am I doing wrong??
Shinu
Top achievements
Rank 2
 answered on 03 Mar 2010
1 answer
111 views
Hi Team,

How can I bind radGrid programmatically without using any datasource declaratively
Could you please provide me with a sample for the same...
Similar to the demo on ur site:http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

 we need to create a demo with all radControls with Adapters
This is something urgent
Kindly provide me with a sample..
Princy
Top achievements
Rank 2
 answered on 03 Mar 2010
4 answers
161 views
Hi Telerik Team,

How to Display Current Week on first Row.

I have RAD Scheduler which have very less height, its showing first two rows of the Scheduler. My Requirement is to show Current Week on the First Row. How it is possible to do?

Please help me in this situation.

Amol Wable


Hiten
Top achievements
Rank 1
 answered on 03 Mar 2010
1 answer
61 views
Hi,

I'm currently building a controls library demo site for my company.  I really like the silverlight demo that Telerik has.  I have already implemented the transition effects.  What i'm curious about is the background image for the overall page.  It appears to be an image that auto scales with the browser window.  Can you tell me what that is?  Are you building an image using xaml somehow or is that one big image and you have figured out a way to have it scale?

Thanks

John Keath
John
Top achievements
Rank 1
 answered on 02 Mar 2010
1 answer
103 views
I'm using a RadTabStrip that contains RadTabs with Silverlight grids (RadGridView). The grids are configured with validators. On postback while attempting to save to the database I'm having the following issue: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. The Java script debugger breaks on the d.focus() call in the script segment below. This segement is from RadInputControl.js from Telerik.Web.UI. d is the Silverlight grid and its offsetWidth is 0 at this point. Also, this grid is not on the current visible tab. Let me know if you need more information.

Thanks, Mike Fernandez

if(typeof(ValidatorSetFocus)=="function"){  
   ValidatorSetFocus=function(f,c){  
        var d;  
        if(typeof(f.controlhookup)=="string"){  
            var a;  
            if((typeof(c)!="undefined")&&(c!=null)){  
                if((typeof(c.srcElement)!="undefined")&&(c.srcElement!=null)){  
                   a=c.srcElement;  
                }  
                else{  
                   a=c.target;  
                }  
           }  
           if((typeof(a)!="undefined")&&(a!=null)&&(typeof(a.id)=="string")&&(a.id==f.controlhookup)){  
               d=a;  
           }  
        }  
        if((typeof(d)=="undefined")||(d==null)){  
            d=document.getElementById(f.controltovalidate);  
        }  
        var b=false;  
        if((d.style)&&(typeof(d.style.visibility)!="undefined")&&(d.style.visibility=="hidden")&&  
        (typeof(d.style.width)!="undefined")&&(document.getElementById(d.id+"_text")||  
        document.getElementById(d.id+"_dateInput_text"))&&(d.tagName.toLowerCase()=="input"||  
        d.tagName.toLowerCase()=="textarea")){  
            b=true;  
        }  
        if((typeof(d)!="undefined")&&(d!=null)&&(d.tagName.toLowerCase()!="table"||(typeof(c)=="undefined")  
            ||(c==null))&&((d.tagName.toLowerCase()!="input")||(d.type.toLowerCase()!="hidden"))&&  
            (typeof(d.disabled)=="undefined"||d.disabled==null||d.disabled==false)&&(typeof(d.visible)=="undefined"||  
            d.visible==null||d.visible!=false)&&(IsInVisibleContainer(d)||b)){  
            if(d.tagName.toLowerCase()=="table"&&(typeof(__nonMSDOMBrowser)=="undefined"||__nonMSDOMBrowser)){  
                var g=d.getElementsByTagName("input");  
                var e=g[g.length-1];  
                if(e!=null){  
                    d=e;  
                }  
            }  
            if(typeof(d.focus)!="undefined"&&d.focus!=null){  
                if(b&&document.getElementById(d.id+"_text")){  
                    document.getElementById(d.id+"_text").focus();  
                }  
                else {  
                    if(b&&document.getElementById(d.id+"_dateInput_text")){  
                        document.getElementById(d.id+"_dateInput_text").focus();  
                    }  
                    else{  
                        d.focus();  //breaks here.
                    }  
                }  
                Page_InvalidControlToBeFocused=d;  
            }  
        }  
    };  
Michael Fernandez
Top achievements
Rank 1
 answered on 02 Mar 2010
4 answers
169 views
Hello ...
In my application uses a Telerik Grid, where I edit the information and insert new information in a pop-up.
In the Grid FormTemplate use various web controls including use 2 DropDownList that recharge selected based on what one of them. I'm teniedno problem is I can not retrieve the DropDownList value selected in the primary.
I leave an example of my code


<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting>
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GridNotas" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="CveUsuario">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GridNotas" LoadingPanelID="RadAjaxLoadingPanel1"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="CveEstado">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GridNotas" LoadingPanelID="RadAjaxLoadingPanel1"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="Desde">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GridNotas" LoadingPanelID="RadAjaxLoadingPanel1"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="Hasta">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GridNotas" LoadingPanelID="RadAjaxLoadingPanel1"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="IdGenero">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="IdClasificacion" LoadingPanelID="RadAjaxLoadingPanel1"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="IdGenero">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GridNotas" LoadingPanelID="RadAjaxLoadingPanel1"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="IdClasificacion">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GridNotas" LoadingPanelID="RadAjaxLoadingPanel1"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="CollapsiblePanelExtender1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GridNotas" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Sunset" />
    <div style="width:800px; height:auto;">
        <table width="100%" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1"
                        runat="server"
                        TargetControlID="Panel1"
                        ExpandedSize="120"
                        CollapsedSize="0"
                        Collapsed="false"
                        ScrollContents="false"   
                        ExpandControlID="TituloPanel"
                        CollapseControlID="TituloPanel"
                        CollapsedText="Filtrar Notas (Expandir...)"
                        ExpandedText="Filtrar Notas (Ocultar...)"
                        AutoCollapse="false"
                        AutoExpand="False"
                        ImageControlID="Image1"
                        ExpandedImage="../Images/Botones/collapse.jpg"
                        CollapsedImage="../Images/Botones/expand.jpg"
                        ExpandDirection="Vertical"
                        SuppressPostBack="true">
                    </cc1:CollapsiblePanelExtender>
                    <asp:Panel ID="TituloPanel" runat="server">
                        <div style="width:100%; height:23px ; float:left; background-image:url('../Images/Botones/Fondo-Notas.png'); background-repeat:repeat ; text-align:left;">
                            <asp:ImageButton runat="server" ID="image1" Height="15px" ImageAlign="AbsBottom"  />&nbsp;&nbsp;       
                            <asp:Label runat="server" ID="Label1" Text="Filtrar Notas" Font-Bold="True" ForeColor="WhiteSmoke" Font-Size="Large"/>
                        </div>
                    </asp:Panel>        
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel runat="server" ID="Panel1" Width="100%">
                    <table  style="width:100%; background-image:url('../Images/Botones/fd_dgnotamain.jpg');">
                        <tr>
                            <td align="right" style="width:120px">
                                <asp:Label ID="Label2" Font-Bold="true" runat="server" Text="Comentaristas:" />
                            </td>
                            <td align="left" style="width:200px">
                                <asp:DropDownList ID="CveUsuario"
                                    runat="server"
                                    AutoPostBack="true"
                                    DataSourceID="ComentaristasDB"
                                    DataTextField="Nombre"
                                    DataValueField="CveUsuario"
                                    TabIndex="1">
                                </asp:DropDownList>
                            </td>
                            <td align="right" style="width:120px">
                                <asp:Label ID="Label4" Font-Bold="true" runat="server" Text="Estado:" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="CveEstado"
                                    runat="server"
                                    AutoPostBack="true"
                                    TabIndex="2"
                                    AppendDataBoundItems="true">
                                    <asp:ListItem Value="1" Text="Activo" />
                                    <asp:ListItem Value="3" Text="Eliminado" />
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="width:120px">
                                <asp:Label ID="Label3" Font-Bold="true" runat="server" Text="Desde:" />
                            </td>
                            <td align="left" style="width:200px">
                                <telerik:RadDatePicker ID="Desde"
                                    runat="server"
                                    Culture="Spanish (Argentina)"
                                    MinDate="2008-01-01"
                                    Width="100px"
                                    TabIndex="3"
                                    Skin="Hay"
                                    AutoPostBack="true">
                                </telerik:RadDatePicker>
                            </td>
                            <td align="right" style="width:120px">
                                <asp:Label ID="Label5" Font-Bold="true" runat="server" Text="Hasta:" />
                            </td>
                            <td align="left">
                                <telerik:RadDatePicker ID="Hasta"
                                    runat="server"
                                    Culture="Spanish (Argentina)"
                                    MinDate="2008-01-01"
                                    Width="100px"
                                    TabIndex="4"
                                    Skin="Hay"
                                    AutoPostBack="true">
                                </telerik:RadDatePicker>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="width:120px">
                                <asp:Label ID="Label6" Font-Bold="true" runat="server" Text="Genero:" />
                            </td>
                            <td align="left" style="width:200px">
                                <asp:DropDownList ID="IdGenero"
                                    runat="server"
                                    DataSourceID="GeneroDB"
                                    DataTextField="Descripcion"
                                    DataValueField="IdGenero"
                                    TabIndex="5"
                                    AutoPostBack="true"
                                    AppendDataBoundItems="true">
                                    <asp:ListItem Value="999" Text="Todos"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right" style="width:120px">
                                <asp:Label ID="Label7" Font-Bold="true" runat="server" Text="Clasificacion:" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="IdClasificacion"
                                    runat="server"
                                    AutoPostBack="true"
                                    DataSourceID="ClasificaionDB"
                                    DataTextField="Descripcion"
                                    DataValueField="IdClasificacion"
                                    TabIndex="6"
                                    AppendDataBoundItems="true">
                                    <asp:ListItem Value="999" Text="Todos"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <br /><br />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                </td>
            </tr>
        </table>
        <table width="100%" cellpadding="0" cellspacing="2">  
            <tr>
                <td align="left">
                    <telerik:RadGrid ID="GridNotas"
                    runat="server"
                    Width="100%"
                    DataSourceID="NotasDb"
                    GridLines="None"
                    AllowMultiRowEdit="false"
                    AllowAutomaticUpdates="true"
                    AllowAutomaticInserts="true"
                    AllowAutomaticDeletes="true"   
                    AllowFilteringByColumn="false"
                    AllowSorting="true"
                    AllowPaging="True"
                    PageSize="15"
                    AutoGenerateColumns="false"
                    ShowStatusBar="true"
                    Skin="Sunset">
                    <MasterTableView
                        DataSourceID="NotasDb"
                        DataKeyNames="CveNota"
                        CommandItemDisplay="Top"
                        EditMode="PopUp"  
                        ShowFooter="true"
                        Width="100%"
                        HeaderStyle-HorizontalAlign="Center">
                        <PagerStyle Mode="NextPrevAndNumeric" />
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton"                         HeaderText="Editar"         HeaderStyle-Width="40px" />
                            <telerik:GridBoundColumn UniqueName="Titulo"        DataField="Titulo"          HeaderText="Titulo"         HeaderStyle-Width="250px" AllowFiltering="false"/>
                            <telerik:GridBoundColumn UniqueName="Coment"        DataField="Coment"          HeaderText="Comentario"     HeaderStyle-Width="250px" AllowFiltering="false"/>
                            <telerik:GridBoundColumn UniqueName="Estado"        DataField="Estado"          HeaderText="Estado"         HeaderStyle-Width="50px"  AllowFiltering="false"/>
                            <telerik:GridBoundColumn UniqueName="Genero"        DataField="Genero"          HeaderText="Genero"         HeaderStyle-Width="70px"  AllowFiltering="false"/>
                            <telerik:GridBoundColumn UniqueName="Clasificacion" DataField="Clasificacion"   HeaderText="Clasificacion"  HeaderStyle-Width="70px"  AllowFiltering="false"/>
                            <telerik:GridTemplateColumn AllowFiltering="false"  DataField="CveNota"         HeaderText="Fotos"         HeaderStyle-Width="50px">
                                <ItemTemplate>
                                    <asp:HyperLink runat="server"
                                        ID="Fotos"
                                        NavigateUrl='<%# "~/Eliminar/Eliminar.aspx?form=Notas&CveNota=" & Eval("CveNota")%>'
                                        ToolTip="Agregar Foto"
                                        ImageUrl="~/Images/Botones/foto.PNG"  >
                                    </asp:HyperLink>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn AllowFiltering="false"  DataField="CveNota"         HeaderText="Eliminar"         HeaderStyle-Width="50px">
                                <ItemTemplate>
                                    <asp:HyperLink runat="server"
                                        ID="Eliminar"
                                        NavigateUrl='<%# "~/Carga/Fotos.aspx?CveNota=" & Eval("CveNota") %>'
                                        ToolTip="Eliminar Nota"
                                        ImageUrl="~/Images/Botones/Eliminar.png" >
                                    </asp:HyperLink>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                        </Columns>
                        <EditFormSettings
                            PopUpSettings-Modal="true" PopUpSettings-Width="800" EditFormType="Template"
                            CaptionDataField="CveNota" CaptionFormatString="Editar Nota: {0}" >
                            <FormTemplate>
                                <table style="background-color:#eeeeee; vertical-align:top;" cellpadding="1" cellspacing="1" width="800">
                                    <tr>
                                        <td align="right">
                                            <b>CveNota: &nbsp;<%# Eval("CveNota") %></b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" >
                                            <b>*Volanta:</b>
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="Volanta" runat="server" Text='<%# Bind("Volanta") %>' MaxLength="200" Width="600px" TabIndex="1" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2">
                                            <asp:RequiredFieldValidator ID="VVolanta" runat="server"
                                                ControlToValidate="Volanta"
                                                ErrorMessage="Debe ingresar la Volanta de la Nota."
                                                Display="Dynamic">
                                            </asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <b>*Titulo:</b>
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="Titulo" runat="server" Text='<%# Bind("Titulo") %>' MaxLength="200" Width="600px" TabIndex="2" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2">
                                            <asp:RequiredFieldValidator ID="VTitulo" runat="server"
                                                ControlToValidate="Titulo"
                                                ErrorMessage="Debe ingresar el Titulo de la Nota."
                                                Display="Dynamic">
                                            </asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <b>*Comentario:</b>
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="Comentario" runat="server"
                                                Text='<%# Bind("Comentario") %>'
                                                TextMode="MultiLine"
                                                MaxLength="1000"
                                                Width="600px"
                                                Height="120px"
                                                TabIndex="3" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2">
                                            <asp:RequiredFieldValidator ID="VComentario" runat="server"
                                                ControlToValidate="Comentario"
                                                ErrorMessage="Debe ingresar el Comentario de la Nota."
                                                Display="Dynamic">
                                            </asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" valign="top">
                                            <b>*Nota:</b>
                                        </td>
                                        <td align="left">
                                            <telerik:RadEditor ID="Nota"
                                                runat="server"
                                                Content='<%# Bind("Nota")%>'
                                                Height="700px"
                                                Width="680px"
                                                TabIndex="4"
                                                ToolbarMode="ShowOnFocus" >
                                                <Tools>
                                                    <telerik:EditorToolGroup >
                                                        <telerik:EditorTool Name="Cut" />
                                                        <telerik:EditorTool Name="Copy" />
                                                        <telerik:EditorTool Name="Paste" />
                                                        <telerik:EditorSeparator Visible="true" />
                                                        <telerik:EditorTool Name="Bold" />
                                                        <telerik:EditorTool Name="Italic" />
                                                        <telerik:EditorTool Name="Underline" />
                                                        <telerik:EditorSeparator Visible="true" />
                                                        <telerik:EditorTool Name="Fontname" />
                                                        <telerik:EditorTool Name="FontSize" />
                                                        <telerik:EditorSeparator Visible="true" />
                                                        <telerik:EditorTool Name="JustifyLeft"  />
                                                        <telerik:EditorTool Name="JustifyCenter"  />
                                                        <telerik:EditorTool Name="JustifyRight"  />
                                                        <telerik:EditorTool Name="JustifyFull"  />
                                                        <telerik:EditorSeparator Visible="true" />
                                                        <telerik:EditorTool Name="Undo" />
                                                        <telerik:EditorTool Name="Redo" />
                                                        <telerik:EditorSeparator Visible="true" />
                                                        <telerik:EditorTool Name="ForeColor" />
                                                        <telerik:EditorTool Name="BackColor" />
                                                    </telerik:EditorToolGroup>
                                                </Tools>        
                                                <Modules>
                                                    <telerik:EditorModule Name="RadEditorStatistics" />
                                                </Modules>
                                            </telerik:RadEditor>
                                        </td>
                                    </tr>
                                    <tr>
                                         <td align="center" colspan="2">
                                            <asp:RequiredFieldValidator ID="VNota" runat="server"
                                                ControlToValidate="Nota"
                                                ErrorMessage="Debe ingresar la Nota."
                                                Display="Dynamic">
                                            </asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <b>*Genero:</b>
                                        </td>    
                                        <td align="left">
                                            <asp:DropDownList ID="IdGenero"
                                                runat="server"
                                                DataTextField="Descripcion"
                                                DataValueField="IdGenero"
                                                AutoPostBack="true"
                                                SelectedValue='<%# Bind("IdGenero") %>'
                                                DataSource='<%# func.GetSqlDataSource("SELECT [IdGenero], [Descripcion] FROM [Genero]") %>'
                                                AppendDataBoundItems="True"
                                                OnSelectedIndexChanged="IdGenero_SelectedIndexChanged"
                                                TabIndex="5">
                                                <asp:ListItem Value="">Elija el Genero</asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="VIdGenero" runat="server"
                                                ControlToValidate="IdGenero"
                                                ErrorMessage="Debe ingresar el Genero."
                                                Display="Dynamic">
                                            </asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <b>*Clasificación:</b>
                                        </td>    
                                        <td align="left">
                                            <asp:DropDownList ID="IdClasificacion"
                                                runat="server"
                                                DataTextField="Descripcion"
                                                DataValueField="IdClasificacion"
                                                DataSourceID="IdClasificacionDB"
                                                selectedValue='<%# Bind("IdClasificacion") %>'
                                                AppendDataBoundItems="True" >
                                                <asp:ListItem Value="">Elija la Clasificacion</asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="VIdClasificacion" runat="server"
                                                ControlToValidate="IdClasificacion"
                                                ErrorMessage="Debe ingresar la Clasificacion."
                                                Display="Dynamic">
                                            </asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2">
                                            <asp:Button ID="Button1" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>'
                                                runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'>
                                            </asp:Button>&nbsp;
                                            <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"/>
                                        </td>
                                    </tr>
                                </table>
                            </FormTemplate>
                        </EditFormSettings>
                        </MasterTableView>
                    </telerik:RadGrid>                
                </td>
            </tr>
        </table>
    </div>
    <asp:SqlDataSource ID="ComentaristasDB" runat="server" ConnectionString="<%$ ConnectionStrings:OpiDeportivaConnectionString %>"
        SelectCommand="SELECT CveUsuario, Nombres+' '+Apellidos AS Nombre FROM Users WHERE CveEstado=1 AND CveTipo IN (1,2)">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="EstadoDB" runat="server" ConnectionString="<%$ ConnectionStrings:OpiDeportivaConnectionString %>"
        SelectCommand="SELECT CveEstado, Descripcion FROM States">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="GeneroDB" runat="server" ConnectionString="<%$ ConnectionStrings:OpiDeportivaConnectionString %>"
        SelectCommand="SELECT IdGenero, Descripcion FROM Genero">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="ClasificaionDB" runat="server" ConnectionString="<%$ ConnectionStrings:OpiDeportivaConnectionString %>"
        SelectCommand="SELECT IdClasificacion, Descripcion FROM Clasificacion WHERE IdGenero=@IdGenero">
        <SelectParameters>
            <asp:ControlParameter  ControlID="IdGenero" Type="int32" Name="IdGenero"/>
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="IdClasificacionDB" runat="server" ConnectionString="<%$ ConnectionStrings:OpiDeportivaConnectionString %>"
        SelectCommand="SELECT [IdClasificacion], [Descripcion] FROM [Clasificacion]">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="NotasDb" runat="server" ConnectionString="<%$ ConnectionStrings:OpiDeportivaConnectionString %>"
        SelectCommand="SELECT CveNota, Titulo, SUBSTRING(Comentario,1,130)+'...' AS Coment, S.Descripcion AS Estado, G.Descripcion AS Genero, C.Descripcion as Clasificacion, N.Volanta, N.Comentario, N.Nota, N.IdGenero, N.IdClasificacion FROM Notes N INNER JOIN States S ON N.CveEstado=S.CveEstado INNER JOIN Genero G ON N.IdGenero=G.IdGenero INNER JOIN Clasificacion C ON N.IdClasificacion=C.IdClasificacion AND N.IdGenero=C.IdGenero WHERE FecAlta BETWEEN @Desde AND @Hasta AND N.CveUsuario = @CveUsuario AND N.CveEstado = @CveEstado ORDER BY CveNota DESC"
        InsertCommand="INSERT INTO [Notes]([Volanta],[Titulo], [Comentario], [Nota], [CveUsuario], [IdGenero], [IdClasificacion]) VALUES (@Volanta, @Titulo, @Comentario, @Nota, @CveUsuario, @IdGenero, @IdClasificacion)"
        UpdateCommand="UPDATE [Notes] SET [Volanta]=@Volanta, [Titulo]=@Titulo, [Comentario]=@Comentario, [Nota]=@Nota, [IdGenero]=@IdGenero, [IdClasificacion]=@IdClasificacion WHERE [CveNota]=@CveNota">
        <SelectParameters>
            <asp:ControlParameter ControlID="Desde"      Type="DateTime" Name="Desde"      PropertyName="SelectedDate" />
            <asp:ControlParameter ControlID="Hasta"      Type="DateTime" Name="Hasta"      PropertyName="SelectedDate" />
            <asp:ControlParameter ControlID="CveUsuario" Type="String"   Name="CveUsuario" DefaultValue="2" />
            <asp:ControlParameter ControlID="CveEstado"  Type="String"   Name="CveEstado"  DefaultValue="1" />
        </SelectParameters>
        <UpdateParameters>
            <asp:Parameter Name="IdClasificacion" Type="Int16" />
        </UpdateParameters>
        <InsertParameters>
            <asp:SessionParameter Name="CveUsuario" SessionField="CveUsuario" Type="Int16" />
            <asp:Parameter Name="IdClasificacion" Type="Int16" />
        </InsertParameters>
    </asp:SqlDataSource>
</asp:Content>


As I get selected value in DropDownList SelectIndexChanged event.
greetings



Gonzalo
Top achievements
Rank 1
 answered on 02 Mar 2010
2 answers
266 views
Hi,

   I created a Textbox object as an ItemTemplate for a RadToolBarButton item on my RadToolBar.

   I just need to get its value and also set a new value both on the client side. I found some codes/suggestions here in the forum that access these values, but I think they are all done on the server side. 

  I really appreciate your help!

Thanks,
Arthur
Hansik
Top achievements
Rank 1
 answered on 02 Mar 2010
2 answers
112 views
Working with this rad grid
<telerik:RadMenu ID="RadMenu1" runat="server"   
    Width="100%" OnItemClick="RadMenu1_ItemClick"   
    > 
    <Items> 
        <telerik:RadMenuItem Text="Item1" runat="server"   
        Selected="true" 
            /> 
        <telerik:RadMenuItem Text="Item2" runat="server"   
            
            /> 
        <telerik:RadMenuItem Text="Item3" runat="server"   
            
            /> 
        <telerik:RadMenuItem Text="Item4" runat="server"   
            
            /> 
    </Items> 
</telerik:RadMenu> 

And it appears that all the menu items are more on the left side of the screen.  how do i get them so that they are center aligned with widths of 25%.  I tried doing RadMenuItem.width = "25%" but doing that on each of them makes it wrap to the next line.  It also doesnt center the text, so not sure what to do.

J
J
Top achievements
Rank 1
 answered on 02 Mar 2010
1 answer
104 views
Hi

I have so many annoying errors design-time errors in RadControls in VS2008 that I think the only way forward is to do a fresh install
and eliminate all traces of earlier versions (currently 2009.2.826.35 as far as I can tell)

Can you point me to a doc that will help me

1 ) make sure all the old bits are removed

2 ) install the latest stable version (I assume this is the one before Q1 2010 beta)
    In particular whether to use the msi or manual version.

I don't plan to install the extensions.

When deplying the updated versions to the remote site do I only need to upload the new dlls
to replace the old, as before?

Thanks

Clive

Schlurk
Top achievements
Rank 2
 answered on 02 Mar 2010
2 answers
113 views
Hi there, hope someone can help

I have an Ajaxified gird used for editing records with an edit template popup which is working fine. On the grid I have a column with an ImageButton that I want to perform the following operation when clicked.

1. Open a new popup window using RadWindow
2. The opened RadWindow is defined using the window template and has a RadUpload and an OK and Cancel button.
3. If the Cancel button is clicked then the window is to close.
4. If the OK button is clicked then validation is to be done to confirm at least one file has been uploaded and the window stays open if not.
5. If the OK button is clicked and at least one file has been uploaded then the window is to close and the uploaded files passed back to the server for processing.

I have got it working so far up to step 3.

The problem I am having is getting validation to work and also getting the list of uploaded files when the OK button is pressed.
I've tried setting a postback click event on the OK button but this doesn't seem to get fired.

Can anyone point me in the right direction or perhaps provide a working sample of this scenario.

Thanks for any help
Paul
Pavlina
Telerik team
 answered on 02 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?