HI,
I am trying to place a RadGrid under another RadGrid. But I am nt able to Bind the Data and fine the Ineer Controls of the inner Grid. Indetail
I Had One RadGrid1 & RadGrid3 and Under the RadGrid1 I placed RadGrid3 as follow.
But I am nt able to Bing the Date to the RadGrid3. Please Guide me how to Bind Data and Firing the event for Rad Controls which are under RadGrid3.
<telerik:RadGrid PageSize="3" AllowPaging="true" ID="RadGrid1" runat="server" GridLines="Horizontal" AllowFilteringByColumn="true" Skin="WebBlue" AllowAutomaticDeletes="True" OnNeedDataSource="RadGrid1_NeedDataSource"
>
<PagerStyle Mode="Slider" />
<MasterTableView AutoGenerateColumns="false" DataKeyNames="TerritoryID" EditMode="EditForms" AllowMultiColumnSorting="true" CommandItemDisplay="TopAndBottom">
<Columns><telerik:GridEditCommandColumn></telerik:GridEditCommandColumn> <telerik:GridBoundColumn ReadOnly="true" HeaderText="TerritoryID" DataField="TerritoryID" UniqueName="TerritoryID" />
<telerik:GridBoundColumn ReadOnly="false" HeaderText="TerritoryDescription" DataField="TerritoryDescription" UniqueName="TerritoryDescription" /> <telerik:GridBoundColumn ReadOnly="false" HeaderText="RegionID" DataField="RegionID" UniqueName="RegionID" /> <telerik:GridButtonColumn CommandName="Delete" Text="Delete"> </telerik:GridButtonColumn> </Columns> <EditFormSettings EditFormType="Template"> <EditColumn UniqueName="EditCommandColumn1"> </EditColumn><FormTemplate>
<table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="1" rules="none" style="border-collapse: collapse"> <tr><td> <table id="Table3" cellspacing="1" cellpadding="1" width="100%" border="0"> <tr><td> TerritoryID: </td><td><asp:TextBox ID="txtTerritoryID" MaxLength="5" Visible='<% # (Container as GridItem).OwnerTableView.IsItemInserted %>'
runat="server"></asp:TextBox></td></tr><tr><td>TerritoryDescription: </td><td><asp:TextBox ID="txtTerritoryDescription" runat="server" Text='<%# Eval( "TerritoryDescription" ) %>'></asp:TextBox></td></tr><tr><td> RegionID: </td><td><td><telerik:RadGrid ID="RadGrid3" PageSize="3" AllowPaging="true" runat="server" GridLines="Horizontal" AllowFilteringByColumn="true" Skin="WebBlue" AllowAutomaticDeletes="True" OnNeedDataSource="RadGrid3_NeedDataSource"><PagerStyle Mode="Slider" /><MasterTableView AutoGenerateColumns="false" DataKeyNames="TerritoryID" EditMode="EditForms" AllowMultiColumnSorting="true" CommandItemDisplay="TopAndBottom"> <Columns> <telerik:GridEditCommandColumn> </telerik:GridEditCommandColumn> <telerik:GridBoundColumn ReadOnly="true" HeaderText="TerritoryID" DataField="TerritoryID" UniqueName="TerritoryID" />
<telerik:GridBoundColumn ReadOnly="false" HeaderText="TerritoryDescription" DataField="TerritoryDescription" UniqueName="TerritoryDescription" /> <telerik:GridBoundColumn ReadOnly="false" HeaderText="RegionID" DataField="RegionID" UniqueName="RegionID" /> <telerik:GridButtonColumn CommandName="Delete" Text="Delete"> </telerik:GridButtonColumn> </Columns></MasterTableView> </telerik:RadGrid>
i am using telerik grid view in my wep application...using c#
in my application i have set one option for user can select page size
in tht grid view using compo box
protected void DDL_SelectedIndexChanged(object sender, EventArgs e)
{
string PerPage = DDL.SelectedItem.Text;
switch (PerPage)
{
case "3":
{
grdWantList.PageSize = 3;
BindWantedList();
break;
}
case "15":
{
grdWantList.PageSize = 15;
BindWantedList();
break;
}
case "20":
{
grdWantList.PageSize = 20;
BindWantedList();
break;
}
}
}
public void BindWantedList()
{
int CategoryId = Convert.ToInt32(Session["CategoryId"]);
BllWanted.GetWantList(CategoryId);
grdWantList.DataSource = BllWanted.WantList;
grdWantList.DataBind();
}
combo box having values like 3,15,20...i am using tht code code but grid view
does not change in page size how to i change page size dynamically
Plz help me
azees
function test()
{
var txtBundlePrice = document.getElementById("tbxdefaultprice");
var gridPrice = $find("<%= grdSFPrice.ClientID %>");
if(document.getElementById("rbtnDefault").checked==true)
{
txtBundlePrice.disabled =
false;
var inputs = gridPrice.get_element().getElementsByTagName("input");
for(var i = 0; i < inputs.length; i++)
{
switch(inputs[i].type)
{
case "text":
inputs[i].value =
'';
break;
default:
break;
}
}
}
else
{
txtBundlePrice.value=
'';
txtBundlePrice.disabled =
true;
}
}
above code is working in Inter net explorer but it is not working in mozilla browser. i neeed solution. please give me a solution.
Thanks,
kishore