or
RadListView1.PageSize = (
int
)contentList.PageSize;
RadListView1.DataSource = contents;
RadListView1.LayoutTemplate = Page.LoadTemplate(contentList.LayoutTemplate);
RadListView1.ItemTemplate = Page.LoadTemplate(contentList.ItemTemplate);
RadListView1.VirtualItemCount = totlaCount;
RadListView1.DataBind();
I have a radgrid with 3 radiobutton in each row as a group. Either 1 will be selected and rest 2 will be not. My requirement is to show a count of radiobutton's selected for a particular page at the buttom of the grid(not footer). For eg. Not Mine:2, Remove:4, Keep: 4. The way that i thought of iterating through the MasterTable rows and get the radiobutton control but as it is in rad grid I cant get those. Please provide a solution.
Thanks in advance.
<
telerik:RadGrid
ID
=
"grvReviewerView"
runat
=
"server"
AutoGenerateColumns
=
"False"
ShowFooter
=
"true"
GridLines
=
"Both"
EnableEmbeddedBaseStylesheet
=
"true"
EnableEmbeddedSkins
=
"true"
AllowPaging
=
"true"
PageSize
=
"10"
AllowSorting
=
"true"
Skin
=
"Office2007"
OnDataBound
=
"grvReviewerView_DataBound"
OnNeedDataSource
=
"grvReviewerView_NeedDataSource"
AllowFilteringByColumn
=
"true"
ShowGroupPanel
=
"True"
EnableHeaderContextMenu
=
"true"
OnItemDataBound
=
"grvReviewerView_ItemDataBound"
> <
ClientSettings
AllowColumnsReorder
=
"true"
ReorderColumnsOnClient
=
"true"
ColumnsReorderMethod
=
"Reorder"
>
<
Scrolling
AllowScroll
=
"true"
UseStaticHeaders
=
"true"
EnableVirtualScrollPaging
=
"true"
FrozenColumnsCount
=
"3"
/>
<
ClientEvents
OnRowClick
=
"UpdateCount"
/>
<
Resizing
AllowColumnResize
=
"true"
ResizeGridOnColumnResize
=
"true"
AllowResizeToFit
=
"true"
/>
<
Animation
AllowColumnReorderAnimation
=
"true"
AllowColumnRevertAnimation
=
"true"
/>
<
Selecting
UseClientSelectColumnOnly
=
"true"
/>
</
ClientSettings
>
<
PagerStyle
AlwaysVisible
=
"true"
/>
<
MasterTableView
TableLayout
=
"Fixed"
AutoGenerateColumns
=
"False"
AllowMultiColumnSorting
=
"true"
GroupLoadMode
=
"Client"
>
<
Columns
>
<
telerik:GridTemplateColumn
HeaderText
=
"Not Mine"
UniqueName
=
"NotMine"
AllowFiltering
=
"false"
HeaderStyle-Width
=
"50px"
>
<
ItemTemplate
>
<
asp:RadioButton
ID
=
"rdbNotMine"
runat
=
"server"
GroupName
=
"ReviewStatus"
Checked='<%# Convert.ToBoolean(Eval("NotMine")) %>'/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
HeaderStyle-Width
=
"50px"
HeaderText
=
"Remove Access"
UniqueName
=
"RemoveAccess"
AllowFiltering
=
"false"
>
<
ItemTemplate
>
<
asp:RadioButton
ID
=
"rdbRemoveAccess"
runat
=
"server"
GroupName
=
"ReviewStatus"
Checked='<%# Convert.ToBoolean(Eval("RemoveAccess")) %>'/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Keep Access"
UniqueName
=
"KeepAccess"
AllowFiltering
=
"false"
HeaderStyle-Width
=
"50px"
>
<
ItemTemplate
>
<
asp:RadioButton
ID
=
"rdbKeepAccess"
runat
=
"server"
GroupName
=
"ReviewStatus"
Checked='<%# Convert.ToBoolean(Eval("KeepAccess")) %>' />
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
custom:CustomFilterClass
DataField
=
"Legacy_ID"
FilterControlWidth
=
"163px"
HeaderText
=
"User Legacy ID"
SortExpression
=
"Legacy_ID"
>
<
HeaderStyle
Width
=
"160px"
/>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblUserLegacyID"
Text='<%# Eval("Legacy_ID") %>' runat="server"></
asp:Label
>
</
ItemTemplate
>
</
custom:CustomFilterClass
>
<
custom:CustomFilterClass
DataField
=
"NT_Login"
FilterControlWidth
=
"163px"
HeaderText
=
"NT Name"
SortExpression
=
"NT_Login"
>
<
HeaderStyle
Width
=
"160px"
/>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblNTLogin"
Text='<%# Eval("NT_Login") %>' runat="server"></
asp:Label
>
</
ItemTemplate
>
</
custom:CustomFilterClass
>
</
Columns
>
<
AlternatingItemStyle
/>
<
ItemStyle
/>
<
HeaderStyle
Wrap
=
"false"
/>
<
FooterStyle
/>
<
NoRecordsTemplate
>
No Data
</
NoRecordsTemplate
>
</
MasterTableView
>
</
telerik:RadGrid
>
I have been running Rad controls on my development machine with no problems at all, i tried to install the project at staging environement. unfortunately, whenever i try to run a certain page I get a javascript error in webresource.axd file.
the page that i'm trying to view has Radtabstrip, Muiltpage control, RadAjax & other Rad controls. I'm not sure what is causing this javascript error, but at some point while trying to debug it stops at a line where it points to TabStrip.
any one facing this issue?
var
tab = eventArgs.get_tab();
var
url = tab.get_navigateUrl();
var
tab = eventArgs.get_tab();
var
attr = tab.get_attributes();
var
url = attr.getAttribute(
"url"
);
tab.set_navigateUrl(url);
var
tab = args.get_tab();
var
attr = tab.get_attributes();
var
url = tab.get_navigateUrl();
if
(url ==
null
)
{
url = attr.getAttribute(
"url"
);
document.URL = url;
}
window.open(url, target)