<
A
title
=
MSN
href
=
"http://www.msn.com"
target
=
_blank
>MSN</
A
><
BR
>
<
A
title
=
"MSN WEB SITE"
href
=
"http://www.msn.com"
target
=
_blank
>MSN Web Site<
BR
></
A
>
foreach (GridDataItem item in this.grdSummary.SelectedItems)
{
string myID = item.GetDataKeyValue("UidInt").ToString();
string myOplockColumn = item["opLock"].Text;
string myOrderColumn = item["order"].Text;
}
function InitiateAsyncRequest(argument) {
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
ajaxManager.ajaxRequest(argument);
return false;
}
function SetSubmitConfirmation(comment) {
document.getElementById('<%=hdnComment.ClientID %>').value = comment;
InitiateAsyncRequest('submit');
}
Hi,
I'm trying to validate one of a related radcombobox controls, but there is few problems (Please view the sample application):
1) In the usercontrol there is in addition to the radcombobox controls, a RadUpload control which must be validated too (Check size of an image). So by addding a custom validator to the usercontrol, the related combobox (in the screen-shot) doesn't load the items and allways displays "Loading...".
But by removing the customvalidator control (Or even by removeing the "OnServerValidate="ImgRadUploadDimCustomValidator_ServerValidate"" property), then the related radcombobox loads all required items.
2) As it is known, the related combobox shows items by selecting the required item in the source combobox. So, I'm trying to set a Comparevalidator (Called "ParentIDCompareValidator") to the related comboboX (Which has a "Select Parent" item - default item).So By selecting the "Select Parent" item the validation message must be displayed.
I don't know how can I set a comparevalidator in order to enable it validate the selected item when the required items are loaded. Please try to enable the "ParentIDCompareValidator" control and you will see that the error message is allways displayed.
3) By clicking insert/Edit buttons, Only the default item value saved in the database, and not the selected item. Thats mean, if I select any item (except to the default item) and click submit, then the default item value ("1") saved on the DB.
Please, I need your help in order to solve the above problems.
Regards,
Bader
<
asp:SqlDataSource
ID
=
"QAGuideSqlDataSource"
runat
=
"server"
ConnectionString="<%$ ConnectionStrings:GuidesConnectionString %>"
SelectCommand="SELECT [SerID], ([Type] + '~/Guides/Pages/' + [Path] + '.aspx') as TypeAndFullPath, [ParentID], [Title], [Type] FROM [QAGuide] order by [Type],[Title]"></
asp:SqlDataSource
>
<
telerik:RadTreeView
ID
=
"QAGuideRadTreeView"
runat
=
"server"
OnNodeClick
=
"QAGuideRadTreeView_NodeClick"
DataValueField
=
"Type"
DataSourceID
=
"QAGuideSqlDataSource"
DataFieldParentID
=
"ParentID"
DataFieldID
=
"SerID"
DataTextField
=
"Title"
>
<
DataBindings
>
<
telerik:RadTreeNodeBinding
Depth
=
"0"
Expanded
=
"true"
/>
</
DataBindings
>
</
telerik:RadTreeView
>