Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
303 views

Hi All,

I am not sure if I am pushing the limits of RadGrid here, but below is the code that I am using.

I am trying to do is group the data in the RadGrid by Entity and then by Location, this I have achieved.  I would also like to have a sub total per location and then a total per entity.

As I said I get the grouping right, I also get the total by location right, but what seems to be is happening is that total per Entity seems to be the last amount in the location.

Firstly, can I achieve what I am trying to and secondly how.

Thanx

<telerik:RadGrid ID="RadGridMonthlyReport" runat="server" AllowFilteringByColumn="True"  
                    AllowSorting="True" DataSourceID="objDsMonthlyBillingReportAll"   
                    GridLines="None" Skin="Vista" HorizontalAlign="Left">  
    <HeaderContextMenu> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </HeaderContextMenu> 
    <ExportSettings OpenInNewWindow="True" ExportOnlyData="True" /> 
 
    <MasterTableView ShowGroupFooter="true" AutoGenerateColumns="False" DataSourceID="">  
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridBoundColumn DataField="EntityNumber" HeaderText="Entity" SortExpression="EntityNumber" UniqueName="EntityNumber" /> 
            <telerik:GridBoundColumn DataField="LocationName" HeaderText="Department" SortExpression="LocationName" UniqueName="LocationName" /> 
            <telerik:GridBoundColumn DataField="ItemName" HeaderText="Item" SortExpression="ItemName" UniqueName="ItemName" /> 
            <telerik:GridBoundColumn DataField="Total" DataType="System.Decimal" HeaderText="Total" ReadOnly="True" SortExpression="Total" UniqueName="Total" Aggregate="Sum" FooterText="Total: " /> 
        </Columns> 
        <GroupByExpressions>      
            <telerik:GridGroupByExpression> 
                <GroupByFields> 
                    <telerik:GridGroupByField FieldName="EntityNumber" /> 
                </GroupByFields> 
                <SelectFields> 
                    <telerik:GridGroupByField FieldName="EntityNumber" HeaderText="Entity Number" /> 
                </SelectFields> 
            </telerik:GridGroupByExpression> 
            <telerik:GridGroupByExpression> 
                <GroupByFields> 
                    <telerik:GridGroupByField FieldName="LocationName" /> 
                </GroupByFields> 
                <SelectFields> 
                    <telerik:GridGroupByField FieldName="LocationName" HeaderText="Location Name" /> 
                </SelectFields> 
            </telerik:GridGroupByExpression>              
        </GroupByExpressions> 
    </MasterTableView> 
    <FilterMenu> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </FilterMenu> 
</telerik:RadGrid> 
Princy
Top achievements
Rank 2
 answered on 06 Jun 2013
4 answers
180 views
Hi, i am currently creating a file upload section on a web page that can be view on every type of device (Computer, Tablets and mobile phone). When i test the file upload section on a standard computer everything works perfectly. When i test it on mobile phone (I'm using Samsung Galaxy S2 with all the latest update) i have access to the files on my phone. I can select one and it seems to upload perfectly ( I got the green dot ) but in fact the file created in the template directory of the control ( app_date\RadUploadTemp ) has a size of 0 bytes. So when i press my submit button the file copied in my working directory is invalid and cannot be read. You can test it yourself on your demo page.
http://demos.telerik.com/aspnet-ajax/asyncupload/examples/additionalfields/defaultcs.aspx

When i upload a file on this page, the file size is always 0...

Is it a known issue ? a mobile browser limitation ? or what ever the explanation...

Can you help me on that ? or do you know an alternative solution for mobile browser ?

Thanks !

Sébastien
Marc
Top achievements
Rank 1
 answered on 06 Jun 2013
1 answer
97 views
Hi,

I am using the DNN wrappers for Telerik ASP.Net controls, so I hope you can help me anyway. I using a DnnSlider (RadSlider) control on a multilingual site, and I wonder if it's possible to translate the word "Drag" when hovering over a slider. How can this be achieved?

Best wishes
Michael
Slav
Telerik team
 answered on 05 Jun 2013
5 answers
200 views
I guess this is my stupid question week.  I have a Hierarchy Grid that has one detail grid.  That grid allows rows to be edited in PopUp Mode.  Before the PopUp is shown I want to increase the width of one of the gridboundcolumns that will appear on the PopUp..  I can get a handle to the field but cannot figure out how to change the width.  There is no width property available.  Code is posted below.  I have also tried the FindControl method used in other examples but cannot get a handle to it that way.  Can someone point me in the right direction?  Thanks

protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
        {            
             
            if ("Detail".Equals(e.Item.OwnerTableView.Name)) 
            {                 
                GridBoundColumn packageColumn = (GridBoundColumn)e.Item.OwnerTableView.GetColumnSafe("PackageName") as GridBoundColumn; 
                GridBoundColumn fileIdColumn = (GridBoundColumn)e.Item.OwnerTableView.GetColumnSafe("FileId") as GridBoundColumn; 
                GridBoundColumn connectionStringColumn = (GridBoundColumn)e.Item.OwnerTableView.GetColumnSafe("ConnectionString") as GridBoundColumn;                 
                
                if (e.Item.IsInEditMode && e.Item is IGridInsertItem)                
                { 
                    (e.Item as GridEditableItem)["PackageName"].Enabled = true
                } 
                if ("InitInsert".Equals(e.CommandName)) 
                { 
                    packageColumn.ReadOnly = false
                    fileIdColumn.ReadOnly = false
                    connectionStringColumn.ItemStyle.Width = Unit.Pixel(200); //THIS IS THE FIELD I WANT TO CHANGE THE WIDTH OF                   
                } 
                else 
                { 
                    packageColumn.ReadOnly = true
                    fileIdColumn.ReadOnly = true
                }                 
            } 
        }         

Senthilnathan
Top achievements
Rank 1
 answered on 05 Jun 2013
1 answer
77 views
In one of the forum entries I have read that we cannot have tooltip and zoom at the same time.
I wanted to know if we can have some custom tooltip functionality when zoom in enabled.
Petar Kirov
Telerik team
 answered on 05 Jun 2013
2 answers
104 views
Hello, 
I've disabled the embedded skins and every control renders fine, but the image manager in the Editor (also file manager and link manager) doesn't render well, please see the attached images.

This is what fiddler shows:


# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
532 200 HTTP localhost:33228 /WebPages/Telerik.Web.UI.DialogHandler.aspx?DialogName=DocumentManager&UseRSM=true&Skin=Metro&Title=Gestion%20de%20Documentos&doid=541daacd-d2a4-4efb-8949-26bb54ac01e6&dpptn=&dp=YTISL2s7HlsWdmELV2x6J2gxE3ccAF9AFhcREicpCFk1Bh0qFisWGRd0HxUWCB05ai0WM30mFl8heWlXemB2J3FJaC4jFX5AOBRcPBgkAEU0LH4WFTY0BQJmPQsucx0Ef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kUaAEkFh0BAGANGyMNAEUBPXoNFV5xKx53V1QaVj8EV0QGNFUkJE0Pd3VCUnNiJ3M6ISckBFsGDz5UHxUnEEAHBkQRIgI0EBl1PQwZCQEcZxsONWIlBlYVW21oVRVcLl8DDy4QB3oCDBU3GxZQEHMAAWYXIjt1Whp1PRAabRUcUDB1C2MIGgMVdhJMY0llEnEvMRURFFB4AwU3EyBQPkcDABEqJjoSLxtOVxsZfQkvUD0KCWdQDmQWd2ICZnUKaQ%3D%3D 78.791 private text/html; charset=utf-8

# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
540 200 HTTP localhost:33228 /WebPages/Telerik.Web.UI.DialogHandler.aspx?DialogName=LinkManager&UseRSM=true&Skin=Metro&Title=Gestion%20de%20vinculos&doid=541daacd-d2a4-4efb-8949-26bb54ac01e6&dpptn=&dp=ZzJ9Nmg0NEcmXGELV3MOIWs%2BH3YnEFBwAwQdLhgyLUIaL1wEFgMCACxkMSUubBkEaTIWMGsmBl8gA3FvUmxbJ2QhFykcBH4HFhY%2FPCApFFkaL2UxJgMCGi0RMlQZCR0RUi0GbGU0CkIaZkNXVUh1LVxKGyolPXpHAAsoJxAMHEY1WX0xOS0zXhx0UgsVVisEYSJ1NWs0HlwZZnVvVxZbIV0AIQEfBFBNAAASLg4kAF00I2YuO148ASxOA1IVbDcEfzAeNFMrAlsPdWZIYUhfGm4tLQAjG3pbOT5QPCAkCEUPPFA0Ll0KOBd7NQwAfgkAUT0KMH0nDUQMAHVXVGNhLV8uKjMUFERfOBRcOhAmDFg3PB0yECkoHyxKUiYtbBUbUUcgCVQ7DlsXXGFPbHdPE2cuITwcAF9AFhU%2FHBQPFFQBLlg1LTYvWBllFzsfYwU%2FZSIwbWQPKGQgdnVzeXxbGV9IEzERBUwDPj8KIxYPAFw0B2J3LQQOXStIHxEpcxEBUS0WE2Y1LwYid0hCYEpbB2xLISkfOEsCODgdEBMNDFQAWEAxLVx1Gi1IHxAWfCsyUiESC2RSAgQZAH1PYEpbPnMUIXQfPkdAPwZUERA5Mng3ABlzIDgWLytmUjcCfxEmYkYgMmQ3AmAgA3VyYEpbNWg9H3cRP0BgFxQrIBAPFHgHW2IQLiggIi0RITsYUCsJZDI8CmgJBgchdm1Ke2xfGl8SAzIRBUxhF2NcERA1EHoAW1gtIDoOOwNiWl4%3D 34.929 private text/html; charset=utf-8

Any help would be appreciated. Thank you in advance.


Vessy
Telerik team
 answered on 05 Jun 2013
2 answers
109 views
I am trying to drag and drop from one grid to another.  I have 2 visual issues I would like to improve.

1. Can I make the drop zone in an empty grid be larger then a single dotted line?

2. I do not need to know if the row is dropped above or before a row, can I make the whole grid appear as the drop zone?

I have attached a mock up

Marty


moegal
Top achievements
Rank 1
 answered on 05 Jun 2013
1 answer
175 views
If I deploy the ASP.NET Ajax calendar within my organization, I need to be able to real time synch the schedule with each employees outlook calendar so that their schedule shows up on their cell phone.  Is there a solution for this? I can't seem to find anything but a one time export feature which will not work for me. I need the appoints to stay linked so that if an apt is deleted within the ajax calendar, it will then be deleted from the outlook calendar.

Thanks in advance,
-SCott
Vasil
Telerik team
 answered on 05 Jun 2013
6 answers
151 views
I assume it is possible to style the radtreeviewitem any way you like, I would like to style it, when selected in a similar method to the Backstage items. I have uploaded two images to illustrate my requirements, the first is a Normal treeview Item selected in ASP.Net project, with the metro skin, I would like this to be changed to something similar to the Backstage item, as shown in the Silverlight demo as shown in the backstage selection (metro).png I have uploaded.

Thanks in advance for any help.
Steve
Hristo Valyavicharski
Telerik team
 answered on 05 Jun 2013
2 answers
118 views
Hi,

When I use my own TreeView which is inherited from RadTreeView, it doesn't work like the base class and throw exception. 
My version is 2013.1.403.40

First I create the new TreeView, very simple.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telerik.Web.UI;
 
namespace TreeViewTest
{
    public class XTreeView:RadTreeView
    {
    }
}

Then I drag it to a aspx page. on the code behind. I write code like this.
                string xmlStr = @"<Tree>
  <Node Text='Desktop' Expanded='True' ToolTip='Desktop' ImageUrl='~/TreeView/Img/Vista/desktop.png'>
    <Node Text='Administrator' ImageUrl='~/TreeView/Img/Vista/folder-personal.png' Expanded='True'>
      <Node Text='AppData' ImageUrl='~/TreeView/Img/Vista/folder.png'>
        <Node Text='Microsoft'  ImageUrl='~/TreeView/Img/Vista/folder.png'/>
      </Node>
      <Node Text='Contacts' ImageUrl='~/TreeView/Img/Vista/folder-contacts.png' />
      <Node Text='Downloads'  ImageUrl='~/TreeView/Img/Vista/folder-open.png'/>
      <Node Text='Documents' ImageUrl='~/TreeView/Img/Vista/folder-documents.png' Selected='True' />
      <Node Text='Favorites' ImageUrl='~/TreeView/Img/Vista/folder-favorites.png' >
        <Node Text='Links'  ImageUrl='~/TreeView/Img/Vista/folder.png'/>
      </Node>
      <Node Text='Music' ImageUrl='~/TreeView/Img/Vista/folder-music.png' />
      <Node Text='Pictures' ImageUrl='~/TreeView/Img/Vista/folder-pictures.png' />
      <Node Text='Saved Games' ImageUrl='~/TreeView/Img/Vista/folder-open.png'  />
      <Node Text='Searches' ImageUrl='~/TreeView/Img/Vista/searches.png'  >
        <Node Text='History'  ImageUrl='~/TreeView/Img/Vista/folder.png'/>
      </Node>
      <Node Text='Videos' ImageUrl='~/TreeView/Img/Vista/folder-videos.png' />
    </Node>
    <Node Text='Computer' ToolTip='My Computer'  ImageUrl='~/TreeView/Img/Vista/computer.png' Expanded='True' >
      <Node Text='WebServer (\\10.0.0.80) (W:)' ImageUrl='~/TreeView/Img/Vista/network-drive.png' />
      <Node Text='Local Disk (C:)' ImageUrl='~/TreeView/Img/Vista/system-drive.png' Expanded='True' >
        <Node Text='inetpub'  ImageUrl='~/TreeView/Img/Vista/folder.png' Expanded='True'>
          <Node Text='AdminScripts'  ImageUrl='~/TreeView/Img/Vista/folder.png'></Node>
        </Node>
      </Node>
    </Node>
  </Node>
</Tree>";
                XTreeView1.LoadXmlString(xmlStr);

Just xml string and LoadXmlString. It gives me error.  The same code works well with base RadTreeView.

Could you please take a look at it?

Thank you very much.

Bill
wg
Top achievements
Rank 1
 answered on 05 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?