Trying to access an <asp:dropdownlist> from <telerik:GridTemplateColumn> in the ItemCommand event of a RadGrid.
BarID is the unique column name on the template column
ddlBarID is the id of the dropdownload
GridEditFormItem editedItem =
(GridEditFormItem)((GridDataItem)e.Item).EditFormItem;
DropDownList ddlBar =
(DropDownList)editedItem["BarID"].FindControl("ddlBarID");
Label1.Text = "BarID null: " + (ddlBar == null).ToString();
ddlBar.Items.Add("TEST");
I get Object reference not set to an instance of an object.
any help is appreciated. been banging my head on this one for two days now.
Hello,
I am new to Telerik. I am struggling with finding a list of methods and properties for the RAD controls.
I can see from intellisense that the controls have a lot to offer.
I was able to find the code samples, I downloaded the "Rad Controls AJAX Courseware", and found other documents online - but I was did not find a list of properties and methods (like the you would find on the MSDN site).
Can someone direct me to the right location please?
Thank you,
<
telerik:RadAsyncUpload
runat
=
"server"
ID
=
"RadAsyncUpload1"
MultipleFileSelection
=
"Automatic"
>
</
telerik:RadAsyncUpload
>
Protected
Sub
btnsaveimages_Click(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
btnsaveimages.Click
If
RadAsyncUpload1.UploadedFiles.Count > 0
Then
For
Each
file
As
UploadedFile
In
RadAsyncUpload1.UploadedFiles
file.SaveAs(
"~/"
+ file.FileName)
Next
End
If
End
Sub
Sub
RadAsyncUpload1_FileUploaded(
ByVal
sender
As
Object
,
ByVal
e
As
FileUploadedEventArgs)
Handles
RadAsyncUpload1.FileUploaded
e.File.SaveAs(Server.MapPath(
"~/Upload/Images/ImgGallery/2/"
+ e.File.FileName),
True
)
End
Sub