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

Populating a dropdown from a grid in another tab

1 Answer 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brendan Vogt
Top achievements
Rank 1
Brendan Vogt asked on 29 Sep 2008, 01:51 PM
Hi,

I have a web page with a tab control.  There are 2 tabs, namely  Accounts and Communications.  Now each tab has grid control.

Here is a code section of the accounts grid control:

<EditFormSettings
  UserControlName="AccountDetail.ascx"
  EditFormType="WebUserControl">
  <EditColumn UniqueName="EditCommandColumn1">
  </EditColumn>
</EditFormSettings>


Here is a code section of the communications grid control:

<EditFormSettings
  UserControlName="CommunicationDetail.ascx"
  EditFormType="WebUserControl">
  <EditColumn UniqueName="EditCommandColumn1">
  </EditColumn>
</EditFormSettings>


When the Communications grid goes into edit mode, there is a dropdown that needs to be populated.  And this dropdown gets its values from the rows in the grid on the accounts tabe.  How do I access the the rows from the accounts grid and populated them with a cells value in the communication grid.  Just remember that I am working with tabs.

I hope that someone can help me.

Thanks
Brendan

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 01 Oct 2008, 02:54 PM
Hi Brendan,

I assume that your Account grid is bound to some datasource and this is where the data for the grid rows comes from. Why don't you use this datasource and bind the desired dropdown to it?

Find more about RadGrid custom edit forms here.

Give it try and let me know if this works for you.

Regards,
Iana
the Telerik team

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