Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
154 views

Is there a purpose of the Save Icon on the Home tab toolbar?

I would like to capture some kind of event when a user clicks this icon to direct it to my SaveWorkbook method override in my custom provider.

But, I don't see any such method implemented that can override.

If no ability exists to do this, why then is the icon even there?

 

Doncho
Telerik team
 answered on 21 Apr 2023
0 answers
103 views

So I have a organization chart and a button. When I click on the button, I will fill in a DataTable stored in ViewState to be the data source of the org chart. Since I'm still having the problem in another post that nobody replied yet: Databinding keeps disappearing when post back in UI for ASP.NET AJAX | Telerik Forums  So I add some handling in Page_Load to avoid the org chart from becoming blank.

My Page logic is as follows:


<Telerik:RadButton ID="btn1" OnClick="btn_click">
...
<Telerik:RadOrgChart ID="OrgChart1">



protected DataTable table1 { get { if (ViewState["table1"] != null) return (DataTable)ViewState["table1"]; else

return null; } set { ViewState["table1"] = value; } } protected DataTable table2 { get { if (ViewState["table2"] != null) return (DataTable)ViewState["table2"]; else return null; } set { ViewState["table2"] = value; } } protected void Page_Load(object sender, EventArgs e) { if (!PostBack) // do something

if (table1 != null && table2!=null) { OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldID = "aaa"; OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldParentID = "bbb"; OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataCollapsedField = "ccc"; OrgChart1.RenderedFields.NodeFields.Add(new OrgChartRenderedField() { DataField = "A" }); OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataSource = table1; OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldNodeID = "aaa"; OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldID = "ddd"; OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataSource = table2; OrgChart1.DataBind(); } }



protected void btn_click(object sender, EventArgs e) {

               // do something to provide data for table1 and table2

                OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldID = "aaa";
                OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldParentID = "bbb";
                OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataCollapsedField = "ccc";
                OrgChart1.RenderedFields.NodeFields.Add(new OrgChartRenderedField() { DataField = "A" });
                OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataSource = table1;

                OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldNodeID = "aaa";
                OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldID = "ddd";
                OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataSource = table2;

                OrgChart1.DataBind();

}

    

And then, when the page is post back, suddenly there are duplicate group names in the org chart as you can see in the screenshot.

Can somebody help me?

yuki
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 21 Apr 2023
0 answers
107 views
Is it possible to add a radbutton to org chart nodes? I would like to add a button to org chart nodes, and when the button is clicked, something happens to the webpage. I looked through demos and didn't find anything related? Could someone tell me if this is feasible? Thanks.
yuki
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 21 Apr 2023
0 answers
92 views

I am using telerik version 2014.3.1024.45 with Asp.Net Webforms and Recently i have upgraded to jQuery Version from 2.0.3 to 3.6.3.

 

i am using Telerik Grid control in my application. Every row in a grid has a checkbox. if clicked on checkbox or on a row, that particular row will get selected. This functionality is used to work with jQuery 2.0.3. but after upgrading jQuery Version to 3.6.3, row is getting selected only when clicked on row, row is not getting selected when clicked on checkbox.

S
Top achievements
Rank 1
 asked on 21 Apr 2023
0 answers
227 views

Hi All,

I am trying to provide read-only access to certain users. This user should not be able to remove the uploaded file. 

How do I hide/disable the remove button from server side? 

 

 

Neil
Top achievements
Rank 2
 updated question on 20 Apr 2023
0 answers
106 views

So we have BatchEdit working and used in multiple pages. On one though one of the fields that gets edited is via a RadComboBox. No issues with changing, submitting with a CommandButton to save. All good. The only issue is that when you change the item in the Combo a little red glyph shows up in the cell upper left corner to indicate the data is changed. This happens with other cells as well and is expected and good.

When we click the save button the BatchEditCommand event fires and the data is saved.  If the Combo box was changed the data is changed correctly, but the Red Glyph doesnt go away. Even if we rebind the grid the glyph doesnt go away. If we change only cells that are just textboxes the Red Glyph goes away after the save.

What are we missing?

Keith
Top achievements
Rank 1
Iron
Iron
 asked on 19 Apr 2023
0 answers
164 views
In my application, there is Telerik combobox.
which gets the user email as input and lists the available user emails

When manually typing the value it gave the exact match 

But when there is some change like using small letters instead of first letter caps
radcombobox not returning the exact match.

your suggestions are appreciated

Thanks
Vaithilingam
Top achievements
Rank 1
 asked on 19 Apr 2023
0 answers
117 views

I've download the demo code for the Predefined table styles code, and I noticed that the CSS dropdown isn't limited to the classes in that document. Basically, any class on the page hosting the editor becomes available in there.

So if I add style .aardvark to the head of the page hosting the RadEditor, it becomes the first option in the CSS Dropdown despite it not appearing in TableLayoutCss.css. We have a lot of classes across our application that are applied to every page we render, so we don't want them all appearing in here.

In my case, the HTML users define here is rendered to PDF in the back office by a different tool, so I don't want any classes available for selection in the front end that aren't specifically in TableLayoutCss.css.

Has anyone hit this problem and managed to overcome it or is this expected behaviour of the TableLayoutCssFile option? As things stand, I'm having to tell the users to avoid using the CSS dropdown and go for the 'More Table Styling' button instead, but this clearly isn't as portable a solution as it should be!

Paul
Top achievements
Rank 1
 asked on 18 Apr 2023
0 answers
438 views

I inherited an intranet that was developed by one of our in-house developers years ago, he has since left.  When he left his duties passed on to someone else and after various forms of attrition, have fallen to me. Any documentation he may have provided never made its way down to me so I'm completely flying blind. Anyway, I had managed to fix an issue with one of the other Telerik pages because I found the section in the aspx that referred to the <asp:SqlDataSource and then was followed by a bunch of SQL code so I was able to update the parts of that that needed to be updated and that one works fine now. But a new problem has creeped up with another page that looks like it pulls data from our ERP regarding timesheet data. I would assume it must be getting that from some sort of SQL statement as that is the only way into that system but there is no SQLDataSource tag on this page.

Where should I be looking in the apsx file to identify where the data is coming from for that page? Since there is no SQL call on the page itself I assume that its calling something else and that has the SQL query in it, but I can't find it for my life.

Thanks.

Brian
Top achievements
Rank 1
 asked on 14 Apr 2023
2 answers
314 views
I have a RadPanelBar with an RadPanelItem collection declared in the markup (it's not built dynamically).  On the page load in the codebehind, I disable all but the first panel item.  I disable panel items like this:

RadPanelBar1.FindItemByValue("Quantity").Enabled = false;

Then, when a RadGrid row is double-clicked in first, enabled RadPanelItem, I use the RadGrid's client-side API to enable the next panel item via Javascript.  The Javascript performs as expected and enables the panel item, but all of the controls within the newly enabled panel are disabled.

I just discovered this after making a modification to a page.  Previously, we set these panels to disabled via Javascript using the following code:

panel.findItemByValue("PriceStructure").disable();

This disabled only the panel item itself and not the controls within the panel item.  However, now we need to disable these in the codebehind, but all the controls within the item become disabled.

How do I keep this from happening when disabling panel items in the codebehind?
Attila Antal
Telerik team
 answered on 13 Apr 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?