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

I have a situation where I have some very long columns. In ItemDataBound I just substring the first 80 characters and put it in the item.text, and the full in the ToolTip. The problem is when I export to Excel I want to get the entire contents of the data item, not the truncated version that's in the cell. How can I avoid this It seems that in ItemDataBound I can't test on 

The other option I've thought of is to somehow put the entire contents of the data item in the cell and maybe not have it wrap.

What would be the recommended solution?

Rodney

 

Viktor Tachev
Telerik team
 answered on 28 Oct 2016
5 answers
721 views
Hi all,

      I am having a radgrid with a grid button column meant for playing an audio file. I gave the command name as "Play" and in the grid_itemcommand event handler i tried to open a radwindow having the media player from code behind. But since my grid is configured with rad ajax manager and rad ajax loading panel to make ajax postbacks i am not getting the radwindow. When i removed the radajax manger and loading panel the window appears as expected.

 But i dont want the page to get reloaded for even for a sort operation. Is there anything similar to the triggers of update panel for loading panel or any other ways please suggest.

Regards,
Saravanan K
Pavlina
Telerik team
 answered on 28 Oct 2016
7 answers
4.6K+ views
Hi,

I have an empty RadGrid. A message appears by default when the grid is empty : "No records to display". I would like to change the content of the message. How may I to do please ?

Thank you in advance,
Viktor Tachev
Telerik team
 answered on 28 Oct 2016
8 answers
744 views

Hello,

I am using a RadDropDownTree control.  And my items look like this:

 

1. Statements
        -Allocations
        -Tax
2.Other
        -Other Reports
        -Tax Estimates

I want to prevent the user from selecting the parent items.  In the above example, that would be the "Statements" and "Other".  I want users to be able to only select the children.

Another issue i am having is on child selection, the control does not collapse it's dropdown.

Any idea on how to achieve this?

Thanks,

 

Crackneo
Top achievements
Rank 1
 answered on 27 Oct 2016
5 answers
160 views

I have noticed some very peculiar behavior when setting the folder of the FileExplorer from a record selected on a RadGrid.  The behavior is consistent so should be able to be determined why.

Each row on the RadGrid points to a project which has as one of its not visible fields a url to its project folder on AWS.

The code to change the folder location is contained in a method that is called from RadGrid2_ItemCommand.

The FileExplorer shows the contents of the changed folder all the time but with one exception.  If the currently selected Project is the first on the list, then the FileExplorer does not show the contents of the new folder whenever a different Project is selected.  Reselecting the same Project will get FileExplorer to show the contents of the new folder.  If the currently selected Project is anything other than the first Project, the FileExplorer will show the contents of the new folder.

I have logged the value of FileExplorer1.CurrentFolder before the change and then again after the change.  When selecting away from the first Project, this value does not change.  All other times the value changes.  What may be relevant is that on the Page_Load, I also log the value of FileExplorer1.CurrentFolder, if it is a Postback, and saw that the value has since been changed but the visual aspect of the FileExplorer still shows the first Project's folder.

On Page_Load (not a Postback), the Forward, NewFolder and Open are all removed from the ToolBar,ContextMenus[0] and GridContextMenu.

How do I get the FileExplorer to show the contents of the new folder when selecting away from the first Project?

 

<telerik:RadFileExplorer RenderMode="Lightweight" runat="server" ID="FileExplorer1"
   Width="595px" Height="350px" AllowPaging="true" PageSize="10"
   VisibleControls="ContextMenus,Grid,Toolbar">
   <Configuration EnableAsyncUpload="true"></Configuration>
</telerik:RadFileExplorer>

 

protected void RadGrid2_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.CommandName == "RowClick")
    {
       GridDataItem item = (GridDataItem)e.Item;
      switch (e.Item.OwnerTableView.Name)
      {
         case "Missions":
            // do something else
            break;
         case "Projects":
            string tempLocation = item["colFullDirectory"].Text;
            string newDrive = String.Format("~/aws/{0}", tempLocation.Substring(9));
            SetFileExplorerPaths(newDrive);

...

 

private void SetFileExplorerPaths(string folderPath)
{
   string[] paths = new string[]
   {
      folderPath
   };
   FileExplorer1.InitialPath = Page.ResolveUrl(folderPath);
   FileExplorer1.Configuration.UploadPaths = paths;
   FileExplorer1.Configuration.ViewPaths = paths;
   FileExplorer1.Configuration.DeletePaths = paths;
}

 

 

Vessy
Telerik team
 answered on 27 Oct 2016
2 answers
78 views

I have a hierarchy grid with 3 levels similar to the "Grid - Declarative Relations" demo.  I am using batch edit mode and have set HighlightDeletedRows="True".  However in the inner most grid it is not highlighting the row to be deleted.  This is the BatchEditingSettings at each level.

<BatchEditingSettings EditType="Cell" SaveAllHierarchyLevels="True" HighlightDeletedRows="True" OpenEditingEvent="Click"></BatchEditingSettings>

Is there some way I can get it to highlight the row to be deleted in the inner most grid?

Thanks,  Jeff

Jeff H.
Top achievements
Rank 1
 answered on 27 Oct 2016
15 answers
296 views

Hello,

I've updated to latest version of UI for ASP.NET AJAX R3 2016 and I get now following javascript error...

TypeError: this._contextMenuFunctionality.dispose is not a function

 /Telerik.Web.UI.WebResource.axd?....:29491:33 dispose()
 /Telerik.Web.UI.WebResource.axd?....:6:68785 disposeElement()
 /Telerik.Web.UI.WebResource.axd?....:15:35395 _updatePanel()
 /Telerik.Web.UI.WebResource.axd?....:15:32430 _scriptIncludesLoadComplete()
 /Telerik.Web.UI.WebResource.axd?....:6:204 .()
 /Telerik.Web.UI.WebResource.axd?....:6:307
 /Telerik.Web.UI.WebResource.axd?....:15:4881 _loadScriptsInternal()
 /Telerik.Web.UI.WebResource.axd?....:15:5671 _scriptLoadedHandler()
 /Telerik.Web.UI.WebResource.axd?....:6:307 ._completedCallback()
 /Telerik.Web.UI.WebResource.axd?....:6:94288 _scriptLoadHandler()

I'm using a TreeView and some context menus in a Update Panel and this error occures when I'm clicking a tree node.

These are the client side events of RadTreeView I'm using:

OnClientContextMenuItemClicking="onContextMenuItemClick"
OnClientContextMenuShowing="onClientContextMenuShowing"
OnClientDoubleClick="onClientDoubleClickHandler"
OnClientNodeClicking="clientNodeClickingHandler"
OnClientNodeExpanding="toggleHandler"
OnClientNodeCollapsing="toggleHandler"
OnClientNodeExpanded="onNodeExpandedCollapsed"
OnClientNodeCollapsed="onNodeExpandedCollapsed"

Hope this helps,

Best regards

Roman Haussener

Marin Bratanov
Telerik team
 answered on 27 Oct 2016
5 answers
122 views

I installed the most recent version of UI for ASP.net R3 2016 SP1 (2016.3.1018). The update did fix the radGrid filter autopostback issue, which was good.

 

What is now happening is any page with a RadEditor on it causes a Javascript error on a postback. I'm attaching a screencap showing the error popping up. Browser is Chrome Canary. Also happens in Chrome and Edge.

 

The exact text of the error is as follows: 

TypeError: this._contextMenuFunctionality.dispose is not a function
&nbsp;/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3af9ecfe64-7d94-4875-a470-9996e4d00a9f%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2016.3.1018.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a761f4fed-131d-4f69-96f1-760ff0e34523%3a16e4e7cd%3a33715776%3a4877f69a%3a86526ba7%3a874f8ea2%3af7645509%3a24ee1bba%3ac128760b%3a19620875%3af46195d3%3acda80b3%3a383e4ce8%3aed16cbdc%3ae330518b%3a2003d0b8%3a1e771326%3a88144a7a%3ac8618e41%3a1a73651d%3a333f8d94%3ab2e06756%3a92fe8ea0%3afa31b949%3a490a9d4e%3abd8f85e4%3a52af31a4%3a5fa37e7e%3aaa288e2d%3a258f1c72%3a8674cba1%3a7c926187%3ab7778d6c%3ac08e9f8a%3a59462f1%3aa51ee93e%3a3856fd9f%3adc7e0bd%3a63b115ed%3a1569bb5f%3a30f1f089:35698

-------------

I'm also including the control definition for your reference. This and other pages/sites with the same RadEditor all worked prior to applying the Service Pack 1.

 

<%--                            <telerik:RadEditor ID="txtAnnotation" runat="server" AutoResizeHeight="True" EnableResize="False" Height="175px" RenderMode="classic"
                                ToolbarMode="ShowOnFocus" Width="100%">
                                <Tools>
                                    <telerik:EditorToolGroup Tag="InsertToolbar">
                                        <telerik:EditorTool Name="AjaxSpellCheck" />
                                        <telerik:EditorSeparator />
                                        <telerik:EditorToolStrip Name="InsertTable">
                                        </telerik:EditorToolStrip>
                                        <telerik:EditorTool Name="InsertRowAbove" />
                                        <telerik:EditorTool Name="InsertRowBelow" />
                                        <telerik:EditorTool Name="DeleteRow" />
                                        <telerik:EditorTool Name="InsertColumnLeft" />
                                        <telerik:EditorTool Name="InsertColumnRight" />
                                        <telerik:EditorTool Name="DeleteColumn" />
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="MergeColumns" />
                                        <telerik:EditorTool Name="MergeRows" />
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="SplitCell" />
                                        <telerik:EditorTool Name="SplitCellHorizontal" />
                                        <telerik:EditorTool Name="DeleteCell" />
                                        <telerik:EditorTool Name="SetCellProperties" />
                                        <telerik:EditorTool Name="SetTableProperties" />
                                        <telerik:EditorSeparator />
                                        <telerik:EditorSplitButton Name="InsertSymbol">
                                        </telerik:EditorSplitButton>
                                    </telerik:EditorToolGroup>
                                    <telerik:EditorToolGroup Tag="Formatting">
                                        <telerik:EditorTool Name="Bold" />
                                        <telerik:EditorTool Name="Italic" />
                                        <telerik:EditorTool Name="Underline" />
                                        <telerik:EditorTool Name="StrikeThrough" />
                                        <telerik:EditorSplitButton Name="ForeColor">
                                        </telerik:EditorSplitButton>
                                        <telerik:EditorSplitButton Name="BackColor">
                                        </telerik:EditorSplitButton>
                                        <telerik:EditorTool Name="FormatPainter" />
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="JustifyLeft" />
                                        <telerik:EditorTool Name="JustifyCenter" />
                                        <telerik:EditorTool Name="JustifyRight" />
                                        <telerik:EditorTool Name="JustifyFull" />
                                        <telerik:EditorTool Name="JustifyNone" />
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="Superscript" />
                                        <telerik:EditorTool Name="Subscript" />
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="ConvertToLower" />
                                        <telerik:EditorTool Name="ConvertToUpper" />
                                        <telerik:EditorTool Name="Indent" />
                                        <telerik:EditorTool Name="Outdent" />
                                        <telerik:EditorTool Name="InsertOrderedList" />
                                        <telerik:EditorTool Name="InsertUnorderedList" />
                                        <telerik:EditorTool Name="AbsolutePosition" />
                                        <telerik:EditorTool Name="LinkManager" />
                                        <telerik:EditorTool Name="Unlink" />
                                        <telerik:EditorTool Name="SetLinkProperties" />
                                        <telerik:EditorTool Name="ToggleTableBorder" />
                                    </telerik:EditorToolGroup>
                                    <telerik:EditorToolGroup Tag="DropdownToolbar">
                                        <telerik:EditorDropDown Name="FontName">
                                        </telerik:EditorDropDown>
                                        <telerik:EditorDropDown Name="FontSize">
                                        </telerik:EditorDropDown>
                                        <telerik:EditorDropDown Name="RealFontSize">
                                        </telerik:EditorDropDown>
                                        <telerik:EditorDropDown Name="ApplyClass">
                                        </telerik:EditorDropDown>
                                        <telerik:EditorDropDown Name="InsertCustomLink">
                                        </telerik:EditorDropDown>
                                        <telerik:EditorDropDown Name="FormatBlock">
                                        </telerik:EditorDropDown>
                                        <telerik:EditorTool Name="FormatSets" />
                                        <telerik:EditorDropDown Name="Zoom">
                                        </telerik:EditorDropDown>
                                    </telerik:EditorToolGroup>
                                </Tools>
                                <Content>
                                
                                </Content>
                                <TrackChangesSettings CanAcceptTrackChanges="False" />
                            </telerik:RadEditor>--%>

Marin Bratanov
Telerik team
 answered on 27 Oct 2016
1 answer
142 views

Hi,
Did you have made some change on Permission for deletion with the last update (2016.3.1018)?

After update, Permission for Deletion not works like before update.
I set permission with a customprovider (permission is ok on GetPermissions return after update too))
Windows Security are ok too.

The button changes to enable just if Parent Folder have access on Deletion and not take care about the permission of file.

Thank you for your help.

 

and does not take
Vessy
Telerik team
 answered on 27 Oct 2016
4 answers
355 views

I'm using a RadGrid control to display reports to users.

In the course of WAI-ARIA-enabling the website I have activated keyboard navigation setting the RadGrid's AllowKeyboardNavigation property to true.

Now, when I hit [RETURN] on any row in the Grid, an in-place editor opens. I don't want this to happen.

How can I keep the RadGrid from entering edit mode thoroughly?

Konstantin Dikov
Telerik team
 answered on 27 Oct 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?