or
<
div
id
=
"phcontent_0_phcontent_0_RadGrid1Panel"
style
=
"display: block; "
>
<
div
id
=
"phcontent_0_RadGrid1"
class
=
"RadGrid RadGrid_Default"
style
=
"width:97%;"
<!-- 2011.2.712.35 -->
<
input
id
=
"phcontent_0_RadGrid1_ClientState"
name
=
"phcontent_0_RadGrid1_ClientState"
type
=
"hidden"
autocomplete
=
"off"
>
</
div
>
</
div
>
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
(function() {
function loadHandler() {
var hf = $get('phcontent_0_RadScriptManager1_TSM');
if (!hf) return;
if (!hf._RSM_init) { hf._RSM_init = true; hf.value = ''; }
hf.value += ';';
Sys.Application.remove_load(loadHandler);
};
Sys.Application.add_load(loadHandler);
})();
I have followed this guide 'Hiding expand/collapse images when no records' on the telerik site and got it working great, but when i change
HierarchyDefaultExpanded="False" then the images dont show when I now there are child rows in the 2nd table. If i change it to "True" it loads them expanded with the image showing...Does anyone know how i can have it collapsed when first entering the pages but with the images showing when there are child rows?
Many thanks
var btnclickCalledAfterRadconfirm = false;
var RRB_lastClickedItem = null;
function btn_confirmCallbackFunction(args) {
alert('debug 1');
if (args) {
btnclickCalledAfterRadconfirm = true;
alert('debug 2');
// this works if this was a radmenuitem object
RRB_lastClickedItem.click(); --
alert('debug 3');
}
else
btnclickCalledAfterRadconfirm = false;
RRB_lastClickedItem = null;
}
function RRB_Btn_OnClientItemClickingHandler(sender, eventArgs) {
if (!btnclickCalledAfterRadconfirm) {
RRB_lastClickedItem = eventArgs.get_button();
var myText = RRB_lastClickedItem.get_text();
//alert('debug: ' + myText);
if (myText == 'Clear All') {
eventArgs.set_cancel(true);
radconfirm("Clear all Alarms?", btn_confirmCallbackFunction);
}
if (myText == 'Delete All') {
eventArgs.set_cancel(true);
radconfirm("Delete all Alarms?", btn_confirmCallbackFunction);
}
if (myText == 'Acknowledge All') {
eventArgs.set_cancel(true);
radconfirm("Acknowledge all Alarms?", btn_confirmCallbackFunction);
}
if (myText == 'Clear') {
eventArgs.set_cancel(true);
radconfirm("Clear selected Alarms?", btn_confirmCallbackFunction);
}
if (myText == 'Delete') {
eventArgs.set_cancel(true);
radconfirm("Delete selected Alarms?", btn_confirmCallbackFunction);
}
if (myText == 'Refresh') {
//alert('refresh');
eventArgs.set_cancel(true);
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequestWithTarget('<%= lbHiddenRefresh.UniqueID %>', '');
}
}
btnclickCalledAfterRadconfirm = false;
}
<
asp:Content
ID
=
"content"
ContentPlaceHolderID
=
"DefaultContent"
runat
=
"Server"
>
<
h1
style
=
"text-align: center;"
>
Assign Invoices</
h1
>
<
br
/>
<
asp:Panel
runat
=
"server"
ID
=
"ViewChooserWrapper"
>
<
telerik:RadTabStrip
runat
=
"server"
ID
=
"ViewChooser"
AutoPostBack
=
"True"
SelectedIndex
=
"0"
MultiPageID
=
"RadMultiPage1"
Skin
=
"Black"
>
<
Tabs
>
<
telerik:RadTab
Text
=
"Daily Resume"
Selected
=
"True"
/>
<
telerik:RadTab
Text
=
"Assign Invoices"
/>
</
Tabs
>
</
telerik:RadTabStrip
>
<
div
class
=
"content"
>
<
asp:Panel
runat
=
"server"
ID
=
"Panel1"
>
</
asp:Panel
>
</
div
>
<
telerik:RadMultiPage
ID
=
"RadMultiPage1"
runat
=
"server"
BorderColor
=
"Black"
BorderStyle
=
"Solid"
BorderWidth
=
"1px"
SelectedIndex
=
"0"
ClientIDMode
=
"Static"
RenderSelectedPageOnly
=
"True"
>
<
telerik:RadPageView
ID
=
"pvDailyResume"
runat
=
"server"
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
Skin
=
"Black"
CellSpacing
=
"0"
GridLines
=
"None"
AllowMultiRowSelection
=
"True"
>
<
ClientSettings
>
<
Selecting
AllowRowSelect
=
"True"
/>
<
Scrolling
AllowScroll
=
"True"
ScrollHeight
=
"400px"
UseStaticHeaders
=
"True"
/>
</
ClientSettings
>
<
MasterTableView
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
></
CommandItemSettings
>
<
RowIndicatorColumn
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
<
HeaderContextMenu
CssClass
=
"GridContextMenu GridContextMenu_Windows7"
>
</
HeaderContextMenu
>
</
telerik:RadGrid
>
</
telerik:RadPageView
>
<
telerik:RadPageView
ID
=
"pvAssignInvoices"
runat
=
"server"
>
<
table
>
<
tr
>
<
td
>
<
telerik:RadListBox
ID
=
"RadListBox1"
runat
=
"server"
AllowReorder
=
"True"
Skin
=
"Black"
Sort
=
"Ascending"
Height
=
"400px"
Width
=
"220px"
EnableDragAndDrop
=
"True"
>
<
ButtonSettings
TransferButtons
=
"All"
></
ButtonSettings
>
<
HeaderTemplate
>
<
h5
style
=
"color: White; text-align: center"
>
USERS</
h5
>
</
HeaderTemplate
>
</
telerik:RadListBox
>
</
td
>
<
td
>
<
telerik:RadListBox
ID
=
"RadListBox2"
runat
=
"server"
EnableDragAndDrop
=
"True"
Height
=
"400px"
AllowReorder
=
"True"
Width
=
"140px"
Skin
=
"Black"
>
<
ButtonSettings
TransferButtons
=
"All"
></
ButtonSettings
>
<
HeaderTemplate
>
<
h5
style
=
"color: White; text-align: center"
>
STAGING</
h5
>
</
HeaderTemplate
>
</
telerik:RadListBox
>
</
td
>
<
td
>
<
telerik:RadListBox
ID
=
"RadListBox3"
runat
=
"server"
SelectionMode
=
"Multiple"
EnableDragAndDrop
=
"True"
Height
=
"400px"
Width
=
"140px"
AllowReorder
=
"True"
Skin
=
"Black"
>
<
ButtonSettings
TransferButtons
=
"All"
></
ButtonSettings
>
<
HeaderTemplate
>
<
h5
style
=
"color: White; text-align: center"
>
GROUP</
h5
>
</
HeaderTemplate
>
</
telerik:RadListBox
>
</
td
>
<
td
>
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
Text
=
"Assign"
Skin
=
"Black"
Width
=
"100px"
Height
=
"40px"
OnClick
=
"RadButton1_Click"
>
</
telerik:RadButton
>
<
br
/>
<
br
/>
<
telerik:RadButton
ID
=
"RadButton2"
runat
=
"server"
Text
=
"Unassign"
Skin
=
"Black"
Width
=
"100px"
Height
=
"40px"
OnClick
=
"RadButton4_Click"
>
</
telerik:RadButton
>
<
br
/>
<
br
/>
<
telerik:RadButton
ID
=
"RadButton3"
runat
=
"server"
Text
=
"Unassign All"
Skin
=
"Black"
Width
=
"100px"
Height
=
"40px"
OnClick
=
"RadButton3_Click"
>
</
telerik:RadButton
>
</
td
>
<
td
style
=
"width: 10px"
>
</
td
>
<
td
>
<
telerik:RadGrid
ID
=
"RadGrid2"
runat
=
"server"
Skin
=
"Black"
CellSpacing
=
"0"
GridLines
=
"None"
Width
=
"460px"
Height
=
"400px"
AllowSorting
=
"True"
AllowMultiRowSelection
=
"true"
OnNeedDataSource
=
"RadGrid2_NeedDataSource"
>
<
ClientSettings
>
<
Selecting
AllowRowSelect
=
"True"
/>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
/>
</
ClientSettings
>
<
MasterTableView
DataKeyNames
=
"UserName,Group,Staging"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
></
CommandItemSettings
>
<
RowIndicatorColumn
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
<
HeaderContextMenu
CssClass
=
"GridContextMenu GridContextMenu_Windows7"
>
</
HeaderContextMenu
>
</
telerik:RadGrid
>
</
td
>
</
tr
>
</
table
>