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

I have a permission system that I’m using for my RadFileExplorer and Hiding various menu items and buttons. The problem is the options appear to be loading in some cases after the RadFileExplorer’s ExplorerPopulated, ItemCommand, and Prerender.

I am doing something like the following to remove the item:

if (((RadFileExplorer)(sender)).GridContextMenu.Items.Any(d => d.Value == "Rename"))
       {
           ((RadFileExplorer)(sender)).GridContextMenu.Items.Remove(((RadFileExplorer)(sender)).GridContextMenu.Items.First(d => d.Value == "Rename"));
       }

Similar code is working for the File Grid, but I can’t seem to get server code to apply to the FileTree, can I attach this code to the prerender the FileTree? Or does this disappear? DO I have to do this on the client side?

I’ve tried attaching to the PreRender of the FileTree and the FileTree’s Context Menu’s prerender, But I’m guessing that stuff gets overridden.  At what point should I try to reattach these PreRender Overrides?

Or better yet is there an easier way of removing the FileTree’s Context menu’s specific items?

Vessy
Telerik team
 answered on 09 Apr 2020
2 answers
241 views

Hello,

 

I am using RadGrid for Bulk Update at Client Side.

I have a Dropdown in the Template column and inspite of me selecting an item by the time in click "Save changes" the value of that column is going as NULL in the Insert.

I have similar Template columns with RadDropdown and RadCombobox.... they all work fine. There is very minimal server side code to adjust the width of the columns.

In the attached file issue template column is "Specialcategory_FundingID"

 

Kindly post your suggestions.

 

 

 

 

Attila Antal
Telerik team
 answered on 09 Apr 2020
4 answers
330 views
Hi,

I have some problem to set the PageSize property from client side. The scenario is to set the PageSize dynamically calculated by window size, to handle different screen resolutions and window sizes. So no scrolling is needed.
Is there any solution?

Best regards,
Ralf
www.d-velop.de

Rumen
Telerik team
 answered on 09 Apr 2020
6 answers
948 views
Hi
I have RadGrid Control on the page which consist more then 100 pages.
I have to highlight current selected page so that business user can have track of current page .

Can you suggest for the same.


Thanks
Shrirang
Rumen
Telerik team
 answered on 09 Apr 2020
1 answer
459 views
Hello,

If you select an item in RadMultiSelect, all server events works (OnSelectionChanged, OnItemSelected). If you deselect the same item, the events are not triggered (OnSelectionChanged, OnItemDeselected).
Then If you select the item again, it is triggered again.
Same works with deselecting. If you start with deselecting the item, events are triggered, if you select it again, they are not.
My RadMultiSelect is bound to RadAjaxManagerProxy, the events are noticed, there is loading animation for a while, but triggers are not working.

You can replicate this bug on your demo here:
https://demos.telerik.com/aspnet-ajax/multiselect/serversideevents/defaultcs.aspx
Peter Milchev
Telerik team
 answered on 09 Apr 2020
4 answers
191 views
i have this issue  that i just got what is causing in and it is the rad window..and what is annoting is that it doesnt happen evey time ..i have a rad grid with 1 column as command column when clicked a radwindow will apear using this code
Dim window1 As New Telerik.Web.UI.RadWindow 
            window1.Modal = True 
            window1.Title = "Assign Team" 
            window1.VisibleTitlebar = True 
 
            window1.Width = 500 
            window1.Height = 500 
            window1.DestroyOnClose = True 
            window1.NavigateUrl = "~/assign_team_mod.aspx" 
            windowmanager.Windows.Add(window1) 
          
            window1.VisibleOnPageLoad = True 

when i just close the window i press edit or do anything in my page that causes a postback opperation i get the following error!!
sys.webforms.pagerequestmanagerservererrorexception: failed to load viewstate.  the control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. for example when adding the controls dynamically, the controls added during the post-back must match the type and position of the controls added during the initial reques 

i posted this problem in the grid forum but i just realised that the cause was closing the window so..any idea of what am i doing wrong?
Kris
Top achievements
Rank 2
 answered on 07 Apr 2020
2 answers
204 views

My users need to copy and paste a link to their file that we would like to use fileexplorer to manage.

Is there an event where this could be shown perhaps outside of the control , or in the path bar?

 

Example:

Path bar currently shows user  "/MyFiles/"  when "My Picture.jpg" is selected

I would like to show  "https://www.foo.com/abx345/MyFiles/My%20Picture.jpg" somewhere on the page.  It doesn't matter if it is inside the control or outside.

 

Thanks.

 

Vessy
Telerik team
 answered on 07 Apr 2020
3 answers
294 views
Hi, I would like to include a GridButtonColumn in my grid which, when clicked, it would reset some fields of my database from code behind.  However, I would like to show the user a RadConfirm window such as the one that appears when you press the delete icon in the delete button column, that asks the user if he/she is sure that he wants to execute such reset.  If the user answers "no" or "cancel" then the code behind would not be executed.

Is there anyway I can do this or any tutorial or code library that I can use to accomplish this??

Thanks in advance,
Manuel
Dave
Top achievements
Rank 1
 answered on 07 Apr 2020
8 answers
696 views
I am using the IMage gallery successfully except for a few images which are higher than they are wide, and when rendered in the control, it rotates them sideways. I want to prevent this without modifying the image. How can I get the control to display the image
Peter Milchev
Telerik team
 answered on 07 Apr 2020
6 answers
2.1K+ views

I've been working with an application using a fairly old version of Telerik (2012.3.1205.40 , looks like) and I've been looking for a way to modify the style of the column headers in exported Excel files made from a RadGrid.  I've tried to attack this a number of ways, but the ExportCellFormatting event and related don't seem to cover the column headers, and attempting to manipulate the HeaderStyle of the RadGrid/the MasterTableView has also had no effect on how the exported column headers look.  I've had no problems styling the actual data fields, just the headers.  I'm sure I'm missing something very obvious to do this, but haven't found anything clear to point me at it in various searches online and looking through documentation/the API.

The function firing off the export is straightforward:

protected void lnkExportExcel_Click(object sender, EventArgs e)
{
    radgridResult.ExportSettings.ExportOnlyData = true;
    radgridResult.ExportSettings.OpenInNewWindow = true;
    radgridResult.ExportSettings.IgnorePaging = true;
...
    radgridResult.MasterTableView.ExportToExcel();
}

The omitted piece is just some wrangling of the exported file's name and shouldn't matter.

TIA!
Evan
Top achievements
Rank 1
 answered on 07 Apr 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?