This is a migrated thread and some comments may be shown as answers.

NestedView, DetailsView with ServerOnDemand

1 Answer 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gerry Polami
Top achievements
Rank 1
Gerry Polami asked on 08 Dec 2008, 08:40 PM
Hi,

I have few questions about those elements :

1. I tried to set "ServerOnDemand" with NestedViewTemplate - But it seems that it doesn't work together. Am I right ? Or my .aspx is incorrect ? (Stop on breakpoint in Child_OnSelecting although I didn't expand the MasterTable)

2. Can the RadGrid support NestedView and DetailsView together ? My situation is display child table with other elements (like fieldset) under MasterTableView. How can it be done ? (I thought put the child table in DetailsView and the other elements in NestedViewTemplate)

3. Can I display UserControl (.ascx) in PlaceHolder of NestedViewTemplate ? My attempts to use it with PlaceHolder were unsuccessful. My Situation is display that UserControl in few places in my application

Examples will be welcome...

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 10 Dec 2008, 02:07 PM
Hi Gerry,

Onto your questions:

  1. Basically, ServerOnDemand mode is supported with the NestedViewTemplate feature only when the controls inside the detail table do not fetch their values with binding expression which references the container data item. Otherwise the supported hierarchy load modes are ServerBind and Client.
  2. You cannot have detail table template and detail table at the same time - you should either choose to display nested view template or standard detail table.
  3. Let me provide a quote from the answer in the support ticket you started with regards to the same subject:

    I suppose that you are using WebApplication project in this case since you mentioned Designer.cs file. Can you please check whether the grid definition with the NestedViewTemplate is recognized in a plain web site starting it from scratch? Does restarting your VS or creating a new WebApplication project makes a difference? This is indeed an odd issue and your code definition seems valid.
Kind regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Gerry Polami
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or