Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
92 views
I have Tables Customer and Two nested Table(Order and OrderDetais). the problem is i have to
add the detail table (GridTableView) if the item is expanded
so far i solve the Customer To display the Order Table but when i try to expand
Order table to display The OrderDetails it wont show up how do i do this

Note: GridTableView will must be added only/during item expand

Customer
  Order
    OrderDetails       
 protected void RadGrid1_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e) 
    { 
        if (e.DetailTableView.DataSourceID == "") 
        { 
 
            SqlDataSource2.SelectParameters["CustomerID"].DefaultValue = e.DetailTableView.ParentItem.GetDataKeyValue("CustomerID").ToString(); 
            e.DetailTableView.DataSource = SqlDataSource2
            GridTableView tableViewOrders = new GridTableView(RadGrid1); 
             
            tableViewOrders.DataSource = SqlDataSource3
            tableViewOrders.Width = Unit.Percentage(100); 
            tableViewOrders.AutoGenerateColumns = true
            tableViewOrders.DataKeyNames = new string[] { "OrderID" }; 
            tableViewOrders.HierarchyLoadMode = GridChildLoadMode.ServerOnDemand; 
            GridRelationFields relationFields = new GridRelationFields(); 
             
            relationFields.MasterKeyField = "OrderID"
            relationFields.DetailKeyField = "OrderID"
            tableViewOrders.ParentTableRelation.Add(relationFields); 
             
            e.DetailTableView.DetailTables.Add(tableViewOrders); 
            e.DetailTableView.ID = "NestedOrder"
             
        } 
         
    } 
 <asp:SqlDataSource ID="SqlDataSource1" 
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" 
            ProviderName="System.Data.SqlClient" 
            SelectCommand="SELECT * FROM Customers" runat="server"></asp:SqlDataSource> 
<asp:SqlDataSource ID="SqlDataSource2" 
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" 
            ProviderName="System.Data.SqlClient" 
            SelectCommand="SELECT * FROM Orders Where CustomerID = @CustomerID" runat="server"
            <SelectParameters> 
                <asp:Parameter Name="CustomerID" Type="string" /> 
            </SelectParameters> 
        </asp:SqlDataSource> 
<asp:SqlDataSource ID="SqlDataSource3" 
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" 
            ProviderName="System.Data.SqlClient" 
            SelectCommand="SELECT * FROM [Order Details] where OrderID = @OrderID" runat="server"
            <SelectParameters> 
                <asp:Parameter Name="OrderID" Type="Int32" /> 
            </SelectParameters> 
        </asp:SqlDataSource> 


   <telerik:RadGrid id="RadGrid1" DataSourceID="SqlDataSource1"   
             ShowStatusBar="true" runat="server" AllowPaging="True"  
        AllowSorting="True" AllowAutomaticUpdates="True"  
        OnItemCommand="RadGrid1_ItemCommand" OnDetailTableDataBind="RadGrid1_DetailTableDataBind"
                <MasterTableView PageSize="10" DataKeyNames="CustomerID"
                
           <DetailTables> 
                <telerik:GridTableView></telerik:GridTableView> 
               
            </DetailTables> 
            
<ExpandCollapseColumn Visible="True"></ExpandCollapseColumn> 
        </MasterTableView> 
             
 
         
    <ClientSettings EnableRowHoverStyle="true"
     
    <Selecting AllowRowSelect="true" /> 
    <ClientEvents OnRowDblClick="RowDblClick" /> 
   </ClientSettings> 
    </telerik:RadGrid> 

Martin
Telerik team
 answered on 08 Sep 2009
1 answer
132 views

I have radgrid and a textbox with a button above that radgrid. I want to search items in the grid with the text entered in textbox.
My radgrid has mutiple rows but only one column.

Is it possible with clientside code?
Pavlina
Telerik team
 answered on 08 Sep 2009
1 answer
63 views
Hi team,

In my application i m using telerik hierarchial grid in which child level on add/edit calling usercontrols with textbox .
In which able to enter 10(existing) to 20 (current) . but 20 is not getting reflect still shows 10 only through debug also tried but no chance can anybody give idea

Advanced thanks for any help...
Pavlina
Telerik team
 answered on 08 Sep 2009
3 answers
246 views
Hi - how do I programatically disable (hide) the close and collapse buttons on a dock?

I need only administrators to have that option.

Thanks
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 08 Sep 2009
2 answers
193 views
Hello,

I implemented a button to change size of a RadChart, doing a RadAjaxManager ajaxRequest, handling it in an handler, setting the RadChart width and height and rebuiding the radChart.
No success, I trace everything seems Ok the no size change on the client.

Thanks for help on this.

Some other pb, even adding the radajaxmanager in its own ajaxsettings, doing the jaxrequest doesn't shows the ajaxpanel as for normal ajax requests ???

CS
Giuseppe
Telerik team
 answered on 08 Sep 2009
9 answers
260 views
Hello,

I am trying to hide the scrollbars for my RadTreeView, but I get an error while parsing the XAML. 

The error is:            

Unknown attribute ScrollViewer.HorizontalScrollBarVisibility on element RadTreeView. [Line: 161 Position: 56]

Is this a known problem, or am I doing something wrong?

I use the following attribute:

 ScrollViewer.HorizontalScrollBarVisibility="Hidden"

Kind Regards,

Rob
Atanas Korchev
Telerik team
 answered on 08 Sep 2009
3 answers
140 views
hi all
is it possible to set inputs like datepickers when we write wrong date format? i would like to have that nice exclamation when validating input e.g. using RequiredFieldValidator
Dimo
Telerik team
 answered on 08 Sep 2009
2 answers
57 views
Hi,

I am using Telerik Editor assembly version 7.1.2 and am having a bit of trouble with the "set table properties" menu (http://screencast.com/t/RLytkHJb8t). Mainly, I cannot get the borders to work with the editor in IE7 (http://screencast.com/t/9YFKtxz1N). The buttons just do not do anything. Any help is appreciated.
Joseph Bradford
Top achievements
Rank 1
 answered on 08 Sep 2009
2 answers
139 views
Hello,

I want to open a full-screen popup with the chart from a first page, is there a way to do this ?
Thanks for expert advises .

CS
CSurieux
Top achievements
Rank 2
 answered on 08 Sep 2009
2 answers
77 views
Hello,

Is scrolling/zomming available for Pie ?
The documentation for v 2009.2.826 says no problem ?
It works for Bar but as soon as I change for Pie I get an exception for a Chart which is working without zoom ?

Thanks for help

CS
CSurieux
Top achievements
Rank 2
 answered on 08 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?