Hi,
Telerik Team ,
I am facing validation related problem in Rad Grid (Batch Editing).
It seems that validation is not working as expected .Please help me on
the same.
My current telerik verion is '2015.2.826.45'. Please let me know
whether this version supports validation or need to update it to never
version .
sample code
<telerik:RadGrid ID="EmployeeRadGrid" GridLines="None" runat="server" Width="99.3%" PageSize="10" AutoGenerateColumns="False" AllowAutomaticInserts="True" AllowAutomaticDeletes="True" AllowAutomaticUpdates="True" AllowSorting="false" AllowPaging="True" OnPreRender="EmployeeRadGrid_PreRender" OnNeedDataSource="EmployeeRadGrid_NeedDataSource" OnBatchEditCommand="EmployeeRadGrid_BatchEditCommand" OnPageIndexChanged="EmployeeRadGrid_PageIndexChanged" OnPageSizeChanged="EmployeeRadGrid_PageSizeChanged" > <MasterTableView CommandItemDisplay="TopAndBottom" HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False" CommandItemSettings-ShowRefreshButton="false" ValidateRequestMode="Enabled" > <BatchEditingSettings EditType="Row" /> <Columns> <telerik:GridBoundColumn DataField="EmployeeNumber" HeaderStyle-Width="15%" HeaderText="Employee Number" UniqueName="EmployeeNumber" ItemStyle-Width="10%" ColumnValidationSettings-EnableRequiredFieldValidation="true"> <ColumnValidationSettings EnableRequiredFieldValidation="true" EnableModelErrorMessageValidation="true"> <RequiredFieldValidator ForeColor="Red" ErrorMessage="*Required" Display="Static" SetFocusOnError="true"> </RequiredFieldValidator> <ModelErrorMessage SetFocusOnError="true" /> </ColumnValidationSettings> </telerik:GridBoundColumn> <telerik:GridTemplateColumn UniqueName="OrganizationName" HeaderText="Organization" DataField="Organization" HeaderStyle-Width="10%"> <ItemTemplate> <%#Eval("Organization") %> </ItemTemplate> <EditItemTemplate> <telerik:RadComboBox runat="server" ID="OrganizationRadComboBox" Width="100px"> </telerik:RadComboBox> <asp:RequiredFieldValidator ForeColor="Red" ControlToValidate="OrganizationRadComboBox" runat="server" ErrorMessage="*Required" Display="Static"></asp:RequiredFieldValidator> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridDateTimeColumn UniqueName="Date" PickerType="DatePicker" HeaderText="Date" HeaderStyle-Width="14%" DataField="TransactionDate" DataFormatString="{0:MM/dd/yyyy}" DataType="System.DateTime"> <ColumnValidationSettings EnableRequiredFieldValidation="true"> <RequiredFieldValidator ForeColor="Red" Text="*Required" Display="Static"> </RequiredFieldValidator> </ColumnValidationSettings> </telerik:GridDateTimeColumn> <telerik:GridDateTimeColumn UniqueName="Time" PickerType="TimePicker" HeaderText="Time" HeaderStyle-Width="14%" DataField="TransactionTime" DataType="System.DateTime" DataFormatString="{0:HH:MM}"> <ColumnValidationSettings EnableRequiredFieldValidation="true"> <RequiredFieldValidator ForeColor="Red" Text="*Required" Display="Static"> </RequiredFieldValidator> </ColumnValidationSettings> </telerik:GridDateTimeColumn> <telerik:GridTemplateColumn UniqueName="Contact" HeaderText="Contact" HeaderStyle-Width="10%" DataField="Contact"> <ItemTemplate> <%#Eval("Contact") %> </ItemTemplate> <EditItemTemplate> <telerik:RadNumericTextBox runat="server" ID="radNumericTextBox" MinValue="0" NumberFormat-DecimalDigits="0" MaxValue="2147483647" Width="200px"> </telerik:RadNumericTextBox> <asp:RequiredFieldValidator ForeColor="Red" ControlToValidate="radNumericTextBox" runat="server" ErrorMessage="*Required" Display="Static"></asp:RequiredFieldValidator> </EditItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> <ClientSettings AllowKeyboardNavigation="true"> <%--<ClientEvents OnRowCreating="OnRowCreating" />--%> </ClientSettings> </telerik:RadGrid>hi
How should i hide Edit link based on Permission Type. For example, if PermissionType is User then i want to hide the Edit link in the grid. Here is my code.
<telerik:GridBoundColumn DataField="PermissionType" FilterControlAltText="Filter PermissionType column" HeaderText="Type" SortExpression="PermissionType" UniqueName="PermissionType">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridButtonColumn ButtonType="LinkButton" CommandName="editcolumn" FilterControlAltText="Filter column column" ItemStyle-ForeColor="Blue" ItemStyle-Font-Underline="true" HeaderText="Edit" Text="Edit"
UniqueName="editcolumn" >
<ItemStyle Font-Underline="True" ForeColor="Blue"></ItemStyle>
</telerik:GridButtonColumn>
Thanks a lot
Using version: 2016.1.113.40
If i upload a file using the upload button found in the image manager and the file that is uploaded doesn't appear on the first page of results, then the image isn't pre-selected after upload. This is an issue if there are a lot of files and/or pages of files to choose from. in almost all cases when a user uploads an image they want to insert that image, so having to go find it in the file list is an inconvenience. everything works fine if the image that is uploaded appears on the current page of file results. It is only when there are multiple pages of files and the image uploaded appears to appear at the end of the list that the image isn't pre-selected after upload. The only other thing of interest to note is that we use the EditorDialogs files because we have some minor customizations that we've made in the default dialogs.
I've created a video that you can watch that demonstrates this issue.
https://www.youtube.com/watch?v=39DnAbTI7Pc&feature=youtu.be&hd=1
Thanks!
-Mark

Hi,
I am retrieving file names and meta data from Web Service and have them in a C# List.
How can I set this list as source to populate them in FileExplorer?
Tried something like that with no success.
List<Telerik.Web.UI.Widgets.FileItem> files = new List<Telerik.Web.UI.Widgets.FileItem>();
files.Add(new Telerik.Web.UI.Widgets.FileItem(filetmp.Name, filetmp.Extension, filetmp.Length, filetmp.FullName, filetmp.FullName, filetmp.FullName, Telerik.Web.UI.Widgets.PathPermissions.Delete | Telerik.Web.UI.Widgets.PathPermissions.Read | Telerik.Web.UI.Widgets.PathPermissions.Upload));
FileExplorer1.Grid.Source = files;
thanks

Hi,
I have a radgrid bound to serverside datasource. It is configured for delayed loading and that works like a charm.I have column filters on the rad-grid. But
after coding for lazy loading the filter has stopped working. No request is triggered to the server when I type text in the filter textbox. I tried all the filter specific options on the grid and column. If I comment the 'lazy loading' code the filters start working again. I am guessing the control IDs getting changed somewhere?
Code pasted below for your reference. Please help.
Thank You
ASPX Javascript
<telerik:RadCodeBlock runat="server"> <script type="text/javascript"> var isInitialLoad = true; function pageLoad(sender, args) { if (isInitialLoad) { isInitialLoad = false; setTimeout(function() { var manager = $find('<%= ramManager.ClientID %>'); manager.ajaxRequest("BindTerms"); }, 1000); } } </script></telerik:RadCodeBlock>
ASPX Grid
<body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <telerik:RadAjaxManager runat="server" ID="ramManager"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID = "ramManager"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="pnlLoading"/> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="pnlLoading"/> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="btnAddOpportunity"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="pnlLoading" /> <telerik:AjaxUpdatedControl ControlID="msgPlaceHolder" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="lnkAddNew"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="pnlLoading" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="pnlLoading" runat="server" meta:resourcekey="pnlLoadingResource1"></telerik:RadAjaxLoadingPanel> <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="pnlLoading"> <div id="popup"> <div id="msgPlaceHolder" runat="server" /> <table style="width: 100%"> <tr> <td> <div> <telerik:RadGrid runat="server" AutoGenerateColumns="false" OnNeedDataSource="grdPTerms_NeedDataSource" AllowFilteringByColumn="true" ID="grdPTerms"> <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" ScrollHeight="290px"></Scrolling> </ClientSettings> <MasterTableView> <ColumnGroups> <telerik:GridColumnGroup HeaderText="AMAR" Name="Amar" HeaderStyle-HorizontalAlign="Center"> </telerik:GridColumnGroup> </ColumnGroups> <ColumnGroups> <telerik:GridColumnGroup HeaderText="My Report License" Name="MYReportLicense" HeaderStyle-HorizontalAlign="Center"> </telerik:GridColumnGroup> </ColumnGroups> <ColumnGroups> <telerik:GridColumnGroup HeaderText="Demo Pack" Name="DemoPack" HeaderStyle-HorizontalAlign="Center"> </telerik:GridColumnGroup> </ColumnGroups> <ColumnGroups> <telerik:GridColumnGroup HeaderText="POC Pack" Name="POCPack" HeaderStyle-HorizontalAlign="Center"> </telerik:GridColumnGroup> </ColumnGroups> <ColumnGroups> <telerik:GridColumnGroup HeaderText="Quick Service" Name="QuickService" HeaderStyle-HorizontalAlign="Center"> </telerik:GridColumnGroup> </ColumnGroups> <ColumnGroups> <telerik:GridColumnGroup HeaderText="VirtDB License" Name="VirtDB" HeaderStyle-HorizontalAlign="Center"> </telerik:GridColumnGroup> </ColumnGroups> <Columns> <telerik:GridBoundColumn DataField="i_id" UniqueName="i_id" Display="false" HeaderText="ID"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="i_partner_id" UniqueName="i_partner_id" Display="false" HeaderText="ID"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="s_partner" AllowFiltering="true" CurrentFilterFunction="Contains" FilterDelay="1000" HeaderText="Name" HeaderStyle-Width="110px"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn HeaderText="Advance" ColumnGroupName="Amar" AllowFiltering="false" UniqueName="ColMyAmarAdvance" HeaderStyle-Width="55px"> <ItemTemplate> <telerik:RadNumericTextBox ID='t_am_poapproved' runat="server" MaxLength="2" NumberFormat-DecimalDigits="0" Text='<%# Bind("am_poapproved")%>' Width="40px" EnabledStyle-HorizontalAlign="Right"> </telerik:RadNumericTextBox> <span>%</span> <span style="color: red; font-size: 12px; font-weight: bold">*</span> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="License Approval" ColumnGroupName="Amar" AllowFiltering="false" UniqueName="ColAmarFinal" HeaderStyle-Width="50px"> <ItemTemplate> <telerik:RadNumericTextBox ID="t_am_final" runat="server" MaxLength="2" NumberFormat-DecimalDigits="0" Text='<%# Bind("am_final")%>' Width="40px" EnabledStyle-HorizontalAlign="Right"> </telerik:RadNumericTextBox> <span>%</span> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> <GroupingSettings CaseSensitive="false" /> </telerik:RadGrid> </div> </td> </tr> </table> </div> </telerik:RadAjaxPanel> </form></body>Irrelevant code is removed.
Code Behind
protected void Page_Load(object sender, EventArgs e){ ramManager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(RadAjaxManager1_AjaxRequest);}void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e){ if (e.Argument == "BindTerms") { grdPTerms.Rebind(); }}protected void grdPTerms_NeedDataSource(object sender, GridNeedDataSourceEventArgs e){ if (Page.IsPostBack) { List<Partner> pList = (List<Partner>)Application["QRPartner"]; SrvPaymentTerm srvPT = new SrvPaymentTerm(); DataTable dt = srvPT.Select(pList); grdPTerms.DataSource = dt; } else { DataTable dt = new DataTable(); grdPTerms.DataSource = dt; }}
I am using version 2016.1.225.40 of your asp.net for ajax controls.
I'm using ClientExportManager to export a PDF of a section of a page (a radgrid with page breaks).
It is exporting correctly, but when the browser gets the file, the filename is coming up as "undefined".
I've tried various things; nothing is working. The telerik tags and javascript are below.
I've tried it without the PdfSettings section in the clientexportmanager.
<telerik:RadClientExportManager ID="PDFExportManager" runat="server" OnClientPdfExported="onClientPdfExported">
<PdfSettings FileName="MetricSet" PageBreakSelector=".pdf-page-break" />
</telerik:RadClientExportManager>
I've tried the javascript by passing a pdfSettings to the export, and also by using set_pdfSettings. I get the same problem either way.
function onClientPdfExported(sender, args) {
document.getElementById("modalDivPDF").style.display = "none";
document.body.style.cursor = 'default';
}
function pdfPageSection() {
document.getElementById("modalDivPDF").style.display = "block";
document.body.style.cursor = 'wait';
var pdfSettings = {
filename: "MetricSet",
margin: { top: 25, left: 15, bottom: 10, right: 15 },
pageBreakSelector: ".pdf-page-break"
}
$ = $telerik.$;
var $dashboardPanel = $(".DashboardPanel");
var manager = $find("<%= PDFExportManager.ClientID %>");
manager.set_pdfSettings(pdfSettings);
manager.exportPDF($dashboardPanel); //, pdfSettings);
}
What am I doing wrong? Why do I get "undefined" for my filename???
Thanks,
Brent

Hi,
I am using the radgrid to provide my customer with a data entry form. The customer is very used to excel and the way it works, and like similar functionality. Right now the RadGrid is pretty much doing what I want, I can move around with the keys in the grid to different rows. However, as most of the data is numeric, when I press the down key I both go down in the grid AND the value of the numeric field I am on at that point decreases. Is there an easy way to disable that if I press the down key on a numeric field that the value decreases by one?

Hey everyone,
I wasted my entire day with this issue (a very very small issue) and just wanted to give you a warning if you run into the same thing.
When you are using the RadGrid and creating datakeys, these datakeys seem to go into the session of the program. That means is you have a datakey named "mykey" in your RadGrid and you have a session variable declared in your aspx.cs as Session["mykey"] = "randomstuff", you are going to run into a very annoying problem.
Mods - possibly add this little snippet to the documentation if it does not exist?
