Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
166 views
Hi, I'm using latest internal build 2010.1.504.20.
I have simple layout: textbox for e-mail info and submit button. I use RadInputManager->RegExpTextBoxSetting to manage validations and Empty message:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
    <style> 
    </style> 
</head> 
<body> 
    <form id="form1" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager> 
     
    <asp:TextBox runat="server" ID="EMailText" TextMode="SingleLine" /> 
     
    <asp:LinkButton ID="LinkButton1" ValidationGroup="Contact" runat="server" Text="Send" CssClass="contact-btn" /> 
    <telerik:RadInputManager  ID="ContactRadInputManager" runat="server"
        <telerik:RegExpTextBoxSetting  BehaviorID="EmailBehavior" EmptyMessage="e-mail" ValidationExpression="^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$" Validation-ValidationGroup="Contact" Validation-IsRequired="true" ErrorMessage="error!"
                <TargetControls> 
                    <telerik:TargetInput ControlID="EMailText" /> 
                </TargetControls> 
         </telerik:RegExpTextBoxSetting>     
    </telerik:RadInputManager> 
    </form> 
</body> 
</html> 

If you will try to run this code using latest internal release (for example in FireFox as me) you will see following problems:
1) Note: no post backs before instructions. Click send button (don't enter TextBox so far). You will see expected error message. Enter text box and you will see empty message "e-mail" entered there as text instead of blank field.
2) Note: no post backs before instructions. Click send button (don't enter TextBox so far). You will see expected error message. Refresh page (post back happens), you will see error message that is fine. Enter text box and you will see again error message entered there as text instead of blank field.
3) Note: no post backs before instructions. Enter something in the text box that is not valid e-mail, for example "111". Leave text box. You will see expected error message. Refresh page (post back happens), you will see error message that is fine. Enter text box and you will see again error message entered there as text instead of "111". For me it will be fine is post back will clear state of text boxes of will correctly remember it, but not current behavior.

Now lets add one more text box with the required validation on it:
    <asp:TextBox runat="server" ID="NameText" TextMode="SingleLine" /> 
    <asp:TextBox runat="server" ID="EMailText" TextMode="SingleLine" /> 
     
    <asp:LinkButton ID="LinkButton1" ValidationGroup="Contact" runat="server" Text="Send" CssClass="contact-btn" /> 
    <telerik:RadInputManager  ID="ContactRadInputManager" runat="server"
        <telerik:RegExpTextBoxSetting  BehaviorID="EmailBehavior" EmptyMessage="e-mail" ValidationExpression="^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$" Validation-ValidationGroup="Contact" Validation-IsRequired="true" ErrorMessage="error!"
                <TargetControls> 
                    <telerik:TargetInput ControlID="EMailText" /> 
                </TargetControls> 
         </telerik:RegExpTextBoxSetting>     
        <telerik:TextBoxSetting BehaviorID="NameBehavior" EmptyMessage="name" ErrorMessage="enter name" 
                                Validation-IsRequired="true" Validation-ValidationGroup="Contact"
            <TargetControls> 
                <telerik:TargetInput ControlID="NameText" /> 
            </TargetControls> 
        </telerik:TextBoxSetting>     
              
    </telerik:RadInputManager> 

4) Note: no post backs before instructions. Enter something in the NameText text box for example "111". Enter something valid in the EMailText text box for example "2@2.com". Refresh page (post back happens). You will see that NameText text box looses it's "RadInput_Enabled_Default" style after post back.

Please let me know if I'm doing something wrong or my expectations are not correct. Also provide workarounds if exist or let me know when fixes will be available internally.

Thanks,
Denis.
Tsvetoslav
Telerik team
 answered on 29 Jun 2010
4 answers
186 views
Hi,

I have one xml file where i have defined URL as one attribute in all xml node. Based on some condition i need to set this URL value. So i cannot assign values to static xml. To achieve this functionality in code behind file I have implemented as below. But it is not fetching the newly set URL value.

Can anybody help me in re bind the xml data source to radmenu item?

'Get the list of name nodes
            xmlnodelst = xmlFinalDoc.SelectNodes("Items/Item/Item")

            For Each xmlParentNode In xmlnodelst
                For Each xmlnode In xmlParentNode.ChildNodes
                    If CDbl(xmlnode.Attributes.GetNamedItem("Value").Value) = 42 Or CDbl(xmlnode.Attributes.GetNamedItem("Value").Value) = 41 Then

                        If CBool(objBOApplication.Group.UsePaymentBatchDetails) Then
                            If CDbl(xmlnode.Attributes.GetNamedItem("Value").Value) = 41 Then
                                xmlnode.Attributes.GetNamedItem("Url").Value = "../Pages/PaymentBatchCreate.aspx?payMode=O"
                            Else
                                xmlnode.Attributes.GetNamedItem("Url").Value = "../Pages/PaymentBatchCreate.aspx?payMode=E"
                            End If
                        Else
                            If CDbl(xmlnode.Attributes.GetNamedItem("Value").Value) = 41 Then
                                xmlnode.Attributes.GetNamedItem("Url").Value = "../Pages/PayBatch.aspx?payMode=O"
                            Else
                                xmlnode.Attributes.GetNamedItem("Url").Value = "../Pages/PayBatch.aspx?payMode=E"
                            End If
                        End If
                    End If
                Next
            Next

            xmlDataSrc.Dispose()
            xmlDataSrc.Data = xmlFinalDoc.OuterXml
            xmlDataSrc.XPath = PresentationConstants.XPATH
            xmlDataSrc.DataBind()

            mnuKAM.Items.Clear()
            mnuKAM.DataSource = xmlDataSrc
            mnuKAM.DataNavigateUrlField = PresentationConstants.URL
            mnuKAM.DataTextField = PresentationConstants.TEXT
            mnuKAM.DataValueField = PresentationConstants.Value

            radMnuBindg.ImageUrlField = PresentationConstants.IMAGE
            radMnuBindg.NavigateUrlField = PresentationConstants.URL
            radMnuBindg.TextField = PresentationConstants.TEXT
            radMnuBindg.ValueField = PresentationConstants.Value

            mnuKAM.DataBindings.Add(radMnuBindg)
            mnuKAM.DataBind()


Yana
Telerik team
 answered on 29 Jun 2010
3 answers
128 views

This is driving me crazy, and I have no idea why it's happening. I've got a grid with the following settings...

<telerik:GridClientDeleteColumn ConfirmText="Are you sure you want to delete the selected item?" 
    ButtonType="LinkButton" Text="Delete">  
</telerik:GridClientDeleteColumn> 
 
<ClientEvents OnRowSelected="RowSelected" OnRowDeleted="RowDeleted" /> 
 

Here's my javascript...

function RowSelected(grd, eventArgs) {     
    
    var masterTable = grd.get_masterTableView();     
    var rows = masterTable.get_dataItems();     
    var iRow = eventArgs.get_itemIndexHierarchical();     
    var row = rows[iRow];  
 
    if (row == null) {  
        alert('Row is Null: How is this possible?');  
        return;  
    }  
 
    var cell = row._element.cells[3];  // Get the 3rd column cell.     
    if (cell == null) {     
        alert('How is this possible?');     
        return;     
    }     
    var val = cell.innerHTML;     
    alert(val);     
    
}    
 
 
function RowDeleted(grd, eventArgs) {  
    alert('Row Deleted Done!');  
}  
 

When I select a row normally, an alert shows the value in the 3rd cell. No problem there. But when I click the delete link in a row, it pops up the "Row Deleted Done!" message as expected, and then OnRowSelected gets executed, but with strange results, at times resulting in my "How is this possible?" alerts.

After all, OnRowSelected should only get kicked off if a row is selected (which apparently the code thinks is the case, even though I don't always see a row getting highlighted and I'm not telling it to select a row after the delete). But a row is somehow getting selected after the delete, so a resultant row and cell must exist since that's what caused the event to get kicked off.

So what's going on?
Tsvetoslav
Telerik team
 answered on 29 Jun 2010
1 answer
124 views
Are there any examples or does anyone have any guidelines for having a nestedviewtemplate that contains a usercontrol?  What I am looking to accomplish is the user expanding a row, and the expansion has a user control's data is based on a value ("key") from the row of data that was just expanded.  The control's data is retrieved on page load and is then stored in ViewState. 

If I do something like this:
<NestedViewTemplate> 
    <uc1:myControl runat="server" ID="myCustomControl" MyKey='<%# Eval("Key") %>' /> 
</NestedViewTemplate> 
 
everything seems to work OK until I try to edit a row in the grid or add a row.  At that point, the ViewState of the control is lost and since it's not an initial page load it won't re-load the data.

So I guess my questions would include:
1.  Anything I need to consider when using a UserControl in a NestedViewTemplate?
2.  Do I need to add the usercontrol dynamically?
3.  Do I need to load the data of the control in a different manner?  Upon grid row expansion, for example?
Rosen
Telerik team
 answered on 29 Jun 2010
4 answers
146 views
Hi,

Please tell me how to achieve something like this:

RadGrid1.MasterTableView.AutoGeneratedColumns[

 

"somecol"].HeaderText = "My Column";

 


In this instance I only want to set the column header text but say i want to programmatically access a column for any reason I can't see a method to allow me to do this by key and it is impossible to know the index of the column
Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 29 Jun 2010
3 answers
107 views
I've built a RadGrid with a custom edit form.  I then use this form for both inserting and editing of records.  The insert portion works correctly but when I try to edit a record the form comes up without any values in the RadNumericTextBox.

I've tried populating the fields like the code below but then I get an error error when I switch to insert mode.
<telerik:RadNumericTextBox ID="txt_open_indemnity" Runat="server" Text='<%#  Bind( "paid_indemnity" ) %>'  
    CssClass="style2" Culture="English (United States)" DataType="System.Decimal"  
    TabIndex="8" Type="Currency" Value="0" Width="100px"
</telerik:RadNumericTextBox> 

How do I populate the text fields when the RadGrid is in edit mode?
Tsvetoslav
Telerik team
 answered on 29 Jun 2010
3 answers
134 views
Hi,

I'm having an issue with adding columns to the radgrid programmatically.  I'm adding GridTemplateColumns and doing it in Page_Init.  I have read the documentation and have realized that I need to add them to the ColumnCollection before I set the properties so I am doing this also.  Everything displays properly if(!Postback), but when I click to sort, refresh, page, etc, the content that I had displayed inside the grid remains, but a duplicate column is inserted for each column and the content in that column is blank.  I have tried moving and taking out adding the new columns in the Page_Load, OnPreRender, Page_Init, and with if(!Postback) in each case, but I am not having any luck. 

Is there something small that I'm missing that you can help me out with?

Thanks in advance,
Matt
mdanna
Top achievements
Rank 1
 answered on 29 Jun 2010
6 answers
214 views
I have a radgrid with an edit button, some columns and a image button that will pop up a modal radwindow from the code behind.

Aftter clicking the image button, the popup comes up with no issues and then close it. After cliciking the edit button, the edit form comes up fine, but the radwindow also pops up again and must manually close it. It pops up without me actually clicking on the image button to pop it up again. It's very annoying for the user since they have to close it each time when they simply just want to edit a record.

Here is my abbreviated html:
<code>

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>
           
        </Windows>
    </telerik:RadWindowManager>

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Outlook" AutoGenerateColumns="False" OnItemCommand="RadGrid1_ItemCommand"
                        OnNeedDataSource="RadGrid1_NeedDataSource" OnItemDataBound="RadGrid1_ItemDataBound"
                        OnInsertCommand="RadGrid1_InsertCommand" OnUpdateCommand="RadGrid1_UpdateCommand"
                        AllowPaging="True" AllowSorting="True" PageSize="20" GridLines="None">
                        <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="Provider_FacilityID"
                            EditMode="EditForms">
                            <Columns>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="../images/icon_edit.gif"
                                    UniqueName="EditCommandColumn">
                                    <HeaderStyle Width="20px" />
                                </telerik:GridEditCommandColumn>
                                <telerik:GridBoundColumn UniqueName="provider" HeaderText="Provider" DataField="provider">
                                </telerik:GridBoundColumn>
                               
                                <telerik:GridBoundColumn UniqueName="providerStatus" HeaderText="ProviderStatus"
                                    DataField="providerStatus" HtmlEncode="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="ProviderFacilityStartDate" HeaderText="Start Date"
                                    DataFormatString="{0:MM/dd/yyyy}" UniqueName="ProviderFacilityStartDate" AutoPostBackOnFilter="true">
                                </telerik:GridDateTimeColumn>
                                <telerik:GridDateTimeColumn DataField="ProviderFacilityEndDate" HeaderText="End Date"
                                    DataFormatString="{0:MM/dd/yyyy}" UniqueName="ProviderFacilityEndDate" AutoPostBackOnFilter="true">
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn UniqueName="workStatus" HeaderText="Facility Rel Status"
                                    DataField="workStatus" HtmlEncode="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="PrivilegesGrantedDate" HeaderText="Privileges Granted"
                                    DataFormatString="{0:MM/dd/yyyy}" UniqueName="PrivilegesGrantedDate" AutoPostBackOnFilter="true">
                                </telerik:GridDateTimeColumn>
                                <telerik:GridDateTimeColumn DataField="PrivilegesExpiration" HeaderText="Privileges Expiration"
                                    DataFormatString="{0:MM/dd/yyyy}" UniqueName="PrivilegesExpiration" AutoPostBackOnFilter="true">
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn UniqueName="PrivilegeStatus" HeaderText="Privilege Status"
                                    DataField="PrivilegeStatus" HtmlEncode="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="FacilityID" HeaderText="FacilityID" DataField="FacilityID"
                                    HtmlEncode="true" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="ProviderID" HeaderText="ProviderID" DataField="ProviderID"
                                    HtmlEncode="true" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Provider_FacilityID" HeaderText="Provider_FacilityID"
                                    DataField="Provider_FacilityID" HtmlEncode="true" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn HeaderText="" UniqueName="changeSeq1">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="relation" runat="server" ImageUrl="~/images/folder-documents.png"
                                            OnClick="relationship_Click" ToolTip="Relationship" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="" UniqueName="changeSeq2">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="EnrollForm" runat="server" ImageUrl="~/images/icon_document.gif"
                                            OnClick="enrollmentForm_Click" ToolTip="Enrollment Form" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                            <EditFormSettings EditFormType="Template">
                                <EditColumn UniqueName="EditCommandColumn1">
                                </EditColumn>
                                <FormTemplate>
                                    <table id="Table2" border="0" cellpadding="1" cellspacing="2" rules="none" style="border-collapse: collapse;
                                        background: white;" width="100%">
                                        <tr valign="top">
                                            <td>
                                                <asp:Panel ID="Panel1" runat="server" GroupingText="Provider Facility Relationship">
                                                    <table id="Table3" border="0" cellpadding="1" cellspacing="1" width="100%">
                                                        <tr>
                                                            <td style="width: 186px" class="td_AEV">
                                                                Provider
                                                            </td>
                                                            <td class="td_AEVNoBold">
                                                                <asp:DropDownList ID="drpProvider" runat="server">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr valign="top">
                                                            <td style="width: 186px" class="td_AEV">
                                                                Work Status
                                                            </td>
                                                            <td class="td_AEVNoBold">
                                                                <asp:DropDownList ID="WorkStatusID" runat="server" DataSourceID="LinqDataSource1"
                                                                    DataTextField="Description" DataValueField="WorkStatusID" AppendDataBoundItems="true"
                                                                    SelectedValue='<%# Bind("WorkStatusID") %>'>
                                                                    <asp:ListItem Text="" Selected="True" Value=""></asp:ListItem>
                                                                </asp:DropDownList>
                                                                <span style="color: Red">*</span>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                                                    ControlToValidate="WorkStatusID" ErrorMessage=" Required Field"></asp:RequiredFieldValidator>
                                                                <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="HPPInfoNet.Data.hppInfoNet2DataContext"
                                                                    Select="new (Description, WorkStatusID)" TableName="WorkStatus">
                                                                </asp:LinqDataSource>
                                                               
                                                            </td>
                                                        </tr>
                                                        <tr valign="top">
                                                            <td style="width: 186px" class="td_AEV">
                                                                Start Date
                                                            </td>
                                                            <td class="td_AEVNoBold">
                                                                <telerik:RadDatePicker ID="ProviderFacilityStartDate" runat="server" DataFormatString="{0:MM/dd/yyyy}">
                                                                </telerik:RadDatePicker>
                                                            </td>
                                                        </tr>
                                                        <tr valign="top">
                                                            <td style="width: 186px" class="td_AEV">
                                                                End Date
                                                            </td>
                                                            <td class="td_AEVNoBold">
                                                                <telerik:RadDatePicker ID="ProviderFacilityEndDate" runat="server" DataFormatString="{0:MM/dd/yyyy}">
                                                                </telerik:RadDatePicker>
                                                            </td>
                                                        </tr>
                                                        <tr valign="top">
                                                            <td style="width: 186px" class="td_AEV">
                                                                Relationship Status
                                                            </td>
                                                            <td class="td_AEVNoBold">
                                                                <asp:DropDownList ID="PhysicianStatusID" runat="server" DataSourceID="LinqDataSource2"
                                                                    DataTextField="Description" DataValueField="PhysicianStatusID" AppendDataBoundItems="true"
                                                                    SelectedValue='<%# Bind("PhysicianStatusID") %>'>
                                                                    <asp:ListItem Text="" Selected="True" Value=""></asp:ListItem>
                                                                </asp:DropDownList>
                                                                <span style="color: Red">*</span>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                                                                    ControlToValidate="PhysicianStatusID" ErrorMessage=" Required Field"
                                                                    ></asp:RequiredFieldValidator>
                                                                <asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="HPPInfoNet.Data.hppInfoNet2DataContext"
                                                                    Select="new (Description, PhysicianStatusID)" TableName="PhysicianStatus">
                                                                </asp:LinqDataSource>
                                                               
                                                            </td>
                                                        </tr>
                                                        <tr valign="top">
                                                            <td style="width: 186px" class="td_AEV">
                                                                Privileges Granted Date
                                                            </td>
                                                            <td class="td_AEVNoBold">
                                                                <telerik:RadDatePicker ID="PrivilegesGrantedDate" runat="server" DataFormatString="{0:MM/dd/yyyy}">
                                                                </telerik:RadDatePicker>
                                                            </td>
                                                        </tr>
                                                        <tr valign="top">
                                                            <td style="width: 186px" class="td_AEV">
                                                                Privileges Expiration Date
                                                            </td>
                                                            <td class="td_AEVNoBold">
                                                                <telerik:RadDatePicker ID="PrivilegesExpiration" runat="server" DataFormatString="{0:MM/dd/yyyy}">
                                                                </telerik:RadDatePicker>
                                                            </td>
                                                        </tr>
                                                        <tr valign="top">
                                                            <td style="width: 186px" class="td_AEV">
                                                                Privileges Status
                                                            </td>
                                                            <td class="td_AEVNoBold">
                                                                <asp:DropDownList ID="PrivilegeStatusID" runat="server" DataSourceID="LinqDataSource3"
                                                                    DataTextField="Description" DataValueField="PrivilegeStatusID" AppendDataBoundItems="true"
                                                                    SelectedValue='<%# Bind("PrivilegeStatusID") %>'>
                                                                    <asp:ListItem Text="---" Selected="True" Value=""></asp:ListItem>
                                                                </asp:DropDownList>
                                                                <asp:LinqDataSource ID="LinqDataSource3" runat="server" ContextTypeName="HPPInfoNet.Data.hppInfoNet2DataContext"
                                                                    Select="new (Description, PrivilegeStatusID)" TableName="PrivilegeStatus">
                                                                </asp:LinqDataSource>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 186px" class="td_AEV">
                                                                &nbsp;
                                                            </td>
                                                            <td align="left" class="td_AEVNoBold">
                                                                <asp:Button ID="Button3" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                                    runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                                                </asp:Button>&nbsp;
                                                                <asp:Button ID="Button4" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">
                                                                </asp:Button>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                    </table>
                                </FormTemplate>
                            </EditFormSettings>
                        </MasterTableView>
                    </telerik:RadGrid>
</code>

Here is my code-behind:
<code>

protected void relationship_Click(object sender, ImageClickEventArgs e)
        {

            RadWindowManager1.Windows.Clear();

            RadWindow newwindow = new RadWindow();
            newwindow.ID = "RadWindow1";  //"RadWindow1";
            newwindow.Width = 1000;
            newwindow.Height = 600;
            newwindow.Modal = true;
            newwindow.VisibleOnPageLoad = true;
            newwindow.DestroyOnClose = true;
            newwindow.NavigateUrl = "../relationship/prvFacRelationship.aspx?usrname=" + ViewState["UserName"].ToString() + "&usremail=" + ViewState["UserEmail"].ToString() + "&pfID=" + pfID;
            RadWindowManager1.Windows.Add(newwindow);
        }


</code>

What can I do to make the popup stop popping up when I simply click on the edit button? If no solution, is there an update to the control set I need to use, etc. I am using version 2009.3.1314.35 of the controls.

Thanks,

Bill........
Georgi Tunev
Telerik team
 answered on 29 Jun 2010
5 answers
108 views
If I use the RadInputManager Validation for a given text box, and set it to required, after post back, the "EmptyMessage" behavior fails to work, and that text becomes the actual text that displays.

To recreate this situation outside of my application, I took the "Ajax" validation sample (http://demos.telerik.com/aspnet-ajax/ajax/examples/common/validation/defaultcs.aspx) and added a RadInputManager too it directly after the closing of the table:
          <telerik:RadInputManager ID="RadInputManager1" runat="server">
                <telerik:TextBoxSetting EmptyMessage="Enter Name"  InitializeOnClient="true"
                ErrorMessage="Name Required"
                Validation-IsRequired="true"
                Validation-ValidateOnEvent="All" >
                    <TargetControls>
                        <telerik:TargetInput ControlID="tbName" />
                    </TargetControls>
                </telerik:TextBoxSetting>
           </telerik:RadInputManager>
I then removed the "RequiredFieldValidator" named "RequiredFieldValidator1" to eliminate the redundant validation.

Upon submitting the form without entering any text entered in the text box, the error message is displayed in the text box as it should, but when you attempt to enter text in the text box, you find that the text box is filled with the "EmptyMessage" text, and the user must manually delete the text before entering the desired text.
Herve
Top achievements
Rank 2
 answered on 29 Jun 2010
1 answer
240 views
Hi 

i am using Rad grid , which contains Add,Edit, Delete image controls.  
if i am editing the first row and press enter key ,update method is called, if i edit other than first row the delete method is called. 
What should i do to prohibit this.

In the edit mode , if i press enter key it should call update method only, please let me know how can i achieve this..

Thanks!

Sebastian
Telerik team
 answered on 29 Jun 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?