TRANSACTION_CURRENCY_CD
should be a DropDown
list.....
<
Columns
>
<
telerik:GridBoundColumn
ReadOnly
=
"true"
DataField
=
"ACCOUNT_ID"
UniqueName
=
"ACCOUNT_ID"
HeaderText
=
"Account ID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridDropDownColumn
UniqueName
=
"TRANSACTION_CURRENCY_CD
"
ListTextField
=
"TRANSACTION_CURRENCY_CD"
ListValueField
=
"TRANSACTION_CURRENCY_CD"
HeaderText
=
"DropDown Column"
DataField
=
"TRANSACTION_CURRENCY_CD"
DropDownControlType
=
"RadComboBox"
AllowSorting
=
"true"
>
</
telerik:GridDropDownColumn
>
<
telerik:GridBoundColumn
DataField
=
"TRANSACTION_AMT"
UniqueName
=
"TRANSACTION_AMT"
HeaderText
=
"TRANSACTION_AMT"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"LOCAL_CURRENCY_CD"
UniqueName
=
"LOCAL_CURRENCY_CD"
HeaderText
=
"LOCAL_CURRENCY_CD"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"LOCAL_AMT"
UniqueName
=
"LOCAL_AMT"
HeaderText
=
"LOCAL_AMT"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"SUB1"
UniqueName
=
"SUB1"
HeaderText
=
"SUB1"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"SUB2"
UniqueName
=
"SUB2"
HeaderText
=
"SUB2"
>
</
telerik:GridBoundColumn
>
</
Columns
>
.....
public
DataTable CustomersTable
{
get
{
DataTable res = (DataTable)
this
.Session[
"CustomersTable"
];
if
(res ==
null
)
{
res = (DataTable)Table0021.Lade(
"1"
).Tables[0];
this
.Session[
"CustomersTable"
] = res;
}
return
res;
}
}
protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
RadGrid1.DataSource = this.CustomersTable;
}
TRANSACTION_CURRENCY_CD
is the column name in the DatatableTRANSACTION_CURRENCY_CD
is always Empty (in the edit mode, too)et a List<String> with the Elemts for the DropDownList. How can I bind this to the dropdownlist
Thank you very much!
I am using pre_render to set select items in a rad grid in a user control. The method below is based on some Telerik posts. The checkboxes are populated when the user control opens for me locally and on the production server using IE8. But for other users (also using IE8), the check boxes only populate on postback. I have tested using compatibility mode on and off and do not see a change in behavior.
Any ideas or suggestions? It is challenging that the code is the same but the behavior is varying for some users.
Protected
Sub RadGrd_PreRender(sender As Object, e As System.EventArgs) Handles RadGrd.PreRender
If Not (Session("SelectedItems_" + ClientID) Is Nothing) Then
strSelectedItems = Session("SelectedItems_" + ClientID)
For Each item As GridItem In RadGrd.MasterTableView.Items
If TypeOf item Is GridDataItem Then
Dim dataItem As GridDataItem = CType(item, GridDataItem)
Dim chkBox As CheckBox = CType(dataItem("CheckBoxTemplateColumn").FindControl("CheckBox1"), CheckBox)
If strSelectedItems.Contains("," + dataItem.OwnerTableView.DataKeyValues(dataItem.ItemIndex)("ID").ToString() + ",") Then
chkBox.Checked =
True
Else
chkBox.Checked = False
End If
End If
Next
End If
End Sub
<
telerik:RadFileExplorer
runat
=
"server"
ID
=
"RadFileExplorer2"
Width
=
"500px"
Height
=
"300px"
EnableOpenFile
=
"true"
EnableCreateNewFolder
=
"true"
>
</
telerik:RadFileExplorer
>
RadFileExplorer2.Configuration.ViewPaths =
new
string
[] {
"~/Files"
,
"~/Files"
};
RadFileExplorer2.Configuration.UploadPaths =
new
string
[] {
"~/Files"
,
"~/Files"
};
RadFileExplorer2.Configuration.DeletePaths =
new
string
[] {
"~/Files"
,
"~/Files"
};