telerik

IndexOf not Supported in IE8 Browser

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-19 05:57:29
问题 I have cascaded dropdown in my application, cascaded using jquery, now my problem is it is working smoothly with IE9, Firefox, Opera and Safari but does not work with any of browsers like IE7,IE8 etc. I surfed for the problem and found that error is due to indexOf in my jquery code, i tried it by removing indexOf but still it is giving the same error.. Note: Is there any work around in telerik script to remove indexOf, coz new only i can find indexOf in their script. Below is the Code:

How do I create a datatemplate with content programmatically?

橙三吉。 提交于 2019-12-18 19:04:52
问题 I want to do the following at runtime in code: <DataTemplate x:Key="lightGreenRectangle"> <Rectangle Fill="LightGreen"/> </DataTemplate> So far I've got: public DataTemplate GetColouredRectangleInDataTemplate(Color colour) { DataTemplate dataTemplate = new dataTemplate(); return dataTemplate; } Help? I know this isn't the most elegant way of styling a control, but the component I want to specify a colour for has a property called "PointTemplate" of type DataTemplate. 回答1: If for whatever

Kendogrid destroy() and recreate the table on a new datasource, why do the old table columns still exist?

别来无恙 提交于 2019-12-18 11:48:18
问题 When invoking destroy() in KendoUI Grid and then recreate the table on a new DataSource : why do the old table columns still exist? The only element here that stays the say is the element. How do I tell the grid to read the new datasource columns (it reads everything else correct). (if I make 2 different elements, they both populate properly but I rather just keep 1 element and replace the elements table by destroy and reinit) 回答1: Most probably this is because you are not clearing the

Referencing nested control

拜拜、爱过 提交于 2019-12-18 09:34:41
问题 I have two gridviews - one nested in the other - and I am trying to set the datasource of the child grid programmaticly, but am not sure how to reference it. <telerik:RadGrid ID="RadGridResults" runat="server" AutoGenerateColumns="true" OnNeedDataSource="RadGridResults_NeedDataSource"> <MasterTableView> <NestedViewTemplate> <telerik:RadGrid ID="RadGridDetails" runat="server" AutoGenerateColumns="true"> </telerik:RadGrid> </NestedViewTemplate> </MasterTableView> </telerik:RadGrid> I have tried

How to open window in the same View in MVC 4?

隐身守侯 提交于 2019-12-17 21:22:41
问题 I have a Telerik MVC grid in my view with a "Download" custom button. This button redirects to my Download action and this download action redirects me to the download view which shows me some images in window mode. I would like to open this window with the grid 'under' it, in the same page. My code: c.Bound(column => column.IsStock); c.Bound(column => column.Version); c.Command(cmd => cmd.Custom("Download") .Text("Download") .DataRouteValues(d => { d.Add(k => k.IDDocument); d.Add(k => k

Show PDF in RadPdfViewer from URL in WinForm

雨燕双飞 提交于 2019-12-14 04:23:13
问题 I'm using RadPdfViewer first time in my WinForm application. I want to load pdf from url (e.g. http://10.70.0.60/PDF/sample.pdf ). Its working with local file but not with website url of PDF file, I have mentioned in example. Kindly please suggest me how I load PDF from url in RadPdfViewer Control.Kindly let me know if any other detail required. Thanks in advance 回答1: I have solved the issue by my self. Hope this answer will save next person time. Below code is working fine for me. using

How to Hide or Remove Zero values in line series RadChart

孤者浪人 提交于 2019-12-14 01:28:01
问题 I'm using Radchart,i want to remove the line series which is showing value zero.Is there any possible way to hide or remove the value showing zero.Please provide any solution or code. Thanks in Advance. 回答1: After 2 days of struggle i have found the solution how to hide or remove the line series which contains zeros.I have four line series in that 4th line series contains zero's i which i want to hide those zero values and i have done. before implementation After implementation code //-------

Button trigger event GotFocus repeattly

女生的网名这么多〃 提交于 2019-12-13 23:09:04
问题 I have created a set of button and attach Click event and GotFocus event to them. for (int i = 0; i < NumberOfQuestion; i++) { RadButton button = new RadButton(); // radButton1 // button.Anchor = AnchorStyles.None; button.Font = new Font("Segoe UI", 8.25F, FontStyle.Bold); button.Location = new Point(65 * i + 15, 10); button.Name = "btn_cauhoi" + (i + 1); button.Size = new Size(60, 35); button.TabIndex = 1 + i; button.Text = "Câu " + (i + 1); button.Tag = (i + 1); button.Click += Button_Click

How to get a calculated value from a compiled LambdaExpression?

与世无争的帅哥 提交于 2019-12-13 20:52:52
问题 I'm currently working on a project at work, and we are using the Telerik RadControls for Silverlight. In their Q1 2011 release, they added a new control called the Rad Expression Editor. In the Rad Expression Editor, you can pass in an object and create formulas (or expressions), and the editor window will give you a preview of the result of the expression. I've spoken with Telerik about this and they intentionally did not expose the result of this, but mentioned that I could use

Telerik report showing same data for all columns created dynamically

狂风中的少年 提交于 2019-12-13 20:43:26
问题 I have created a telerik report using Visual Studio and set the Datasource from the DataTable. I am creating the columns dynamically at runtime using Telerik.Reporting.TableGroup. Now the problem I am having here is that the report showing the same data for all of the fields and when I debug it is setting different fields for different. The code I am using is as follows: private void Report4_NeedDataSource(object sender, EventArgs e) { DataTable dt = new DataTable(); dt = SalesReport