Hi
Hi apologies if this is a silly question but i have searched the forums and help and can’t find an example
I’m using a radgrid with a EditFormType="Template" in the template i have a date picker and 2 timepickers. I would like when i change the datepicker on the postback this updates the selected date of the time pickers. I’ve found lots of examples of how to access the controls when ItemDataBound is called but how can i reference other editform controls programmatically once the editform is showing?
The grid is bound to a sql datasource and the updates and inserts are working perfectly bar the time picker bringing in todays date rather than the date set by the separate date picker.
Many thanks in advance
Ross
string[] viewPaths = new string[]
{
@"~/"
};
FileExplorer1.Configuration.SearchPatterns = new[] { "*.bak" };
FileExplorer1.Configuration.ViewPaths = viewPaths;
function
RowContextMenu(sender, eventArgs)
{
var
menu = $find(
"ctl00_phContent_RadMenu1"
);
var
evt = eventArgs.get_domEvent();
if
(evt.target.tagName ==
"INPUT"
|| evt.target.tagName ==
"A"
)
{
return
;
}
var
index = eventArgs.get_itemIndexHierarchical();
document.getElementById(
"radGridClickedRowIndex"
).value = index;
sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(),
true
);
menu.show(evt);
evt.cancelBubble =
true
;
evt.returnValue =
false
;
if
(evt.stopPropagation)
{
evt.stopPropagation();
evt.preventDefault();
}
}
</
MasterTableView
>
<
ClientSettings
AllowDragToGroup
=
"True"
>
<
ClientEvents
OnRowContextMenu
=
"RowContextMenu"
>
</
ClientEvents
>
<
Selecting
AllowRowSelect
=
"true"
/>
</
ClientSettings
>
<
input
type
=
"hidden"
id
=
"radGridClickedRowIndex"
name
=
"radGridClickedRowIndex"
/>
<
telerik:RadContextMenu
ID
=
"RadMenu1"
runat
=
"server"
OnItemClick
=
"RadMenu1_ItemClick"
EnableRoundedCorners
=
"True"
EnableShadows
=
"True"
>
<
Items
>
<
telerik:RadMenuItem
Text
=
"Öppna ärende"
/>
<
telerik:RadMenuItem
Text
=
"Avsluta ärende"
/>
<
telerik:RadMenuItem
Text
=
"Ta bort ärende"
/>
</
Items
>
</
telerik:RadContextMenu
>
protected
void
RadMenu1_ItemClick(
object
sender, RadMenuEventArgs e)
{
int
radGridClickedRowIndex;
radGridClickedRowIndex = Convert.ToInt32(Request.Form[
"radGridClickedRowIndex"
]);
im new user in your tools
on ASP.net VS2008
and when i add any tools give me this error
Error creating control
could not load assembly 'telerik.web.ui , version=2009.3.1208
thanks for any help
<
telerik:GridHyperLinkColumn
DataNavigateUrlFields
=
"Email1"
UniqueName
=
"Email1"
DataNavigateUrlFormatString
=
"mailto:{0}"
DataTextField
=
"Name"
HeaderText
=
"Reviewer"
SortExpression
=
"Email1"
ShowFilterIcon
=
"false"
ShowSortIcon
=
"false"
AutoPostBackOnFilter
=
"true"
/>
If (RadGrid1.SelectedItems.Count > 0) Then
For Each item As GridDataItem In RadGrid1.SelectedItems
'Add code here to retrieve email address
Next
End If