We're trying to get our grid to be fully functional inside a colorbox (http://colorpowered.com/colorbox/). The grid works fine on the page itself, but when inside a colorbox the grid loses all interactive elements (no selecting rows, changing pages, etc.).
For example:
The above works just fine.
However, when colorbox is added:
This does not work correctly; the colorbox opens but the grid has the issues described above.
I'm not sure how to go about fixing this, so I'd appreciate some help if possible. Thanks.
For example:
<
div
>
<
div
id
=
"grid_container"
>
<
form
id
=
"form0"
runat
=
"server"
>
<
telerik:RadScriptManager
id
=
"RadScriptManager0"
runat
=
"server"
/>
<
telerik:RadAjaxManager
id
=
"RadAjaxManager0"
EnablePageHeadUpdate
=
"false"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadGrid0"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid0"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadGrid
ID
=
"RadGrid0"
runat
=
"server"
AllowPaging
=
"True"
AllowSorting
=
"True"
AllowAutomaticUpdates
=
"True"
DataSourceID
=
"ObjectDataSource0"
GridLines
=
"Vertical"
PageSize
=
"10"
Skin
=
"Telerik"
>
...
</
telerik:RadGrid
>
</
form
>
</
div
>
</
div
>
However, when colorbox is added:
<
div
style
=
"display:none;"
>
<
div
id
=
"grid_container"
>
<
form
id
=
"form0"
runat
=
"server"
>
<
telerik:RadScriptManager
id
=
"RadScriptManager0"
runat
=
"server"
/>
<
telerik:RadAjaxManager
id
=
"RadAjaxManager0"
EnablePageHeadUpdate
=
"false"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadGrid0"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid0"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadGrid
ID
=
"RadGrid0"
runat
=
"server"
AllowPaging
=
"True"
AllowSorting
=
"True"
AllowAutomaticUpdates
=
"True"
DataSourceID
=
"ObjectDataSource0"
GridLines
=
"Vertical"
PageSize
=
"10"
Skin
=
"Telerik"
>
...
</
telerik:RadGrid
>
</
form
>
</
div
>
</
div
>
<
script
type
=
"text/javascript"
>
function openGrid() {
jQuery.colorbox({ innerWidth: "800", innerHeight: "350", opacity: 0.5, inline: true, scrolling: false, href: "#grid_container" });
}
</
script
>
I'm not sure how to go about fixing this, so I'd appreciate some help if possible. Thanks.