or
If EnableDragAndDrop="true" the Textbox in ItemTemplate is not editable. Interestingly, I can right-click in the TextBox and it becomes editable but normal left-click does nothing. Setting EnableDragAndDrop="false" makes everything work normally.
Seems like a bug to me, but is there some type of work-around or additional property that needs to be set? Thanks!
The following code works fine, but setting EnableDragAndDrop="true" stops the TextBox from being edited (unless you right-click it as mentioned prior).
<
telerik:RadListBox
ID
=
"RadListBox2"
runat
=
"server"
AllowReorder
=
"true"
Width
=
"300px"
Height
=
"400px"
EnableDragAndDrop
=
"false"
AutoPostBackOnReorder
=
"true"
AutoPostBackOnTransfer
=
"true"
>
<
Items
>
<
telerik:RadListBoxItem
runat
=
"server"
Text
=
"RadListBoxItem1"
/>
<
telerik:RadListBoxItem
runat
=
"server"
Text
=
"RadListBoxItem2"
/>
</
Items
>
<
ItemTemplate
>
<
div
>
<
div
>
<%# DataBinder.Eval(Container, "Text")%>
</
div
>
<
div
>
<
div
style
=
"float:left;"
>
<
asp:CheckBox
ID
=
"chkShowTitle"
runat
=
"server"
Text
=
"Checkbox"
/>
</
div
>
<
div
style
=
"float:right;"
>
Title <
asp:TextBox
ID
=
"txtTitle"
runat
=
"server"
/>
</
div
>
</
div
>
</
div
>
</
ItemTemplate
>
</
telerik:RadListBox
>
<
telerik:RadFileExplorer
ID
=
"RadFileExplorer1"
Runat
=
"server"
Width
=
"100%"
Height
=
"600px"
ExplorerMode
=
"FileTree"
onclientitemselected
=
"OnClientItemSelected"
OnClientLoad
=
"OnFileExplorerLoad"
VisibleControls
=
"TreeView, Grid, Toolbar, ContextMenus"
TreePaneWidth
=
"100%"
BorderColor
=
"Transparent"
BorderStyle
=
"None"
EnableCopy
=
"True"
EnableOpenFile
=
"False"
MaxUploadFileSize
=
"2147483647"
ViewStateMode
=
"Enabled"
>
</
telerik:RadFileExplorer
>
using
(SqlConnection connection =
new
SqlConnection(newConnect))
{
// Create the Command and Parameter objects;
SqlCommand command =
new
SqlCommand(queryString, connection);
// Open the connection in a try/catch block;
// Create and execute the DataReader;
try
{
connection.Open();
SqlDataReader reader = command.ExecuteReader();
while
(reader.Read())
{
UsernameDB = (reader[1]).ToString();
listViewPaths.Add(reader.GetString(3));
listUploadDeletePaths.Add(reader.GetString(4));
WebPageTitle = (reader[5]).ToString();
}
reader.Close();
}
catch
(Exception ex)
{
}
}
}
}
Page.Title = WebPageTitle;
RadFileExplorer1.Configuration.ViewPaths = listViewPaths.ToArray();
RadFileExplorer1.Configuration.UploadPaths = listUploadDeletePaths.ToArray();
RadFileExplorer1.Configuration.DeletePaths = listUploadDeletePaths.ToArray();