Hi, i am trying to use the file explorer on a page which has a master page of which the controls (text boxes) on the pages are genarated from a usercontrol, i'm trying to have two text boxes which both link to the file explorer using the file seletor dialog demo http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/fileselectordialog/defaultcs.aspx, everything seems to work apart from when i click the files on file explorer the window shuts but my file paths are not transfered to the text boxes , below is the code that is genarated from one of the usercontrols on the page which look like its passing the corrent name of the control but i'm not sure if i am mising something? any help would be great
renderd usercontrol
<input name="ctl00$ContentPlaceHolder3$HomeBannerZone2$TXBHeadingLink" type="text" value="some text" id="ctl00_ContentPlaceHolder3_HomeBannerZone2_TXBHeadingLink" style="width:500px;" />
Renderd Java
function OnFileSelected(wnd, fileSelected)
{
var textbox = $get("ctl00_ContentPlaceHolder3_HomeBannerZone2_TXBHeadingLink");
textbox.value = fileSelected;
}

<
PagerStyle Mode="NextPrevAndNumeric" />
You can see in the attachment when it renders on the page, there is "select" text displayed adjacent to page size. This happens on the content page. I am using the grid in couple of other pages in the app, it renders fine. so not sure whats going on here.

_theListGrid.MasterTableView.ItemStyle.CssClass =
"listItemBg";
but this applies the style to all of my items.
Is it possible to set the style somewhere else so that my first list has one style and my second list has a different style and for these items to all be in the same RadGrid? If not is there a different approach I can take to have multiple styles?
Thank You

| item.OwnerTableView.ExtractValuesFromItem(newValues, item); // item is GridEditableItem |

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
on the page, but it did not help| <telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="false" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" > |
| <MasterTableView> |
| <Columns> |
| <telerik:GridTemplateColumn UniqueName="TemplateColumn2" HeaderText="Filter Type"> |
| <ItemTemplate> |
| <telerik:RadComboBox ID="rcbFilterType" AppendDataBoundItems="true" SelectedValue='<%#Eval("Selected1") %>' runat="server" OnSelectedIndexChanged="rcbFilterType_SelectedIndexChanged" AutoPostBack="true"> |
| <Items> |
| <telerik:RadComboBoxItem Value="" Text=""/> |
| <telerik:RadComboBoxItem Value="0" Text="Keyword"/> |
| <telerik:RadComboBoxItem Value="1" Text="State"/> |
| <telerik:RadComboBoxItem Value="2" Text="Provider"/> |
| <telerik:RadComboBoxItem Value="3" Text="Faculty"/> |
| </Items> |
| </telerik:RadComboBox> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn UniqueName="TemplateColumn1" HeaderText="Filter Options"> |
| <ItemTemplate> |
| <telerik:RadComboBox ID="rcbFilterOptions" AppendDataBoundItems="true" SelectedValue='<%#DataBinder.Eval(Container.DataItem,"Selected2") %>' runat="server"> |
| </telerik:RadComboBox> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| Imports System.Web |
| Imports System.Web.SessionState |
| Imports System.Web.UI |
| Imports System.Web.UI.WebControls |
| Imports System.Web.UI.HtmlControls |
| Imports System.Data |
| Imports Telerik.Web.UI |
| Imports System.Data.SqlClient |
| Partial Class Dailog2 |
| Inherits System.Web.UI.Page |
| Public dt As DataTable |
| Public _store As String = "FilterTable" |
| Protected Sub form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Form2.Load |
| If Not IsPostBack AndAlso ViewState("dt") = Nothing Then |
| If Session(_store) Is Nothing Then |
| dt = New DataTable() |
| dt.Columns.Add(New DataColumn("Selected1", GetType(String))) |
| dt.Columns.Add(New DataColumn("Selected2", GetType(String))) |
| 'Cache.Remove(_store) |
| Else |
| dt = DirectCast(Session(_store), DataTable) |
| End If |
| Else |
| ' Cache.Remove(_store) |
| dt = DirectCast(ViewState("dt"), DataTable) |
| End If |
| End Sub |
| Private Function AddRow(ByVal dt As DataTable) As DataTable |
| ' method to create row |
| Dim dr As DataRow = dt.NewRow() |
| dr("Selected1") = "" |
| dr("Selected2") = "" |
| dt.Rows.Add(dr) |
| Return dt |
| End Function |
| Protected Sub Button1_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click |
| Dim dt As DataTable = DirectCast(ViewState("dt"), DataTable) |
| For Each item As GridDataItem In RadGrid1.Items |
| Dim ddl1 As RadComboBox = DirectCast(item.FindControl("rcbFilterType"), RadComboBox) |
| Dim ddl2 As RadComboBox = DirectCast(item.FindControl("rcbFilterOptions"), RadComboBox) |
| Dim i As Integer = 0 |
| While i < dt.Rows.Count |
| If iitem.ItemIndex = i Then |
| dt.Rows(i)(0) = ddl1.SelectedValue |
| dt.Rows(i)(1) = ddl2.SelectedValue |
| End If |
| System.Math.Max(System.Threading.Interlocked.Increment(i), i - 1) |
| End While |
| Next |
| ViewState("dt") = AddRow(dt) |
| RadGrid1.Rebind() |
| End Sub |
| Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) |
| If Not IsPostBack Then |
| ViewState("dt") = dt |
| RadGrid1.DataSource = dt |
| Else |
| dt = DirectCast(ViewState("dt"), DataTable) |
| RadGrid1.DataSource = dt |
| End If |
| End Sub |
| Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click |
| Dim dt As DataTable = DirectCast(ViewState("dt"), DataTable) |
| For Each item As GridDataItem In RadGrid1.Items |
| Dim ddl1 As RadComboBox = DirectCast(item.FindControl("rcbFilterType"), RadComboBox) |
| Dim ddl2 As RadComboBox = DirectCast(item.FindControl("rcbFilterOptions"), RadComboBox) |
| Dim item1 As New RadComboBoxItem() |
| item1.Text = "key1" |
| item1.Value = "0" |
| Dim i As Integer = 0 |
| While i < dt.Rows.Count |
| If iitem.ItemIndex = i Then |
| dt.Rows(i)(0) = ddl1.SelectedValue |
| dt.Rows(i)(1) = ddl2.SelectedValue |
| End If |
| System.Math.Max(System.Threading.Interlocked.Increment(i), i - 1) |
| End While |
| Next |
| If (Not ClientScript.IsStartupScriptRegistered("return")) Then |
| Page.ClientScript.RegisterStartupScript(Me.GetType(), "return", "returnToParent();", True) |
| End If |
| End Sub |
| Protected Sub rcbFilterType_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) |
| Dim connection As New SqlConnection(ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString) |
| Dim query As String = "" |
| Dim ddl1 As RadComboBox = CType(sender, RadComboBox) |
| Dim DataItem As GridDataItem = CType(ddl1.NamingContainer, GridDataItem) |
| Dim ddl2 As RadComboBox = DirectCast(DataItem.FindControl("rcbFilterOptions"), RadComboBox) |
| If ddl1.SelectedValue = 0 Then |
| query = "SELECT CategoryID as ID, CategoryName as NAME FROM Categories" |
| ElseIf ddl1.SelectedValue = 1 Then |
| query = "SELECT CategoryID as ID, CategoryName as NAME FROM Categories" |
| ElseIf ddl1.SelectedValue = 2 Then |
| query = "SELECT CategoryID as ID, CategoryName as NAME FROM Categories" |
| Else |
| query = "SELECT CategoryID as ID, CategoryName as NAME FROM Categories" |
| End If |
| Dim adapter As New SqlDataAdapter(query, connection) |
| Dim dt As New DataTable() |
| adapter.Fill(dt) |
| ddl2.DataTextField = "Name" |
| ddl2.DataValueField = "ID" |
| ddl2.DataSource = dt |
| ddl2.DataBind() |
| End Sub |
| End Class |