Hai, i am currently on project that using your very helpful Telerik UI.
I am using RadGrid, and i am following the example like in this link and i got a problem.
I am using one page and multiple UserControl. I got an error RadAjaxManager is only one in one page, and the solution i found is using RadAjaxManagerProxy.
But, i am confused how to use it? especially at Ajax Event Handler.
Please kindly help me.
Thank you in advance.
<
div
id
=
"ContentTemplateZone"
class
=
"qsf-ib infoBox"
>
<
asp:Button
ID
=
"Button3"
Text
=
"Open rad window from Button"
runat
=
"server"
OnClientClick
=
"openWinContentTemplate(); return false;"
>
</
asp:Button
>
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
Text
=
"Open rad window from RadButton"
ButtonType
=
"StandardButton"
OnClientClick
=
"openWinContentTemplate(); return false;"
>
<
Icon
PrimaryIconCssClass
=
"rbAdd"
PrimaryIconLeft
=
"4"
PrimaryIconTop
=
"4"
></
Icon
>
</
telerik:RadButton
>
<
br
/>
<
asp:Label
ID
=
"Label1"
Text
=
""
runat
=
"server"
></
asp:Label
>
<
script
type
=
"text/javascript"
>
function populateValue() {
$get("<%=Label1.ClientID %>").innerHTML = $get("<%= Textbox1.ClientID %>").value;
alert($get("<%= Textbox1.ClientID %>").value);
//the RadWindow's content template is an INaming container and the server code block is needed
$find("<%=RadWindow_ContentTemplate.ClientID%>").close();
}
function openWinContentTemplate() {
alert("open");
$find("<%=RadWindow_ContentTemplate.ClientID %>").show();
}
</
script
>
</
div
>
<
telerik:RadWindow
runat
=
"server"
ID
=
"RadWindow_ContentTemplate"
RestrictionZoneID
=
"ContentTemplateZone"
Modal
=
"true"
>
<
ContentTemplate
>
<
p
class
=
"contText"
>
Enter a value here and click the button to close the RadWindow and pass the
value to the main page.
</
p
>
<
div
class
=
"contButton"
>
<
asp:TextBox
ID
=
"Textbox1"
runat
=
"server"
></
asp:TextBox
>
</
div
>
<
p
class
=
"contText"
>
Via a simple JavaScript function:
</
p
>
<
div
class
=
"contButton"
>
<
asp:Button
ID
=
"Button1"
Text
=
"send value and close"
runat
=
"server"
OnClientClick
=
"populateValue(); return false;"
>
</
asp:Button
>
</
div
>
<
p
class
=
"contText"
>
Via a simple method in the code-behind:
</
p
>
<
div
class
=
"contButton"
>
<
asp:Button
ID
=
"Button2"
Text
=
"send value through code-behind"
runat
=
"server"
OnClick
=
"Button2_Click"
>
</
asp:Button
>
</
div
>
</
ContentTemplate
>
</
telerik:RadWindow
>
plz help me
How do I find the lbljson in a nested grid?
findcontrol
<
telerik:RadGrid
ID
=
"RadGrid3"
runat
=
"server"
ShowStatusBar
=
"True"
AutoGenerateColumns
=
"False"
PageSize
=
"7"
AllowSorting
=
"True"
AllowPaging
=
"True"
OnDetailTableDataBind
=
"RadGrid3_DetailTableDataBin d"
OnNeedDataSource
=
"RadGrid3_NeedDataSource"
OnPreRender
=
"RadGrid3_PreRender"
Skin
=
"Bootstrap"
AllowFilteringByColumn
=
"True"
GroupPanelPosition
=
"Top"
ShowGroupPanel
=
"True"
OnItemDataBound
=
"RadGrid3_ItemDataBound"
>
<
PagerStyle
Mode
=
"NumericPages"
></
PagerStyle
>
<
ClientSettings
AllowDragToGroup
=
"True"
>
</
ClientSettings
>
<
MasterTableView
DataKeyNames
=
"ID"
AllowMultiColumnSorting
=
"True"
>
<
DetailTables
>
<
telerik:GridTableView
DataKeyNames
=
"ID"
Name
=
"Short"
Width
=
"100%"
>
<
DetailTables
>
<
telerik:GridTableView
DataKeyNames
=
"ShortUrlID"
Name
=
"report"
Width
=
"100%"
>
<
Columns
>
<
telerik:GridBoundColumn
SortExpression
=
"Domain"
HeaderText
=
"Domain"
DataField
=
"Domain"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
SortExpression
=
"JsonStringReport"
HeaderText
=
"JsonStringReport"
DataField
=
"JsonStringReport"
>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"IP"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"Label4"
runat
=
"server"
Visible
=
"False"
Text='<%# Eval("ID") %>'></
asp:Label
>
<
asp:Label
ID
=
"lbldomain"
runat
=
"server"
Visible
=
"False"
Text='<%# Eval("Domain") %>'></
asp:Label
>
<
asp:Label
ID
=
"lbljson"
runat
=
"server"
Text='<%# Eval("JsonStringReport") %>' Visible="False"></
asp:Label
>
<
asp:Label
ID
=
"lblIP"
runat
=
"server"
Text
=
""
></
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"DateTimeClick"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblClickDate"
runat
=
"server"
Text
=
""
></
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
AllowFiltering
=
"False"
>
<
ItemTemplate
>
<
a
href
=
"#"
data-featherlight
=
"#fl<%# Eval("
ID") %>"><
em
class
=
"icon-eye"
></
em
></
a
>
<
div
class
=
"lightbox"
id='fl<%# Eval("ID") %>'>
<
div
class
=
"col-lg-12"
>
<!-- START panel-->
<
div
class
=
"panel panel-default"
>
<
div
class
=
"panel-heading"
>Target Information</
div
>
<
div
class
=
"panel-body"
>
<!-- START table-responsive-->
<
div
class
=
"table-responsive"
> </
div
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
telerik:GridTableView
>
</
DetailTables
>
<
Columns
>
<
telerik:GridBoundColumn
SortExpression
=
"ShortLinkID"
HeaderText
=
"ShortURL ID"
DataField
=
"ShortLinkID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
SortExpression
=
"Domain"
HeaderText
=
"Domain"
DataField
=
"Domain"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
SortExpression
=
"Count"
HeaderText
=
"Count"
DataField
=
"Count"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
SortExpression
=
"Status"
HeaderText
=
"Status"
DataField
=
"Status"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
SortExpression
=
"DateTime"
HeaderText
=
"DateTime"
DataField
=
"DateTime"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
telerik:GridTableView
>
</
DetailTables
>
<
Columns
>
<
telerik:GridBoundColumn
SortExpression
=
"TargetName"
HeaderText
=
"TargetName"
DataField
=
"TargetName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
SortExpression
=
"TargetDesc"
HeaderText
=
"TargetDesc"
DataField
=
"TargetDesc"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
SortExpression
=
"Name"
HeaderText
=
"Creator"
DataType
=
"System.string"
DataField
=
"Name"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
SortExpression
=
"DateTime"
HeaderText
=
"DateTime"
DataField
=
"DateTime"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
SortExpression
=
"Status"
HeaderText
=
"Status"
DataField
=
"Status"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Good day,
we have implemented a flex layout to accommodate our typical site page setup with a formview on top and one or more radgrids at the bottom.
The flex based design uses a non stretching top space dedicated to the formview, and a stretching inferior part dedicated to the grids.
We would like to implement a dynamic pagesize solution to take advantage of our site's fluid design. We've already solved all containment challenges so the radgrid's container implements auto scroll, but because of the grids' pagesizes, the grids remain limited in vertical size and never benefit from a taller display than the 'design' one.
We would like to know how to implement a dynamic pagesize based on the grid's container height, or any equivalent paging solution that would allow our grids to resize vertically automatically and take advantage of dynamic vertical space.
Hi,
i m new in using the telerik control. i have done a lot of RND on the control but i have got stuck on desinging the control.
i have attacht the image of my requeriment.
so far i have added the Button for "Add New Record".
In my project i have installed the Controls 2013 Q3, ASPX.NET AJAX version 2013.3.1015.35.
My problem occurs when the controls have like 4 minutes of inactivity; the RadWindows are closing without any click event or similar, context menus don't fire events, the comboboxes sometimes can be opened; and i have to refresh the page to get the controls's events.
If is important, the site's session state in those moment was alive.
I have been searching about this issue in a lot of forums, but the issues that the people wrote about it.
Regards
I have troubles with RadEditor. Everything works fine without validators.
When I add validator on page Editor starts behave weird. I can not paste text into editor. I can not insert image with Image manager and etc.
I have no idea what I am doing wrong.
This is my code:
01.
<
div
class
=
"formRow"
>
02.
<
div
class
=
"formColumn one"
>
03.
<
asp:Label
ID
=
"LabelFooterTitle"
runat
=
"server"
AssociatedControlID
=
"RadTextBoxFooterTitle"
>
04.
<
asp:Literal
ID
=
"LiteralFooterTitle"
runat
=
"server"
Text="<%$ Resources:Texts, title %>" />
05.
</
asp:Label
>
06.
<
telerik:RadTextBox
ID
=
"RadTextBoxFooterTitle"
runat
=
"server"
TextMode
=
"SingleLine"
EnableEmbeddedBaseStylesheet
=
"false"
EnableEmbeddedSkins
=
"false"
07.
Skin
=
"Youbeee"
Width
=
"100%"
EmptyMessage="<%$ Resources:Texts, title %>"></
telerik:RadTextBox
>
08.
<
asp:RequiredFieldValidator
ID
=
"TitleValidator"
runat
=
"server"
ControlToValidate
=
"RadTextBoxFooterTitle"
Display
=
"Dynamic"
ErrorMessage
=
"Title is required!"
09.
ValidationGroup
=
"formGroup"
>*</
asp:RequiredFieldValidator
>
10.
</
div
>
11.
</
div
>
12.
<
div
class
=
"formRow"
>
13.
<
div
class
=
"formColumn one"
>
14.
<
asp:Label
ID
=
"LabelFooterContent"
runat
=
"server"
AssociatedControlID
=
"RadEditorFooterContent"
>
15.
<
asp:Literal
ID
=
"LiteralFooterContent"
runat
=
"server"
Text="<%$ Resources:Texts, content %>" />
16.
</
asp:Label
>
17.
<
telerik:RadEditor
ID
=
"RadEditorFooterContent"
runat
=
"server"
NewLineMode
=
"Br"
Skin
=
"Silk"
Width
=
"100%"
>
18.
<
ImageManager
ViewPaths
=
"~/Images/UsersImg"
UploadPaths
=
"~/Images/UsersImg"
DeletePaths
=
"~/Images/UsersImg"
EnableAsyncUpload
=
"true"
/>
19.
</
telerik:RadEditor
>
20.
</
div
>
21.
</
div
>
22.
<
div
class
=
"buttons"
>
23.
<
telerik:RadButton
ID
=
"RadButtonSave"
runat
=
"server"
Text="<%$ Resources:Texts, save %>" OnClick="RadButtonSave_Click"
24.
CausesValidation="true" Visible="true" EnableEmbeddedSkins="false" AutoPostBack="true" Skin="Youbeee" ValidationGroup="formGroup" />
25.
</
div
>
<
telerik:RadGrid
ID
=
"rgUploadedFiles"
runat
=
"server"
PageSize
=
"10"
EnableEmbeddedSkins
=
"false"
Skin
=
"MyCustomSkin"
OnItemDataBound
=
"rgUploadedFiles_ItemDataBound"
AllowPaging
=
"True"
AutoGenerateColumns
=
"False"
GroupPanelPosition
=
"Top"
>
<
MasterTableView
CommandItemDisplay
=
"Bottom"
HorizontalAlign
=
"NotSet"
EditMode
=
"Batch"
AutoGenerateColumns
=
"False"
>
<
ColumnGroups
>
<
telerik:GridColumnGroup
HeaderText
=
"Product Details "
Name
=
"ProductDetails"
HeaderStyle-HorizontalAlign
=
"Center"
>
</
telerik:GridColumnGroup
>
<
telerik:GridColumnGroup
HeaderText
=
"Other info"
Name
=
"Other"
HeaderStyle-HorizontalAlign
=
"Center"
>
</
telerik:GridColumnGroup
>
</
ColumnGroups
>
<
CommandItemTemplate
>
</
CommandItemTemplate
>
<
BatchEditingSettings
EditType
=
"Cell"
/>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"SrNo"
HeaderStyle-Width
=
"30px"
HeaderText
=
"Sr. No"
ReadOnly
=
"true"
UniqueName
=
"SrNo"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ActualFileName"
HeaderStyle-Width
=
"210px"
HeaderText
=
"Actual File Name"
ReadOnly
=
"true"
UniqueName
=
"ActualFileName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"FixedFileName"
HeaderStyle-Width
=
"210px"
HeaderText
=
"Fixed File Name"
ReadOnly
=
"true"
UniqueName
=
"FixedFileName"
ColumnGroupName
=
"ProductDetails"
>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
HeaderStyle-Width
=
"180px"
HeaderText
=
"Variable Name"
UniqueName
=
"VariableName"
ColumnGroupName
=
"ProductDetails"
>
<
ItemTemplate
>
<
asp:TextBox
ID
=
"txtVariableName"
runat
=
"server"
Text
=
""
></
asp:TextBox
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
HeaderStyle-Width
=
"380px"
HeaderText
=
"File Title"
UniqueName
=
"FilTitle"
ColumnGroupName
=
"Other"
ItemStyle-VerticalAlign
=
"Middle"
>
<
ItemTemplate
>
<
telerik:RadComboBox
ID
=
"rcmbEctdFiletitle"
OnClientSelectedIndexChanged
=
"OnClientSelectedIndexChanged"
runat
=
"server"
Filter
=
"StartsWith"
AllowCustomText
=
"true"
CloseDropDownOnBlur
=
"true"
>
</
telerik:RadComboBox
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
when i hide second column ,"Variable Name" column shown under "ProductDetails" group Header