Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
I'm using version Q1 2013.

Skin the tool created a SkinBuilder with all components.

How best to deploy within my project?

Today I RadSkinManager - ShowChooser = "True" and he blames for all grids, panels etc. automatically.

I have to put this on the list of skins skin?

Saw a shape to generate an assembly, which is seen more laborious, since all modified components.

Thank you.
Galin
Telerik team
 answered on 25 Mar 2013
9 answers
334 views
I have a grid that uses a couple of calculated columns to show percentage calculations.

Expression

="(({0} - {1}) / {0}) * 100"


Some of the column values that i use in my calculation can under certain circumstances have zero values. This obviously raises a divide by zero exception. I want in these instances to display a percentage of zero.

I dont seem able to intercept or handle the exception and set the cell value to 0 ( i.e perhaps at item databound event or similar).

Any suggestions as to how i can perform this - if not, i presume I will have to make the calculations in the database and bind as normal boundcolumns.

Kostadin
Telerik team
 answered on 25 Mar 2013
11 answers
1.1K+ views

Hi,

I have a grid with a bound column "Sales" and need to add a calculated column "Percentage" which will be the result of  Sales/Sum(Sales)*100. How can I accomplish this?

I've tried different ways but I can't get it to work. Below is an example of what i am trying to do...  

<telerik:GridBoundColumn DataField="Sales" DataType="System.Decimal" HeaderText="Sales"
 SortExpression="Sales" UniqueName="Sales" Aggregate="Sum">                 
</telerik:GridBoundColumn>
<telerik:GridCalculatedColumn HeaderText="Sales %" UniqueName="Percentage"
DataFields ="Sales, sum(Sales)" Expression="{0}/{1}" DataType="System.Double" Aggregate="Sum" >
</telerik:GridCalculatedColumn>

Thanks in advance,

Regards,
Sigi Perez
Kostadin
Telerik team
 answered on 25 Mar 2013
1 answer
75 views
I upgraded to new Telerik version 2013.1.220.35 from 2010.3.1109.35. and compatibility issues started...

 

<telerik:RadGrid runat="server" ID="FileListView" AutoGenerateColumns="false" Skin="Windows7" 

Width="100%" OnDeleteCommand="FileListView_DeleteCommand">

<MasterTableView>

<Columns>

<telerik:GridButtonColumn UniqueName="DeleteColumn" ButtonType="ImageButton" CommandName="Delete"

ConfirmTitle="Confirm" ConfirmText="Continue deleting file?" /> <telerik:GridBoundColumn UniqueName="file" DataField="file" Visible="false" ReadOnly="true" />

 <telerik:GridBoundColumn UniqueName="Attachedfiles" DataField="Attached files" HeaderText="File" />

 <telerik:GridBoundColumn UniqueName="Attachedby" DataField="Editor" HeaderText="Attached by" />

 <telerik:GridBoundColumn UniqueName="Attachedat" DataField="Modified" HeaderText="Attached at" />

 </Columns>

 </MasterTableView>

 </telerik:RadGrid>

 

protected void FileListView_DeleteCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)

 {
GridEditableItem editedItem = e.Item as GridEditableItem;

 string filename = editedItem["file"].Text;
logic continues...

but in the above code filename has &nbsp as the value. means filename contains empty space as it value instead of actual file name

Please suggest. 

Andrey
Telerik team
 answered on 25 Mar 2013
1 answer
81 views
For some reason RadGrid keeps renaming my columns and putting spaces where they don't belong.
i.e. If my column name is "RadGrid" it adds a space and makes it "Rad Grid"

What can I do about this? It's driving me nuts and the users are not happy because they have very specific naming conventions on the fields they are using.

TIA!!

CG
Antonio Stoilkov
Telerik team
 answered on 25 Mar 2013
3 answers
62 views
Hello,
I upgraded to new Telerik version 2013.1.220.35
from 2010.3.1109.35.

In previous version the below line of code works fine, but with the new telerik version it is storing empty spaces intead of actual Items data.
GridDataItemCollection

 

 

FilteredRadGridItemCollection = this.grid.MasterTableView.Items;

Please suggest!

Thanks
Ghouse Shaik

 

Andrey
Telerik team
 answered on 25 Mar 2013
1 answer
70 views
Hi, I have a RadToolbar in an ASPX site working properly on all modern browsers but IE9 since I can disable a button on client side with this sentence:
parent.header.RadToolbar1.DisableButton("Button");

But whenever I try to enable the button nothing happens (only in IE9, compatibility mode is ok).
Thanks in advance.
Kate
Telerik team
 answered on 25 Mar 2013
1 answer
64 views
Hi

I've got a ribbon bar on a page that i hit from an IPad and have set the EnableMinimizing property equal to true.  However, when you click the minimize button nothing happens.

Anyone experience this and/or know how to fix it?

Thanks
Kate
Telerik team
 answered on 25 Mar 2013
2 answers
84 views
HI


     Im Using Telerik Radgrid to import and export Excel.
     the import and export functions are working good.
     in this i directly bind the data from excel to radgrid.
     
     now my problem is....
    1)im using filteringbycolumn property to filter the radgrid its not working(the grid data will empty)
        even i gave autogeneratecolumn=true
    2)im trying to give page size so i gave allowpaging=true  it show only pager on below
           if i click next page button means the grid geeting empty


      pls give the solution for this asap

  Regards
  P.Mugil
Mugil
Top achievements
Rank 1
 answered on 25 Mar 2013
1 answer
183 views
i use delphi prism add on studio  and add telerik component and show error "Unknow type Telerik.Web.UI.RadScriptManager" 
Dimitar Terziev
Telerik team
 answered on 25 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?