Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
492 views
Hi,

I am having an issue with the GroupByField functionality of RadGrid where it basically cancels any previous sorting and forces the radgrid to sort based on the field it is grouped by.

Running a simple example like the one below will sort the grid based on the field specified in GroupByField, although It's not supposed to:
<radG:RadGrid runat="server" ID="rgrdtest" AutoGenerateColumns="true">
    <MasterTableView DataKeyNames="HierarchyId"  >
                        <GroupByExpressions >
               
                        <radG:GridGroupByExpression >
                            <SelectFields  >
                            <radG:GridGroupByField  FieldAlias="Title" FieldName="Title" FormatString=""  />
                            </SelectFields>
                            <GroupByFields>
                                 <radG:GridGroupByField  FieldName="HierarchyId" FieldAlias="HierarchyId" FormatString="" />
                            </GroupByFields>
                        </radG:GridGroupByExpression>
                   
                    </GroupByExpressions> 
    </MasterTableView>
</radG:RadGrid>

Is there a way to avoid that sorting so I can use the actual collection sort order ?

Thanks,
Andrei
Angel Petrov
Telerik team
 answered on 27 May 2013
3 answers
96 views
Hi Telerik,

I have a RadOrgChart which displays product details as a drill down. Our client asked whether the user can open a window to edit the details on clicking the nodes. Any such provision is available?

Thanks,
Lovella.
Shinu
Top achievements
Rank 2
 answered on 27 May 2013
3 answers
643 views
Hi,

Is it possible to execute a Javascript from server side? Seems foolish, I know one is client side and other is server side. Still I have a requirement to invoke a JavaScript based on some condition on a radbutton click?

Thanks for replying,
Robert.
Shinu
Top achievements
Rank 2
 answered on 27 May 2013
1 answer
347 views
Hi,

I'm trying to set the cursor to the given position (let's say X).I've tried to do this in many ways but still not found the solution... 

We need to change the content of RadEditor but cursor position should be the same. There's no problem in IE9, but in FF/Chrome/Opera the caret is moving back to the beginning of the document. Do you have any ideas?
Joana
Telerik team
 answered on 27 May 2013
1 answer
172 views
Hi Team ,

I am adding group by experissions progrmatically in my code and it is working as expected , I want to Expnad / Collpase selected group header , I am using below code in Item_Command and able to Collapse/Expand groups  as required but when I click next page Grid rebinds and grouping is lost , can you suggest how to go about this problem .

if (e.CommandName == RadGrid.ExpandCollapseCommandName)
 {
                GridGroupHeaderItem groupHeaderItem = (GridGroupHeaderItem)e.Item;
               
                if (groupHeaderItem.Expanded==true)
                    groupHeaderItem.Expanded = false;
                else
                    groupHeaderItem.Expanded = true;
}

Thanks
 NS

 

 

 

 

 

if (item.IsInEditMode)

item.Expanded =

 

false;

}

Maria Ilieva
Telerik team
 answered on 27 May 2013
1 answer
287 views
I am using a rad tree to display a list of clickable menu items. But half of the time when i perform a click i get this:

  1. Uncaught Sys.ParameterCountException: Sys.ParameterCountException: Parameter count mismatch. ScriptResource.axd:222
    1. Error$parameterCountScriptResource.axd:398
    2. Function$emptyMethodScriptResource.axd:52
    3. Sys$Net$XMLHttpExecutor$abortScriptResource.axd:4920
    4. Sys$WebForms$PageRequestManager$abortPostBackScriptResource.axd:296
    5. Sys$WebForms$PageRequestManager$_onFormSubmitScriptResource.axd:869
    6. Sys$WebForms$PageRequestManager$_doPostBackScriptResource.axd:484
    7. (anonymous function)ScriptResource.axd:47
    8. (anonymous function)
    9. a.RadTreeView._postbackScriptResource.axd:1151
    10. a.RadTreeView._postClickCommandScriptResource.axd:1443
    11. a.RadTreeView._clickScriptResource.axd:1669
    12. Telerik.Web.UI.EventMap._onDomEventScriptResource.axd:488
    13. (anonymous function)ScriptResource.axd:47
    14. g

I navigated in the console to RadTreeView._postClickCommand and the method "h._getHierarchicalIndex()" appears to be returning the correct parameters (ex 0:0:1)
I am using version 2012.1.411.35 of Web.UI and i have a RadAjaxManager and ScriptManager on the page. 

TreeViewCode:
<telerik:RadTreeView ID="treeFolders" runat="server" Skin="skyrouter" EnableEmbeddedSkins="false" EnableDragAndDrop="false" AllowNodeEditing="true"
                        OnNodeClick="treeFolders_NodeClick1" OnNodeDataBound="treeFolders_NodeDataBound"
                        OnNodeEdit="treeFolders_NodeEdit"  OnContextMenuItemClick="treeFolders_ContextMenuItemClick"
                        OnClientContextMenuItemClicking="onClientContextMenuItemClicking"
                        OnClientContextMenuShowing="onClientContextMenuShowing" OnClientNodeClicking="Tree_onNodeClicking"
                        OnClientMouseOver="Tree_onNodeMouseOver" OnClientMouseOut="Tree_onNodeMouseOut"
                        OnClientNodeEditStart="TreeNodeEditStart" OnClientNodeEditing="TreeNodeEditing">
                        <ContextMenus>
                            <telerik:RadTreeViewContextMenu ID="mailTreeViewContextMenu" Skin="skyrouter" runat="server"
                                meta:resourcekey="mailTreeViewContextMenu" EnableEmbeddedSkins="false">
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                                <Items>
                                    <telerik:RadMenuItem runat="server" Text="New Folder" Value="NewFolder" ImageUrl="~/images/Communicate/Img/OutLook/12.gif"
                                        meta:resourcekey="RadMenuItem1" />
                                    <telerik:RadMenuItem runat="server" Text="Delete" Value="Delete" ImageUrl="~/images/Communicate/Img/OutLook/7.gif"
                                        meta:resourcekey="RadMenuItem2" />
                                    <telerik:RadMenuItem runat="server" Text="Rename" Value="Rename" PostBack="false"
                                        ImageUrl="~/images/Communicate/Img/OutLook/rename.gif" meta:resourcekey="RadMenuItem3" />
                                </Items>
                            </telerik:RadTreeViewContextMenu>
                            <telerik:RadTreeViewContextMenu ID="RadTreeViewContextMenu_Trash" Skin="skyrouter"
                                runat="server" meta:resourcekey="RadTreeViewContextMenu_Trash" EnableEmbeddedSkins="false">
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                                <Items>
                                    <telerik:RadMenuItem runat="server" Text="New Folder" Value="NewFolder" ImageUrl="~/images/Communicate/Img/OutLook/12.gif"
                                        meta:resourcekey="RadMenuItem1" />
                                    <telerik:RadMenuItem runat="server" Text="Delete" Value="Delete" ImageUrl="~/images/Communicate/Img/OutLook/7.gif"
                                        meta:resourcekey="RadMenuItem2" />
                                    <telerik:RadMenuItem runat="server" Text="Rename" Value="Rename" PostBack="false"
                                        ImageUrl="~/images/Communicate/Img/OutLook/rename.gif" meta:resourcekey="RadMenuItem3" />
                                    <telerik:RadMenuItem runat="server" Text="Empty Trash" Value="EmptyFolder" PostBack="true"
                                        ImageUrl="~/images/Communicate/2DeletedItems.gif" meta:resourcekey="RadMenuItem4" />
                                </Items>
                            </telerik:RadTreeViewContextMenu>
                        </ContextMenus>
                        <CollapseAnimation Duration="100" Type="OutQuint" />
                        <ExpandAnimation Duration="100" />
                    </telerik:RadTreeView>

Hristo Valyavicharski
Telerik team
 answered on 27 May 2013
1 answer
80 views
I have been scratching my head on this for a few hours now and i have no clue what to do.  For some reason, in my project, i am having a problem accessing client-side api's for radcontrols.  Below is a screenshot of my javascript error and code.  All i am doing is calling a webservice, obtaining json, and then trying to populate the grid control with the json array.

// javascript error
http://i.imgur.com/DyCT2ow.png

// aspx file with code and script
http://i.imgur.com/OknvmYN.png
Eyup
Telerik team
 answered on 27 May 2013
3 answers
136 views
Hi Telerik,

On Clicking the logout button, I am displaying a confirm box. If the user press yes, then logged out. I tried the following code in the OnClientClicked event but I am getting some sort of JavaScript error in IE. In Firefox nothing happen. Please inspect the below code and guide me.
function OnClientClicked(sender, eventArgs)
{
    eventArgs.set_cancel(!confirm("Confirm logout?"));
}

Thanks to all,
Katya
Shinu
Top achievements
Rank 2
 answered on 27 May 2013
7 answers
372 views
Hi

I'm working on moving some of our grids from using the auto generated edit forms to using Form Templates, but still using the markup for defining the CRUD operations using the SqlDataSource.
The grids already use asp:SqlDataSource for the CRUD operations and have been working fine with the auto-generated edit forms.

I've now changed the markups and added the FormTemplate which shows the insert / edit form as expected, including binding the column values correctly when editing, but the insert / update operations do not work from these forms.

When I try to insert a record, it simply creates a record with NULL values.
When I try to update  record, I get the following error (I have the ConflictDetection set to CompareAllValues):
  "You have specified that your update command compares all values on SqlDataSource 'sqlOperatorNotes', but the dictionary passed in for oldValues is empty.  Pass in a valid dictionary for update or change your mode to OverwriteChanges"

Seems like the control values are not being passed from the edit/insert form to the sqldatasourc.
Do I need to change anything more to switch from auto generated edit forms to FormTemplates.

Here's part of the formtemplate:
<Telerik:Radtextbox
   ID="notesbox"
   runat="server"
   Text='<%# Bind("Note") %>'
   Width="150px">
 
 </Telerik:Radtextbox>

Here's the corresponding grid column
<telerik:GridBoundColumn
  UniqueName="Note"
  SortExpression="Note"
  HeaderText="Note"
  HeaderStyle-VerticalAlign="Top"
  HeaderButtonType="TextButton"
  DataField="Note"
  ItemStyle-VerticalAlign="Top">
Kostadin
Telerik team
 answered on 27 May 2013
5 answers
73 views
Hi, as attached you will see some strange behaviour of the radeditor in IE9.
As you will see, the toolbar is rendered as a bulleted list, but i have no custom skin or css added, that uses OL or UL styling tags

The same page works in Chrome, Firefox and IE10

Do you have some idea it could be? Does it have something to do with a css that i don't know off or what?


This is the markup:

<telerik:RadEditor ID="DescriptionTextBox" runat="server">

     <Content>

                    MyContent

     </Content>

 </telerik:RadEditor>

Thx

Rudy
Top achievements
Rank 1
 answered on 27 May 2013
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?