telerik-grid

Save data from telerik radgrid to database

萝らか妹 提交于 2021-02-11 16:49:52
问题 Hi I'm new using telerik rad controls an asp development and I need some help. I have a radGrid wich is populated with data when a button is pressed, I found a solution here in the forum for selecting a row of the radGrid and taking the values of each cell, but now I want to know how to save this values into my database using entity framework. What I've been trying is to put the values into strings and then in my saving method call the strings, but when I execute the program I add two

Save data from telerik radgrid to database

 ̄綄美尐妖づ 提交于 2021-02-11 16:47:17
问题 Hi I'm new using telerik rad controls an asp development and I need some help. I have a radGrid wich is populated with data when a button is pressed, I found a solution here in the forum for selecting a row of the radGrid and taking the values of each cell, but now I want to know how to save this values into my database using entity framework. What I've been trying is to put the values into strings and then in my saving method call the strings, but when I execute the program I add two

Get column index from column name in Kendo grid in Javascript

流过昼夜 提交于 2021-02-08 12:39:12
问题 Is there a way we can find out the index of column in grid, if we know the column name in Kendo grid? e.g. EmployeeID| Name 123 | John I want to know the index of 'Name' field i.e. 1 in the grid. Any suggestions. Thanks. Sanjeev 回答1: Please try with the below code snippet. <!DOCTYPE html> <html> <head> <title>Jayesh Goyani</title> <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2015.2.902/styles/kendo.common-bootstrap.min.css" /> <link rel="stylesheet" href="https://kendo.cdn

How to bind data to radcombobox inside grid EditItemTemplate

谁说胖子不能爱 提交于 2021-01-29 15:47:28
问题 I try to bind data to a radcombobox from server side: Here is my grid: <telerik:RadGrid ID="gvWebUsers" runat="server" OnNeedDataSource="gvWebUsers_NeedDataSource" OnItemCreated="gvWebUsers_ItemCreated" Skin="Gray" AutoGenerateColumns="false" OnItemDataBound="gvWebUsers_ItemDataBound" AllowAutomaticUpdates="true" AllowPaging="true" CssClass="SettingsGrid" Width="99.7%"> <MasterTableView DataKeyNames="UserID" PageSize="15" EditMode="InPlace" > <Columns> <telerik:GridTemplateColumn HeaderText=

RadGridView detect CellClick event button

冷暖自知 提交于 2020-01-24 11:08:09
问题 How can I detect which mouse button was pressed in event CellClick, or how can I detect which cell was pressed in event MouseClick. 回答1: You can detect which cell was clicked by using Mouse Click event. Then you have to cast sender to RadGridView, and then use CurrentCell property. GridViewCellInfo dataCell = (sender as RadGridView).CurrentCell; If you want to which mouse button was clicked use: if (e.Button == MouseButtons.Right) { //your code here } 回答2: I have written this answer thinking

how to create row rapidly - Telerik Kendo UI MVC grid pop-up mode

感情迁移 提交于 2020-01-16 15:46:14
问题 I have a grid similiar that. But I don't want to close pop-up window; after clicking update button, i want to save record and clear all (or some) fields and continue to create (other) new record. So user can re-insert new record rapidly (multiple insert in the same window). Finally user click the "cancel" (or close) button and popup will be closed. How can I do that. 回答1: Subscribe to Grid Edit/Save javascript events and follow the example below var _PreventWindowClose = false; var

How to send IEnumerable list from Ajax to Controller

十年热恋 提交于 2020-01-13 05:02:33
问题 I have a web application in MVC3 and i'm using Telerik Grid Batch Editing. Batch Editing have save changes button which returns UPDATED COLUMNS to controller IEnumerable list like [GridAction] public ActionResult Update(IEnumerable<Customers> updated) { ///user codes } but how to collect updated rows and make array send like IEnumerable list from Javascript with ajax to Controller ? EDIT I'm putting my view png I just want to send updated rows data to Controller and Save Changes button can do

How to get scrollLeft() from kendoVirtualScrollable

笑着哭i 提交于 2020-01-06 06:06:57
问题 I have a kendoGrid with virtual scrolling. Now i am trying to go to a certain position on the grid. I was able to get the top position by using: //Get the virtualScrollable var vs = mainGrid.wrapper.find('.k-grid-content').data('kendoVirtualScrollable'); var scrollTop = vs.verticalScrollbar.scrollTop(); //go to the position $("#mainGrid div.k-virtual-scrollable-wrap").animate({scrollTop: scrollTop}, 0); $("#mainGrid div.k-scrollbar-vertical").animate({scrollTop: scrollTop}, 0); which works

Telerik grid not rendering dropdownlist in column MVC3

僤鯓⒐⒋嵵緔 提交于 2020-01-03 06:05:09
问题 I have a problem with the Telerik grid that I can't seem to find quite the exact problem anywhere. I'm following the demo from their site for Client Side Edit Templates. When going into edit mode it immediately dies saying select method is undefined from this js statement: <script type="text/javascript"> function onEdit(e) { $(e.form).find('#PageList').data('tDropDownList').select(function (dataItem) { return dataItem.Text == e.dataItem['PageName']; }); } </script> Here is my view: <%@

Set default value of RadDatePicker to NULL when date is not set

你。 提交于 2019-12-31 07:32:02
问题 I'm binding the RadDatePicker to a viewModel dateTime property. when the property is null in database i get 01/01/0001. How to i change this behavior to just leave the date field blank.. example: In database ===> experiation_date : NULL In View(GUI) ===> experation_date : 01/01/0001 Expected Result ===> experation_date : {Blank} 回答1: Set the SelectedDate to null (and not DBNull): RadDatePicker1.SelectedDate = null; and in xaml set DateTimeWatermarkContent to the empty string: <telerik