Does anyone know of a way to easily prevent double clicking the next button. e.g. I dont want to charge the user's credit card twice.
Any help would be great. Thanks!
I have a situation where users need to edit previously entered data, which might not be valid. For example, assume the valid range for an invoice date is the current month (10/1/2017 to 10/31/2017). Also assume I have an existing invoice with a date outside that range (11/5/2017). I'd like to present the invalid value to the user, and have the min/max validation force them to fix it.
Ideally, I could just set the min, max, and selected values in the code behind, and let the client side validation do it's job. However, setting the selected date to the invalid date in the code behind throws an exception. I also tried setting the selected date first, then applying the min/max...but then it changes the selected date based on the min/max. And the InvalidTextBoxValue is read only, so that's not an option.
Is there a way to have the initial date value be an invalid value? I used the example of a date being outside the min/max range...but in our situation it's possible that the original value wouldn't even be a valid date. Is there anything built into the control that would help with this situation? One option would be to not use the built in min/max...and implement my own client side validation to do the range check. But I view that as a last resort.
I have the following code as part of FormTemplate.
<
tr
>
<
td
>Body EN:
</
td
>
<
td
>
<
telerik:RadEditor
ID
=
"txtBodyEN"
runat
=
"server"
Height
=
"400px"
Width
=
"100%"
ToolsFile
=
"~/Tools.xml"
Content='<%# Bind("BodyEN") %>' RenderMode="Lightweight" Skin="MetroTouch" EnableTrackChanges="false" EnableComments="false" EnableViewState="false">
</
telerik:RadEditor
>
</
td
>
</
tr
>
<
tr
>
<
td
>Body DE:
</
td
>
<
td
>
<
telerik:RadEditor
ID
=
"txtBodyDE"
runat
=
"server"
Height
=
"400px"
Width
=
"100%"
ToolsFile
=
"~/Tools.xml"
Content='<%# Bind("BodyDE") %>' RenderMode="Lightweight" Skin="MetroTouch" EnableTrackChanges="false" EnableComments="false" EnableViewState="false">
</
telerik:RadEditor
>
</
td
>
</
tr
>
<
tr
>
<
td
></
td
>
<
td
>
<
telerik:RadButton
runat
=
"server"
ID
=
"btnCancel"
Text
=
"Cancel"
CommandName
=
"Cancel"
Skin
=
"MetroTouch"
RenderMode
=
"Lightweight"
Icon-PrimaryIconCssClass
=
"rbCancel"
UseSubmitBehavior
=
"false"
/>
<
telerik:RadButton
runat
=
"server"
ID
=
"btnUpdate"
Text='<%# (Container is GridEditFormInsertItem) ? "Add" : "Save" %>' CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' Skin="MetroTouch" RenderMode="Lightweight" Primary="true" Icon-PrimaryIconCssClass="rbOk" UseSubmitBehavior="false" />
</
td
>
</
tr
>
It works fine in IE but in Chrome it throws an exception as soon as you click the cancel button:
System.Web.HttpException: Maximum request length exceeded.
I've tried everything and none of those worked for me.
Note: if I remove the RadEditor's from there the Cancel button works fine in Chrome too.
Thanks
P.S. I am using a trial (current version)
I have a radeditor inside a radgrid inside a raddataform. How do I set the image upload path for the radeditor programatically in code-behind (C#)?
protected void _Default_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) |
{ |
GridFilteringItem filterItem = (GridFilteringItem)RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)[0]; |
ViewState["comboValue"] = e.Value; |
(filterItem["Language"].Controls[1] as TextBox).Text = e.Value; |
filterItem.FireCommandEvent("Filter", new Pair("EqualTo", "Language")); |
} |
I have a RADComboBox on my ASPX page as shown below:
<
telerik:RadComboBox
RenderMode
=
"Lightweight"
ID
=
"cboxEmployee"
runat
=
"server"
Width
=
"400"
Height
=
"400px"
AutoPostBack
=
"false"
EmptyMessage
=
"select employee here"
CssClass
=
"validationClass"
OnSelectedIndexChanged
=
"cboxAccused_SelectedIndexChanged"
>
</
telerik:RadComboBox
>
I Bind the ComboBox with this C# code:
private
void
BindAccusedDropdowns()
{
using
(PSDEntities context =
new
PSDEntities())
{
cboxEmployee.DataSource = context.LawsonEmployees.OrderBy(s => s.LAST_NAME).ToList();
cboxEmployee.DataTextField =
"DISPLAY"
;
cboxEmployee.DataValueField =
"EID"
;
cboxEmployee.DataBind();
cboxEmployee.AllowCustomText =
true
;
cboxEmployee.MarkFirstMatch =
true
;
}
}
The Box functions properly on the page I can select an employee.
When I attempt to get the SelectedValue of the comboBox with this code it returns a null value.
a.EID = Convert.ToInt32(cboxEmployee.SelectedValue);
Any idea why this happening?
Hello,
I want to implement RadGrid in which i am using telerik:GridTemplateColumn to bind data to link button. I want to open another page on click of this link and pass the value of the link as query-string. can anyone help me with the example?