Hy
i am using RadhtmlChart and i want to fill RadhtmlChart programmatically using simple SQL request.
thank you very much
Hello,
I bind my rad grid client-side.
Here I am trying to export grid data to excel on button click event from server side.
However, exporting is not working.
So, could someone suggest any workaround to achieve above case?
Thanks in advance.
Rahul
I have a reproducible problem that I encounter when the RadWizard Finish button is clicked. I believe it is Telerik related and not my code ... here is a description of the behavior.
1) User clicks Finish button. The entire browser window freezes. (i.e. cannot minimize, cannot change the page).
2) This behavior occurs in IE 10, IE 11, and Edge.
3) This behavior does not occur in Google Chrome.
4) When it happens no errors are thrown to the console window.
5) The code behind function for the Finish event is not fired. All code (including the freeze) occurs client-side in the browser.
6) The behavior does NOT occur in IE 10, IE 11, and Edge if the Visual Studio debugger is attached. No errors are thrown.
This is for an application in production and this issue causes work stoppage. Any guidance or suggestions is greatly appreciated. Thank you!
Hello,
We have a Rad grid and a hyperlink in a rad window
Here on hyperlink click we are trying to bind the rad grid from client side by calling Web Method via $.Ajax() function, however
the rad grid - get_masterTableView() finds null.
So, could someone please advise is there any workaround/better way to bind the rad grid as per the above case?
Thanks in advance.
I have an ASP.Net page with a RadGrid within the RadPageLayout.
There is a RadTextBox within the RadPageLayout. A user will enter in the Serial Number into the RadTextBox and click the SCAN button which is a RadButton. Clicking on the SCAN button causes the VB.Net code-behind to a number of checks on the Serial Number entered and puts the results in a table that was bound to the RadGrid. A Rebind is done with the RadGrid to show the results and the row with the Serial Number is selected.
Once the Rebind is done and row is selected, I need the RadGrid to scroll to the selected row. I am having trouble getting that to work. I have tried what the Telerik documentation states about scrolling to selected row and did not work. I have tried using SelectedIndexChanged event with RadGrid and did not work.
Here is a portion of the code-behind for the Scan button click:
' Rebind Grid to show status of scan.
rgInvntCycleReconcl.Rebind()
' Select Row with Serial Number
Dim gdiItem As GridDataItem = rgInvntCycleReconcl.MasterTableView.FindItemByKeyValue("SERIAL_NO", strSerialNbr)
gdiItem.Selected = True
Here is the RadGrid in ASP.Net page:
<
telerik:RadGrid
ID
=
"rgInvntCycleReconcl"
runat
=
"server"
GroupPanelPosition
=
"Top"
Height
=
"246px"
AutoGenerateColumns
=
"False"
AllowPaging
=
"True"
RenderMode
=
"Auto"
PageSize
=
"2000"
OnNeedDataSource
=
"rgInvntCycleReconcl_NeedDataSource"
OnSelectedIndexChanged
=
"rgInvntCycleReconcl_SelectedIndexChanged"
>
<
GroupingSettings
CollapseAllTooltip
=
"Collapse all groups"
/>
<
ExportSettings
IgnorePaging
=
"True"
>
<
Pdf
AllowPrinting
=
"False"
>
</
Pdf
>
<
Excel
FileExtension
=
"xlsx"
Format
=
"Xlsx"
/>
</
ExportSettings
>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
SaveScrollPosition
=
"true"
/>
<
Selecting
AllowRowSelect
=
"True"
/>
</
ClientSettings
>
<
MasterTableView
EnableViewState
=
"true"
Font-Size
=
"Medium"
DataKeyNames
=
"SERIAL_NO"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"SERIAL_NO"
FilterControlAltText
=
"Filter column column"
HeaderText
=
"Serial No."
ReadOnly
=
"True"
UniqueName
=
"SerialNbr"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"LOCATION"
FilterControlAltText
=
"Filter column1 column"
HeaderText
=
"Location"
ReadOnly
=
"True"
UniqueName
=
"Location"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"STATUS"
FilterControlAltText
=
"Filter column2 column"
HeaderText
=
"Status"
ReadOnly
=
"True"
UniqueName
=
"Status"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"SCAN_LOC"
FilterControlAltText
=
"Filter column3 column"
HeaderText
=
"Scan Location"
ReadOnly
=
"True"
UniqueName
=
"ScanLocation"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"WEIGHT_KGS"
FilterControlAltText
=
"Filter column4 column"
HeaderText
=
"Weight KGS"
ReadOnly
=
"True"
UniqueName
=
"WeightKGS"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
<
PagerStyle
Mode
=
"NextPrevNumericAndAdvanced"
/>
</
telerik:RadGrid
>
Please help!
Sincerely,
Keith Jackson
I can't seem to trigger my validators within my FormTemplate on my grid. I can't find any examples of this either. Is it possible? Do I have to resort to using client side JS to manually trigger them on the submit?
<ValidationSettings EnableValidation="true" CommandsToValidate="PerformInsert,Update" />
<FormTemplate>
<table>
<tr>
<td>Milestone Name: </td>
<td>
<asp:TextBox runat="server" Text='<%# Bind("Name") %>' ID="txtMilestoneName" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtMilestoneName"
runat="server" ErrorMessage="* - Required Field" Display="Dynamic" ValidationGroup="Milestone"
ForeColor="Red" Font-Bold="true"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>Pipline: </td>
<td><asp:DropDownList runat="server" SelectedValue='<%# Bind("PipelineID") %>' ID="ddlPipline"
ItemType="ONEOK.BusinessData.BusinessObjects.Pipeline"
DataTextField="Name" DataValueField="PipelineID" SelectMethod="getPipelines" AppendDataBoundItems="true">
<asp:ListItem Text="Select..." Value="0" />
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddlPipline"
ErrorMessage="* - Required Field" InitialValue="" ForeColor="Red" Font-Bold="true"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>Threshold Value: </td>
<td>
<asp:TextBox runat="server" Text='<%# Bind("MilestoneThresholdValue") %>' ID="txtMilestoneThresholdValue" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtMilestoneThresholdValue" runat="server" ErrorMessage="* - Required Field" ForeColor="Red" Font-Bold="true"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>Latitude: </td>
<td>
<asp:TextBox runat="server" Text='<%# Bind("Latitude") %>' ID="txtLatitude" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtLatitude" runat="server" ErrorMessage="* - Required Field" ForeColor="Red" Font-Bold="true"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>Longitude: </td>
<td>
<asp:TextBox runat="server" Text='<%# Bind("Longitude") %>' ID="txtLongitude" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="txtLongitude" runat="server" ErrorMessage="* - Required Field" ForeColor="Red" Font-Bold="true"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td valign="top">Photo: </td>
<td>
<telerik:RadBinaryImage ID="rbiMilestone" DataValue='<%# Eval("Photo") %>' runat="server" />
<telerik:RadAsyncUpload ID="radMilestoneImage" AllowedFileExtensions="jpg,jpeg,png,gif" runat="server"
AutoAddFileInputs="false" Localization-Select="Upload Image"></telerik:RadAsyncUpload>
</td>
</tr>
<tr>
<td>Milestone Information: </td>
<td><telerik:RadEditor ID="radEventLongDesc" Content='<%# Bind("MilestoneInformation") %>' ContentAreaCssFile="~/content/rte.css" runat="server" Width="500px" ToolbarMode="PageTop" BackColor="White"></telerik:RadEditor></td>
</tr>
<tr>
<td align="center" colspan="2">
<asp:Button ID="btnUpdate" CausesValidation="true" ValidationGroup="Milestone" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></asp:Button>
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
CommandName="Cancel"></asp:Button>
</td>
</tr>
</table>
</FormTemplate>
I am writing this simple page with two RadAjaxPanel as:
<html lang="en">
<body>
<form runat="server">
<telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
<telerik:RadAjaxLoadingPanel runat="server" ID="rdProgressPanel"></telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel ID="upd1" runat="server" LoadingPanelID="rdProgressPanel">
<asp:Panel runat="server" ID="panel1">
step 1
<asp:Button Text="text" runat="server" OnClick="Unnamed_Click" />
</asp:Panel>
</telerik:RadAjaxPanel>
<telerik:RadAjaxPanel ID="upd2" runat="server" LoadingPanelID="rdProgressPanel">
<asp:Panel runat="server" ID="panel2">
step 2
<asp:Button Text="text" runat="server" OnClick="Unnamed_Click1" />
</asp:Panel>
</telerik:RadAjaxPanel>
</form>
</body>
</html>
On the server side, I have written to simply visible the panels as:
protected void Unnamed_Click(object sender, EventArgs e)
{
panel1.Visible = false;
panel2.Visible = true;
}
protected void Unnamed_Click1(object sender, EventArgs e)
{
panel1.Visible = true;
panel2.Visible = false;
}
Issue is, when I click first button that makes panel 2 visible and panel 1 invisible. But, when I click second button panel 2 is getting invisible but panel1 is not getting visible again.
Hi
I need to add some attributes to the data source so that when my JS function on the OnRequestEnd event is called it can interrogate the attributes.
Most controls have the attributes but I cant seem to find anything for the ClientDataSource.
Any ideas?
Regards
Jon