Hi,
I have a RadGrid, grdTags. It has a datasource with a field "Value"
Inside of grdTags, I have a ToolTip ttRelatedCampaigns. Right now it displays "Value"
Inside of ttRelatedCampaigns, I'd like to display another RadGrid. It's datasource should be set by a function that takes "Value" as a parameter.
Here's what I have so far. Could someone help me out and tell me how to do this?
I have a RadGrid, grdTags. It has a datasource with a field "Value"
Inside of grdTags, I have a ToolTip ttRelatedCampaigns. Right now it displays "Value"
Inside of ttRelatedCampaigns, I'd like to display another RadGrid. It's datasource should be set by a function that takes "Value" as a parameter.
Here's what I have so far. Could someone help me out and tell me how to do this?
<
h2
>Currently Assigned Tags</
h2
>
<
telerik:RadGrid
runat
=
"server"
ID
=
"grdTags"
OnNeedDataSource
=
"grdTags_NeedDataSource"
AllowMultiRowSelection
=
"true"
AutoGenerateColumns
=
"false"
OnDeleteCommand
=
"DeleteTag"
Skin
=
"CiscoGreen"
EnableEmbeddedSkins
=
"false"
>
<
ClientSettings
>
<
Selecting
AllowRowSelect
=
"true"
/>
</
ClientSettings
>
<
MasterTableView
DataKeyNames
=
"KeywordID"
>
<
Columns
>
<
telerik:GridButtonColumn
ButtonType
=
"LinkButton"
Text
=
"Delete"
CommandName
=
"Delete"
/>
<
telerik:GridBoundColumn
Visible
=
"false"
DataField
=
"KeywordID"
/>
<
telerik:GridBoundColumn
HeaderText
=
"Value"
DataField
=
"Value"
/>
<
telerik:GridTemplateColumn
UniqueName
=
"ToolTip"
>
<
HeaderTemplate
>
Related Campaigns
</
HeaderTemplate
>
<
ItemTemplate
>
<
asp:Label
runat
=
"server"
ID
=
"TargetLabel"
Text='<%# DataBinder.Eval(Container.DataItem, "Value") %>' />
<
telerik:RadToolTip
ID
=
"ttRelatedCampaigns"
runat
=
"server"
Width
=
"300px"
Height
=
"300px"
TargetControlID
=
"TargetLabel"
>
<%# DataBinder.Eval(Container.DataItem, "Value") %>
<
telerik:RadGrid
ID
=
"grdRelatedCampaigns"
runat
=
"server"
OnNeedDataSource='<%# DataBinder.Eval(Container.DataItem, "Value") %>' AutoGenerateColumns="false"
Skin="CiscoGreen" EnableEmbeddedSkins="false">
<
MasterTableView
DataKeyNames
=
"InitiativeName"
>
<
Columns
>
<
telerik:GridBoundColumn
HeaderText
=
"Campaign Name"
DataField
=
"Value"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
telerik:RadToolTip
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>