telerik

How to use post(update) of data having child objects in them

↘锁芯ラ 提交于 2019-12-12 06:09:00
问题 My data looks something like this. "Name":"name16", "Description":"Sampledatatest", "Remarks":"testat759", "ApprovalStatus":"Waiting", "Curve": [ {"SLength":185,"StrokeVolume":200,ParentId: 0}, {"SLength":185,"StrokeVolume":200,ParentId: 0}, {"SLength":185,"StrokeVolume":200,ParentId: 0}, {"SLength":185,"StrokeVolume":200,ParentId: 0} ] And this is my update function function updatep(e) { var Data = { PId: e.model.PId != "" && e.model.PId > 0 ? e.model.PId : 0, Name: e.model.Name, Description

difference between dynamic hyperlink column and hyperlink column

只愿长相守 提交于 2019-12-12 06:08:44
问题 what is the exact difference between the above mentioned. also i am not able to understand what is bound field? i mean i had used it number of times but never exactly understood the same. please explain me by giving example that what difference it will create if i use one in place of other? 回答1: You can probably get the same results with built-in hyperlink grid column and a template column which hosts an asp hyperlink. In case you are talking about the telerik AJAX grid, you can see the

How to get radlistview items if you use paging

回眸只為那壹抹淺笑 提交于 2019-12-12 05:36:51
问题 I'm using radlistview in my asp.net project . The problem that when I have to get all items of radlistview it return only items of the current page. Example : radlistview2.Items.ToList(); Output : I got only 10 elements which are in the first page My Question is : How To get all items in radlistview ??? 回答1: Please try with the below code snippet. ASPX <telerik:RadListView ID="RadListView1" runat="server" OnNeedDataSource="RadListView1_NeedDataSource" AllowPaging="true" PageSize="2">

call child control on parent page for an update of an updatepanel

半世苍凉 提交于 2019-12-12 05:31:22
问题 I am using a RadTabStrip for 2 tabs. I would like OnTabClick for the tab to do an update of the updatepanel on the page. The problem I am having is its not finding the control on the child page. My logic for the parent page protected void tabClick(object sender, RadTabStripEventArgs e) { if (e.Tab.SelectedIndex == 0) { UpdatePanel tab1 = (UpdatePanel)Page.FindControl("up_EntirePage_Tab1"); tab1.Update(); } else { UpdatePanel tab2 = (UpdatePanel)Page.FindControl("up_EntirePage_Tab2"); tab2

How to re-use already bound data in a user control on post back

一笑奈何 提交于 2019-12-12 05:05:16
问题 I have a user control that I dynamically add to a Panel . I also have a couple of other functionality in the aspx page like search which is inside an update panel that causes the page to post back. From what I have read so far is that dynamic control needs to be bound on each page load. This works fine but the issue is that the user control takes a bit of time (like 3s) and thus all request operations takes longer because the user control is being bound every time. If I load the user control

RadGrid make field invisible on Edit

时光怂恿深爱的人放手 提交于 2019-12-12 04:48:43
问题 <telerik:RadGrid runat="server" ID="rdReport" AutoGenerateColumns="false" AllowPaging="true" Skin="Metro" OnItemCommand="ItemCommand" OnItemDataBound="rdReport_ItemDataBound" OnPreRender="rdReport_PreRender" DataSourceID="FountainSource" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true"> <MasterTableView DataKeyNames="ID" CommandItemDisplay="None"> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" /> <telerik:GridBoundColumn DataField="LocName" HeaderText="Location"

Render Partial View in Correct Location

心已入冬 提交于 2019-12-12 04:48:35
问题 Trying to: Place a partial view within a telerik tabstrip. Problem: The view is being displayed above the tab strip instead of within the first tab. What I have tried: If I use RenderPage instead of RenderAction then the view correctly appears inside the tabstrip however then the controller does not get called or load the model for the gridview. Code so far: Partial View: @model IEnumerable<MyModel> @{ ViewBag.Title = "Index"; } @*My code to load a GridView*@ View containing tab strip: @{

SVG content of Telerik RadHtmlChart

↘锁芯ラ 提交于 2019-12-12 04:39:21
问题 Currently, I have an aspx page in vb that launches a RadHTMLChart and I want to grab the SVG code of that chart. However, since the chart is rendered client-side, I have to launch this aspx page and then grab the SVG code from a second aspx page during postback. Currently, I am using Server.Execute (firstpage.aspx) to grab the SVG code but this does not work. I want to use the SVG to generate a PDF document but the Server.Execute command seems to run in the background and the code that comes

Telerik radgrid doesn't remember page number

折月煮酒 提交于 2019-12-12 04:05:54
问题 I have a telerik radgrid-control on my page for showing a list of articles. If I click a page, then an article and then back to the list again I am back at the first page instead of the one I was at before. Is there a solution for this? 回答1: I'm assuming you're doing a postback and things are server side... This is a 2 step process... First in the OnClick event for clicking on an article, put the page index into a session variable. Second, in the RadGrid's PreRender event get the page index

Telerik Radgrid Can we save a unique value against each column?

∥☆過路亽.° 提交于 2019-12-12 03:16:15
问题 I am generating columns dynamically in my RadGrid, so column count and their names are generated on the fly and so is the datatable that the grid is to be bound to. Each column either represents an object in my system, or an empty one for user to create a new object. Each object is identified by a unique value property. I would like to set this value to the column, so, when the grid is edited, I would like to use this value and update the object. I am open for suggestions. For now I am