Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
300 views
I have a RadGrid that has another RadGrid nested which also has another nested RadGrid. So there are 3 levels: Level 1 has information about a costumer, level 2 has information about customerĀ“s purchases, and level 3 has info about products that the costumer has bought during the purchase. 

Now, I need to be able to select the level 2 row (purchase) and then access the data on all levels to construct a receipt of the purchase. I was able to add the checkbox column to level 2 by adding the GridClientSelectColumn to the column collection and enabling the client side row selection. So visually I have what I need. But my big problem now is: 

How do I access the data (contents of the cells) on all levels when I press a "print receipt for selected purchase" -button? I tried accessing it rought the RadGrid1.SelectedItems, but it was null. With just one RadGrid setup I could just use RadGrid1.SelectedItems[0].Cells, but that wont of course work with nested grids.

This might be a noob question, as I am very new to Telerik components. Any recommendations for "RadGrid for dummies" tutorials are welcome.

Thanks in advance! 
Marin
Telerik team
 answered on 17 Aug 2012
1 answer
59 views
I put a Filter control and Save button in one page and I also hide the Apply Button for Filter control. I don't find a way to get expression result after I click the Save button. Anybody know how to do?
Tsvetina
Telerik team
 answered on 17 Aug 2012
3 answers
74 views
Hello!
I need to read the calendar every day and day by day doing calculations ...
It turns out that is taking too long to calculate ... How can I do this every day reading asynchronously?
Radoslav
Telerik team
 answered on 17 Aug 2012
1 answer
459 views
Hi,

I am dynamically adding controls to a placeholder in TSearch.aspx and I did set SrchRadWindow's  AutoSize  property to true.
Autosize property is not woking for me. Am I missing something? 
 
 




 <telerik:RadWindow ID="SrchRadWindow" runat="server" Title="TicketSearch" Behaviors="Maximize, Minimize, Move, Close, Resize"
                Left="200px" Top="25px" ReloadOnShow="true"  ShowContentDuringLoad="false"  VisibleStatusbar="false"
              IconUrl="img/favicon.ico"   OpenerElementID="TktSrchBtn" NavigateUrl="TSearch.aspx"    AutoSize="true" />

Thanks,
Prava
Princy
Top achievements
Rank 2
 answered on 17 Aug 2012
1 answer
102 views
Hi,

   I have a Radcombobox in my page . More than 20 thousand records will be selected and loaded Adto this Radcombobox. While clicking this Radcombobox  it's very slow to display the contents and takes more time to respond. How can i avoid this situation.
Is there any way to load these contents in a fast manner?

Thanks,
Velkumar.
Shinu
Top achievements
Rank 2
 answered on 17 Aug 2012
1 answer
63 views
Greetings,

The TagCloud control automatically adds a title attribute to each tag which automatically generates a ToolTip, is there anyway to disable this for the TagCloud control?

Thank you.
Princy
Top achievements
Rank 2
 answered on 17 Aug 2012
2 answers
74 views
Hi,

We have a radcombobox with list of Regions that gets populated with EntityDataSource, now we added a new column in table named as "MarkAsDeleted" We want to disable Regions in radcombobox where region is "MarkAsDeleted" = true.

I found that   it has property as below,  just don;t know how to automatically allow databinding to this property.

  <telerik:RadComboBoxItem runat="server" Enabled="False" Text="RadComboBoxItem3"
                            Value="RadComboBoxItem3" />

Any idea ?

Regards
JD.
Top achievements
Rank 1
 answered on 17 Aug 2012
2 answers
156 views
Hi,

I am adding the RadAsyncUpload user control both in asp:GridView and page in a single file. After selecting a file and click on Upload I am getting the following error.

---------------------------
Message from webpage
---------------------------
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
---------------------------
OK   
---------------------------

The uploaded file is saved into App_Data folder (like nkdeutts.hpj), but OnFileUploaded event is not firing. Before this event is fired I am getting the above error.

If I include the user control only in grid view or only in the page, it is working fine. If I use it in both the places, I am getting the error. Please help me in resolving this error as it is important for me to have the control in both the places.

Thanks.
Abhinav
Abhinav
Top achievements
Rank 1
 answered on 17 Aug 2012
1 answer
69 views
Hello Telerik,

I build the grid columns and set up the relationships in aspx and the data source is set in code-behind. The gird changes depending on a node selection which sends in a ID to filter out the master grid, which in turn filters out the detail grid based off the relationship.

Here is the grid in aspx:
<telerik:RadGrid runat="server" ID="RadGridMemberBoardPosition" Width="350px" Height="460px" AutoGenerateColumns="false"  >
    <MasterTableView DataKeyNames="MemberId" >
                                 
        <Columns>
            <telerik:GridClientSelectColumn ItemStyle-Width="10%"/>
            <telerik:GridBoundColumn DataField="Name" DataType="System.String" HeaderText="Name" UniqueName="Name" />
        </Columns>
 
        <DetailTables >
            <telerik:GridTableView DataKeyNames="MemberId">
                <Columns>
                    <telerik:GridBoundColumn DataField="FullName" DataType="System.String" HeaderText="FullName" UniqueName="FullName" />
                    <telerik:GridBoundColumn DataField="EmailAddress" DataType="System.String" HeaderText="EmailAddress" UniqueName="EmailAddress" />
                </Columns>
            </telerik:GridTableView>                                   
        </DetailTables>
 
        <ParentTableRelation>
            <telerik:GridRelationFields DetailKeyField="MemberId" MasterKeyField="MemberId" />
        </ParentTableRelation>
 
    </MasterTableView>
    <ClientSettings Selecting-AllowRowSelect="true" Scrolling-AllowScroll="true" />
</telerik:RadGrid>

Now in code behind i change the data with the node being selected in a TreeView on the page.

Protected Sub RadTreeViewGroups_NodeClick(sender As Object, e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeViewGroups.NodeClick
 
    If Me.m_cMyManager Is Nothing Then
        Me.m_cMyManager = New cMyManager
    End If
 
    ' get the board positions and the members for those postions - hierarchical grid
    Me.RadGridMemberBoardPosition.DataSource = Me.GetGroupBoardPositionDT(Me.m_cMyManager, e.Node.Attributes("GroupId"))
    Me.RadGridMemberBoardPosition.Rebind()
 
End Sub

This code works fine for filling in the master table with the appropriate records. Now when a record is expanded by clicking its arrow - showing the detail grid it is always nothing.

This is the data source for the detail - setup in the page load.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
    If Me.m_cMyManager Is Nothing Then
        Me.m_cMyManager = New cMyManager
    End If
  
    ' get the sql datasource for the detail of the datagrid
    Dim mySqlDataSource As New SqlDataSource("System.Data.SqlClient", Me.m_cMyManager.MyDb.ConnectionString(), Me.GetBoardPositionMembersQuery(Me.m_cMyManager))
    ' add the parameters
    Dim myParameter As New UI.WebControls.Parameter("MemberId", DbType.Int64)
    mySqlDataSource.SelectParameters.Add(myParameter)
 
    Me.RadGridMemberBoardPosition.MasterTableView.DetailTables(0).DataSource = mySqlDataSource
 
End Sub

I also tried to put it in the Handles RadGridMemberBoardPosition.DetailTableDataBind event, but it still failed to show the records related to the master table. This is a little different than your example http://demos.telerik.com/aspnet-ajax/grid/examples/programming/hierarchy/defaultvb.aspx  so I was wondering if it should all be in the code-behind. Also, if this will work in my scenario with a node changing the data source of a master and detail tables at run-time. 

Can you shed some light on this?

Thanks!
SDI




Andrey
Telerik team
 answered on 17 Aug 2012
5 answers
193 views
Hello there,
     I want a header for my ClientSelectColumn. Can anybody help me with a code snippet to accomplish the above if possible.
Thanks in advance
Savyo
Shinu
Top achievements
Rank 2
 answered on 17 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?