<
telerik:RadTabStrip
ID
=
"RadTabStrip1"
runat
=
"server"
MultiPageID
=
"RadMultiPage1"
OnTabClick
=
"RadTabStrip1_TabClick"
>
<
Tabs
>
<
telerik:RadTab
Text
=
"Tab1"
Selected
=
"true"
/>
<
telerik:RadTab
Text
=
"Tab2"
/>
<
telerik:RadTab
Text
=
"Tab2"
/>
</
Tabs
>
</
telerik:RadTabStrip
>
<
telerik:RadMultiPage
ID
=
"RadMultiPage1"
runat
=
"server"
>
<
telerik:RadPageView
ID
=
"RadPageView1"
runat
=
"server"
Width
=
"100%"
Selected
=
"true"
>xxx</
telerik:RadPageView
>
<
telerik:RadPageView
ID
=
"RadPageView2"
runat
=
"server"
Width
=
"100%"
>yyy</
telerik:RadPageView
>
<
telerik:RadPageView
ID
=
"RadPageView3"
runat
=
"server"
Width
=
"100%"
>zzz</
telerik:RadPageView
>
</
telerik:RadMultiPage
>
<asp:Button ID="btnOk" runat="server" Text="OK" onclick="btnOk_Click" />
public
string
CurrentPageViewID
{
get
{
if
(ViewState[
"CurrentPageViewID"
] !=
null
)
return
(
string
)ViewState[
"CurrentPageViewID"
];
else
return
"RadPageView1"
;
}
set
{
ViewState[
"CurrentPageViewID"
] = value;
}
}
protected
void
RadTabStrip1_TabClick(
object
sender, RadTabStripEventArgs e)
{
//update current tab
CurrentPageViewID = e.Tab.PageView.ID;
}
protected
void
btnOk_Click(
object
sender, EventArgs e)
{
Response.Write(
"Current Tab PageView ID is "
+ CurrentPageViewID);
}
Hello
I am trying to customize the pagesize combo, but as a result the OnPagesizechanged event is not firing. Please help. Following is the code snippet
.ASPX
< telerik:RadGrid AutoGenerateColumns="false" Width="100%" ID="RadGrid1" onneeddatasource
="RadGrid1_NeedDataSource" AllowFilteringByColumn="True" AllowSorting="True" OnItemDataBound
="RadGrid1_ItemDataBound"
PageSize="1" ShowFooter="True" AllowPaging="True" runat="server" OnPageSizeChanged
="RadGrid1_PageSizeChanged" GridLines="None" EnableLinqExpressions="false" OnItemCommand
="RadGrid1_ItemCommand">
<PagerStyle Mode="NextPrevAndNumeric"/>
.Cs
protected void RadGrid1_ItemDataBound(object source, GridItemEventArgs e)
{
if (e.Item is GridPagerItem)
{
RadComboBox PageSizeCombo = (RadComboBox)e.Item.FindControl("PageSizeComboBox");
PageSizeCombo.Items.Clear();
PageSizeCombo.Items.Add(new RadComboBoxItem("1"));
PageSizeCombo.FindItemByText("1").Attributes.Add("ownerTableViewID", RadGrid1.MasterTableView.ClientID);
PageSizeCombo.Items.Add(new RadComboBoxItem("10"));
PageSizeCombo.FindItemByText("10").Attributes.Add("ownerTableViewID", RadGrid1.MasterTableView.ClientID);
PageSizeCombo.Items.Add(new RadComboBoxItem("15"));
PageSizeCombo.FindItemByText("15").Attributes.Add("ownerTableViewID", RadGrid1.MasterTableView.ClientID);
//PageSizeCombo.Attributes.Add("ownerTableViewID", RadGrid1.MasterTableView.ClientID);
PageSizeCombo.FindItemByText(RadGrid1.PageSize.ToString()).Selected = true;
PageSizeCombo.AutoPostBack = true;
//PageSizeCombo.EnableViewState = true;
}
}
protected void RadGrid1_PageSizeChanged(object sender, GridPageSizeChangedEventArgs e)
{
int i = e.NewPageSize;
}
Please let me know how i can get the PageSizeEventChanged event to fire. I would like to mention that i am using a RadAjaxManager on the page.
Thanks,
Kavitha
<telerik:RadComboBox ID="cboMonth" runat="server" OnClientDropDownClosed="onClientDropDownClosed"> |
<ItemTemplate> |
<asp:CheckBox runat="server" ID="chk1" Checked="true" Text='<%# DataBinder.Eval(Container, "Text") %>' /> |
</ItemTemplate> |
</telerik:RadComboBox> |
if (item._text = " ") { |
cboCountries.enable() |
} |
else { |
cboCountries.clearSelection() |
cboCountries.disable(); |
} |
var items = cboCountries.get_items(); |
for (var i = 0; i < items.get_count(); i++) { |
var chk1 = $get(cboCountries.get_id() + "_i" + i + "_chk1"); |
chk1.disabled = false; |
} |
FileImport.ascx
%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FileImport.ascx.cs" Inherits="Epsi.Segmentation.WebApp.SegmentationControls.FileImport" %>
<%@ Register src="UploadPrompt.ascx" tagname="UploadPrompt" tagprefix="uc1" %>
<%@ Register src="ColumnDetail.ascx" tagname="ColumnDetail" tagprefix="uc2" %>
<
uc1:UploadPrompt
ID
=
"UploadPrompt1"
runat
=
"server"
Visible
=
"false"
/>
<
uc2:ColumnDetail
ID
=
"ColumnDetail1"
runat
=
"server"
Visible
=
"false"
/>
<
asp:HiddenField
ID
=
"HiddenFieldMode"
runat
=
"server"
/>
UploadPrompt.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UploadPrompt.ascx.cs" Inherits="Epsi.Segmentation.WebApp.SegmentationControls.UploadPrompt" %>
<
script
type
=
'text/javascript'
src
=
"../assets/js/segmentation/upload_prompt.js"
></
script
>
<
telerik:RadFormDecorator
ID
=
"RadFormDecorator1"
runat
=
"server"
/>
<
asp:ObjectDataSource
ID
=
"ObjectDataSourceTables"
runat
=
"server"
CacheDuration
=
"10"
DataObjectTypeName
=
"Epsi.Segmentation.Dto.TblEntityDto"
SelectMethod
=
"SelectRegisteredUdtTables"
TypeName
=
"Epsi.Segmentation.WebApp.DataSource.ObjectDataSourceTables"
>
</
asp:ObjectDataSource
>
<
asp:ObjectDataSource
ID
=
"ObjectDataSourceTags"
runat
=
"server"
CacheDuration
=
"10"
DataObjectTypeName
=
"Epsi.Segmentation.Dto.TagEntityDto"
SelectMethod
=
"Select"
TypeName
=
"Epsi.Segmentation.WebApp.DataSource.ObjectDataSourceTags"
>
</
asp:ObjectDataSource
>
<
asp:ObjectDataSource
ID
=
"ObjectDataSourceApps"
runat
=
"server"
CacheDuration
=
"10"
DataObjectTypeName
=
"Epsi.Segmentation.Dto.RefAppEntityDto"
SelectMethod
=
"Select"
TypeName
=
"Epsi.Segmentation.WebApp.DataSource.ObjectDataSourceApps"
>
</
asp:ObjectDataSource
>
<
div
id
=
"Div1"
runat
=
"server"
style
=
"overflow: auto; margin: 25px; width: 90%;"
>
<
telerik:RadComboBox
ID
=
"RadComboBoxTable"
Label="<%$ Resources:UserControlTextAndLabels, ExistingTableLabelResource%>"
runat="server" DataSourceID="ObjectDataSourceTables" DataTextField="Name"
OnClientSelectedIndexChanged="OnClientSelectedIndexChanged" DataValueField="Name" Width="100%"/>
</
div
>
<
div
id
=
"Div2"
runat
=
"server"
style
=
"overflow: auto; margin: 25px; width: 90%;"
>
<
telerik:RadTextBox
ID
=
"RadTextBoxNewTable"
runat
=
"server"
MaxLength
=
"26"
Label="<%$ Resources:UserControlTextAndLabels, NewTableLabelResource%>" Width="100%">
<
ClientEvents
OnValueChanged
=
"textNewTableChanged"
/>
</
telerik:RadTextBox
>
</
div
>
<
asp:HiddenField
ID
=
"HiddenExistingTable"
runat
=
"server"
/>
<
div
id
=
"Div3"
runat
=
"server"
style
=
"overflow: auto; margin: 25px; width: 90%;"
>
<
asp:Label
ID
=
"Label3"
runat
=
"server"
Text="<%$ Resources:UserControlTextAndLabels, ImportFile%>"
CssClass="rcbLabel riLabel" AssociatedControlID="RadUploadDataFile">
</
asp:Label
>
<
telerik:RadUpload
ID
=
"RadUploadDataFile"
runat
=
"server"
ControlObjectsVisibility
=
"None"
MaxFileInputsCount
=
"1"
OnClientAdded
=
"onClientDataFileAddedHandler"
Localization-Select="<%$ Resources:UserControlTextAndLabels, SelectTxtResource%>" Width="100%">
</
telerik:RadUpload
>
</
div
>
<
div
id
=
"Div5"
runat
=
"server"
style
=
"overflow: auto; margin: 25px; width: 90%;"
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text="<%$ Resources:UserControlTextAndLabels, ApplicationsResource%>"
CssClass="rcbLabel riLabel" AssociatedControlID="RadListBoxApps" />
<
br
/>
<
telerik:RadListBox
ID
=
"RadListBoxApps"
runat
=
"server"
CheckBoxes
=
"True"
DataKeyField
=
"Id"
DataSortField
=
"Name"
DataSourceID
=
"ObjectDataSourceApps"
DataTextField
=
"Name"
DataValueField
=
"Id"
Style
=
"overflow: auto;"
Width
=
"80%"
Height
=
"50px"
ondatabound
=
"RadListBoxApps_DataBound"
>
<
ButtonSettings
ReorderButtons
=
"Common"
/>
</
telerik:RadListBox
>
</
div
>
<
div
id
=
"Div6"
runat
=
"server"
style
=
"overflow: auto; margin: 25px; width: 90%;"
>
<
asp:Label
ID
=
"Label2"
runat
=
"server"
Text="<%$ Resources:UserControlTextAndLabels, TagsColonResource%>"
CssClass="rcbLabel riLabel" AssociatedControlID="RadListBoxTags" />
<
br
/>
<
telerik:RadListBox
ID
=
"RadListBoxTags"
runat
=
"server"
CheckBoxes
=
"True"
DataKeyField
=
"Id"
DataSortField
=
"Id"
DataSourceID
=
"ObjectDataSourceTags"
DataTextField
=
"Id"
DataValueField
=
"Id"
Style
=
"overflow: auto;"
Width
=
"80%"
Height
=
"50px"
ondatabound
=
"RadListBoxTags_DataBound"
>
<
ButtonSettings
ReorderButtons
=
"Common"
/>
</
telerik:RadListBox
>
</
div
>
<
div
id
=
"Div4"
runat
=
"server"
style
=
"overflow: auto; margin: 25px; width: 90%;"
>
<
asp:Button
ID
=
"submitButton"
runat
=
"server"
Text="<%$ Resources:UserControlTextAndLabels, SubmitTxtResource%>"
onclick="submitButton_Clicked" />
<
asp:Button
ID
=
"ButtonCancel"
runat
=
"server"
Text="<%$ Resources:UserControlTextAndLabels, BtnCancelResource1 %>"
CausesValidation="False" onclick="ButtonCancel_Click" />
</
div
>