Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
173 views
Hello...

Now I'm having problems with EditForm. I have added the following template. When I click the pencil to edit a row of the RadGrid (databounded to a datasource) all TextBox fields appear empty.

Any help woul be greatly appreciated

<EditFormSettings EditFormType="Template">  
<EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
    <FormTemplate> 
        <rad:RadPanelbar ID="pnlUsuario" runat="server" Skin="Default2006" Width="100%" ValidationGroup="grpSeleccion">  
            <Items> 
                <rad:RadPanelItem runat="server" Text="Datos B&#225;sicos">  
                    <ItemTemplate> 
                        <table style="width: 360px">  
                            <tr> 
                                <td class="label" style="width: 110px">Nombre</td> 
                                <td style="width: 250px"><asp:TextBox CssClass="texto" MaxLength="50" Columns="50" ID="txtNombre" Text='<%# Bind("FirstName") %>' runat="server"></asp:TextBox> 
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNombre" 
                                        ErrorMessage="Debe ingresar el nombre del usuario" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator></td>  
                            </tr> 
                            <tr> 
                                <td class="label" style="width: 110px">Apellidos</td> 
                                <td style="width: 240px"><asp:TextBox CssClass="texto" MaxLength="50" Columns="50" ID="txtApellidos" Text='<%# Bind("LastName") %>' runat="server"></asp:TextBox> 
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtApellidos" 
                                        ErrorMessage="Debe ingresar los apellidos del usuario" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator></td>  
                            </tr> 
                            <tr> 
                                <td class="label" style="width: 110px">Nombre Usuario</td> 
                                <td style="width: 240px"><asp:TextBox CssClass="texto" MaxLength="50" Columns="50" ID="txtUsername" Text='<%# Bind("UserName") %>' runat="server"></asp:TextBox> 
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtUsername" 
                                        ErrorMessage="Debe ingresar el nombre de usuario que se usará para conectarse al sistema" 
                                        SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator></td>  
                            </tr> 
                            <tr> 
                                <td class="label" style="width: 110px">Contraseña</td> 
                                <td style="width: 240px"><asp:TextBox CssClass="texto" MaxLength="50" Columns="52" ID="txtPassword" TextMode="Password" runat="server"></asp:TextBox> 
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPassword" 
                                        Display="Dynamic" ErrorMessage="Debe ingresar la contraseña del usuario" SetFocusOnError="True">*</asp:RequiredFieldValidator></td>  
                            </tr> 
                            <tr> 
                                <td class="label" style="width: 110px">Repita Contraseña</td> 
                                <td style="width: 240px"><asp:TextBox CssClass="texto" MaxLength="50" Columns="52" ID="txtPassword2" TextMode="Password" runat="server"></asp:TextBox> 
                                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword" 
                                        ControlToValidate="txtPassword2" ErrorMessage="Las contraseñas no coinciden" 
                                        SetFocusOnError="True" Display="Dynamic">*</asp:CompareValidator></td>  
                            </tr> 
                            <tr> 
                                <td class="label" style="width: 110px">RUT</td> 
                                <td style="width: 240px"><asp:TextBox CssClass="texto" MaxLength="10" Columns="12" ID="txtRUT" Text='<%# Bind("RUT") %>' runat="server"></asp:TextBox>&nbsp;<asp:TextBox CssClass="texto" MaxLength="1" Columns="2" ID="txtDV" Text='<%# Bind("DV") %>' runat="server"></asp:TextBox> 
                                    <fw:rutvalidator id="RutValidator1" runat="server" controltovalidate="txtRUT" controltovalidatedv="txtDV" 
                                        errormessage="El RUT fue ingresado incorrectamente" setfocusonerror="True" Display="Dynamic">*</fw:rutvalidator> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td class="label" style="width: 110px">E-mail</td> 
                                <td style="width: 240px"><asp:TextBox CssClass="texto" MaxLength="50" Columns="50" ID="txtEmail" Text='<%# Bind("Email") %>' runat="server"></asp:TextBox> 
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail" 
                                        ErrorMessage="El e-mail fue ingresado incorrectamnte" SetFocusOnError="True" 
                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic">*</asp:RegularExpressionValidator></td>  
                            </tr> 
                        </table> 
                    </ItemTemplate> 
                </rad:RadPanelItem> 
                <rad:RadPanelItem runat="server" Text="Sistemas">  
                    <ItemTemplate> 
                        <asp:CheckBoxList ID="chkSistemas" runat="server" DataSourceID="objSistemas" DataTextField="ApplicationName" 
                            DataValueField="ApplicationId" RepeatColumns="5">  
                        </asp:CheckBoxList> 
                    </ItemTemplate> 
                </rad:RadPanelItem> 
            </Items> 
        </rad:RadPanelbar> 
        <br />&nbsp;  
        <asp:ImageButton ID="btnAlmacenar" runat="server" ImageUrl="~/images/almacenar.gif" CommandName="Update" /> 
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
        <asp:ImageButton ID="btnVolver" runat="server" CausesValidation="false" ImageUrl="~/images/volver.gif" CommandName="Cancel" /> 
        <br /> 
    </FormTemplate> 
</EditFormSettings> 
 
Iana Tsolova
Telerik team
 answered on 22 Oct 2008
1 answer
113 views

Right now i am using rad-window to change password. i have set the property
of  rad-window as per IE-7 but when i see on FF the height of rad-window
is increased. How can i manage height, width, top, left property on different b/w. 

my code like this-

<rad:RadWindowManager ID="RadWindowManager1" runat="server" OpenerElementId="ctl00_cphrightContent_changepwd" Behavior="Close" Skin="Default">
            <Windows>
                <rad:RadWindow ID="RadWindow1" runat="server" Left="350px"
                NavigateUrl="ChangePassword.aspx"
                SkinsPath="~/RadControls/Window/Skins"
                Title="Change password"
                Top="190px"
                Modal ="True"
                OnClientClose="OnClientCloseHandler"
                VisibleStatusbar="False"
                Width="470px" />
            </Windows>
        </rad:RadWindowManager>


thnx
abhi




Georgi Tunev
Telerik team
 answered on 22 Oct 2008
1 answer
97 views

i am using rad-window to change password. i have set the property
of  rad-window as per IE-7 but when i see on FF the height of rad-window
is increased. How can i manage height, width, top, left property on different b/w. 

my code like this-

<rad:RadWindowManager ID="RadWindowManager1" runat="server" OpenerElementId="ctl00_cphrightContent_changepwd" Behavior="Close" Skin="Default">
            <Windows>
                <rad:RadWindow ID="RadWindow1" runat="server" Left="350px"
                NavigateUrl="ChangePassword.aspx"
                SkinsPath="~/RadControls/Window/Skins"
                Title="Change password"
                Top="190px"
                Modal ="True"
                OnClientClose="OnClientCloseHandler"
                VisibleStatusbar="False"
                Width="470px" />
            </Windows>
        </rad:RadWindowManager>


thnx
abhi
Georgi Tunev
Telerik team
 answered on 22 Oct 2008
2 answers
144 views
Hi

I would like to use the panelbar control to organise a number of panes in a similar way to Outlooks left hand organiser. However, I would like to be able to insert other controls in each of the panes. This appears to work when I insert the controls within the <ItemTemplate> tag. The problem is that I'm then not able to then close the bar. I've created a simple example of what I mean here below. You'll see that the first pane in the panelbar is not able to be closed.

Any thoughts appreciated.

Michael


    <telerik:RadPanelBar ID="RadPanelBar1" Runat="server" Skin="Outlook" Height="321px">  
        <CollapseAnimation Type="None" Duration="100"></CollapseAnimation> 
 
        <Items> 
            <telerik:RadPanelItem runat="server" Text="Root RadPanelItem1">  
                <ItemTemplate> 
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 
                </ItemTemplate> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="Root RadPanelItem2">  
                <Items> 
                    <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 1">  
                    </telerik:RadPanelItem> 
                    <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 2">  
                    </telerik:RadPanelItem> 
                    <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 3">  
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="Root RadPanelItem3">  
                <Items> 
                    <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 1">  
                    </telerik:RadPanelItem> 
                    <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 2">  
                    </telerik:RadPanelItem> 
                    <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 3">  
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
        </Items> 
 
        <ExpandAnimation Type="None" Duration="100"></ExpandAnimation> 
    </telerik:RadPanelBar> 
 
Michael
Top achievements
Rank 1
 answered on 22 Oct 2008
1 answer
115 views
Dear Telerik Support Team,

    How we can apply "floating rule" functionality in RadEditor, so that user will move up and down accouding to amount of text enterd by him.

    It will be helpful for us, if you can suggest us how we can implement this.

Regards
Samrat Banarjee.
India
Rumen
Telerik team
 answered on 22 Oct 2008
3 answers
204 views
Hello,
I looked high and low and don't see a demo or info about how to use the GridDateTimeColumnEditor
Aron
Top achievements
Rank 2
 answered on 22 Oct 2008
1 answer
1.0K+ views
Hi there, I've enabled the tick-boxes to select a row in the grid view, I need multi-select to work (which it does), but I need to achieve the following:

1. To disable the select-all tick box in the header column to ensure each tick is manual
2. To prevent clicking a row ticking the tick box (the user must use the box).

The radGrid I'm currently using is thus:

<telerik:RadGrid ID="RadGrid1" AllowSorting="True" AllowPaging="True" PageSize="5" AllowMultiRowSelection="true" runat="server" GridLines="None" Width="75%" OnSortCommand="RadGrid1_SortCommand" OnPageIndexChanged="RadGrid1_PageIndexChanged" OnItemDataBound="RadGrid1_ItemDataBound">
    <MasterTableView>
        <Columns>
            <
telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" visible="false" />
        </Columns>
    </MasterTableView>
    <PagerStyle NextPageText="Next" PrevPageText="Prev" Mode="NextPrevAndNumeric"></PagerStyle>
    <ClientSettings>
        <Selecting AllowRowSelect="True"></Selecting>
    </ClientSettings>
</telerik:RadGrid>

 

Princy
Top achievements
Rank 2
 answered on 22 Oct 2008
1 answer
97 views
Ok end goal, which I can not seem to get working...

Is sort of like an open document window. I have Parent page that has a UserID, I click on Open and the new radwindow in dialog mode, lets me fill in some basic info, from there I click create. 

This dialog window should create the document via code-behind, then when it's done, close and either a) refresh the parent window or b) send the new document Id from code behind back to the parent and the parent refreshes.

Problem is that when I click create, everything is happening, but the parent refresh instantly before the dialog box has even finished creating the document.  So then I am left with a blank parent page since I did not know the document Id to load.

Does that make sense?

Any thoughts of how to properly sequence my events?
Georgi Tunev
Telerik team
 answered on 22 Oct 2008
3 answers
116 views
Hi

I need some help regarding scroll bars on the context menu

steps:
1) Insert a table having 3 rows and 3 columns
2) Select the table and right click to have context menu
3) Make sure you have selected the skin "WebBlue"

When the mouseover is in  any item the scroll bar is appearing and it is happening only in case of  skin "WebBlue" and these scroll bars are not coming for other skins. I dont want these scroll bars on the context menu. Could you please help me in avoiding these scroll bars

Regards
Srinivas
Rumen
Telerik team
 answered on 22 Oct 2008
5 answers
444 views
I have another question.
How to create a window that with VisibleStatusbar and VisibleTitlebar property is false? That is to say,I want to create a window with Statusbar and Titilebar are unvisible.

I use following function to Open a new window. but the Statusbar and Titlebar are still visible.

function OpenWindow(name)
        {
            var wnd = window.radopen("http://www.google.com", name);
            var tdzone = $find("workspace");        
            wnd.maximize();
            wnd.VisibleStatusbar="False";
            wnd.VisibleTitlebar="False"
            wnd.RestrictionZoneID="workspace";
            return false;
        }

Can anybody help me to solve the problem?
Thanks a lot.
Georgi Tunev
Telerik team
 answered on 22 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?