grd.EditItems.Count. But I did not manage to check if grid has new Insert row when user try to click on GridEditCommandColumn to edit another row.
RadGridDataList.MasterTableView.EditFormSettings.EditFormType = GridEditFormType.WebUserControl;
RadGridDataList.MasterTableView.EditFormSettings.UserControlName = editViewer.ViewControl;
RadGridDataList.MasterTableView.EditFormSettings.PopUpSettings.Width =
new
Unit(PopUpSettingsWidth);
RadGridDataList.MasterTableView.EditFormSettings.PopUpSettings.Modal =
true
;
Time:
<
telerik:RadDateInput
ID
=
"RadDateInput1"
runat
=
"server"
DateFormat
=
"HH:mm"
Width
=
"50"
/>
<
asp:RegularExpressionValidator
ID
=
"RegularExpressionValidator1"
runat
=
"server"
ErrorMessage
=
"Invalid Time"
ControlToValidate
=
"RadDateInput1"
Display
=
"Dynamic"
ValidationExpression
=
"(([01][0-9])|(2[0-3])):[0-5][0-9]"
SetFocusOnError
=
"true"
/>
<
br
/>
Time2:
<
asp:TextBox
ID
=
"txtTime"
runat
=
"server"
Width
=
"50"
/>
<
asp:RegularExpressionValidator
ID
=
"RegularExpressionValidator2"
runat
=
"server"
ErrorMessage
=
"Invalid Time2"
ControlToValidate
=
"txtTime"
Display
=
"Dynamic"
ValidationExpression
=
"(([01][0-9])|(2[0-3])):[0-5][0-9]"
SetFocusOnError
=
"true"
/>
<
br
/>
<
asp:Button
ID
=
"btnSubmit"
runat
=
"server"
CausesValidation
=
"true"
Text
=
"Submit"
/>
Hello Telerik Team,
I have a requirement for the rad grid to export the results shown in the rad grid dynamically.
I have put this rad grid inside a user control and user control is inside the sharepoint webpart.
I have ajaxified this webpart.
I saw some blogs where it says you cant get the export functionality work if you have ajax.
I have gone through http://www.telerik.com/community/code-library/aspnet-ajax/general/export-radgrid-content-to-excel-word-csv-pdf-with-ajax-enabled.aspx
also..but it would be really helpful if you can send out a sample for ajaxified webpart to use export.
i appreciate your help and support.
Thank you,
Smith
<
script
type
=
"text/javascript"
>
var usersmatrix1scrollArea;
function OnClientScript(args) {
var RadGrid1 = $find("<%= RadGrid1.ClientID %>");
usersmatrix1scrollArea = RadGrid1.GridDataDiv;
}
function GridCreated() {
var RadGrid1 = $find("<%= RadGrid1.ClientID %>");
var scrollArea = RadGrid1.GridDataDiv;
if (usersmatrix1scrollArea != null) {
scrollArea = usersmatrix1scrollArea;
}
}
</
script
>