Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
358 views
Whenever I try to set Aggregate="Sum" for an integer column, I get the "Specified Cast is not valid." exception.  I've tried all kinds of things, but always get the exception.   It works fine with Decimal columns.

These cause an exception:

<rad:GridNumericColumn DataField="EstQty" HeaderText="Est. Qty." 
            UniqueName="EstQtyColumn" Aggregate="Sum" NumericType="Number" 
            DataType="System.Int32" DataFormatString="{0:N0}">  
     <HeaderStyle HorizontalAlign="Center" /> 
     <ItemStyle Width="6em" /> 
</rad:GridNumericColumn> 
<rad:GridNumericColumn DataField="FinalQty" HeaderText="Final Qty." 
            UniqueName="FinalQtyColumn" Aggregate="Sum" NumericType="Number" 
            DataType="System.Int32" DataFormatString="{0:N0}">  
     <HeaderStyle HorizontalAlign="Center" /> 
     <ItemStyle Width="6em" /> 
</rad:GridNumericColumn> 
 

While this works fine:

<rad:GridNumericColumn DataField="Postage" HeaderText="Postage" UniqueName="PostageColumn" 
            NumericType="Currency" DataType="System.Decimal" Aggregate="Sum" 
            FooterAggregateFormatString="{0:C}">  
     <HeaderStyle HorizontalAlign="Center" /> 
     <ItemStyle HorizontalAlign="Right" /> 
</rad:GridNumericColumn> 

I'm using Q2 2008 SP1, btw.
Vlad
Telerik team
 answered on 01 Oct 2008
2 answers
405 views
Trying to implement spellcheck and I got a message Web.config registration missing. the telerik dialogs require a HTTPHandler regitrsation in the web.config file. Please use the control's smart tag to add the handler automatically. I did it but still have the message is coming up... I need some help please!

Rumen
Telerik team
 answered on 01 Oct 2008
1 answer
115 views
Hi everybody,

I have a little problem with my treeview.

I populate my treeview on demand, when I open a node I perform a check and if this if true I set the forecolor of the node to red in the following way

RadTreeNode

node = new RadTreeNode();

node.ForeColor = System.Drawing.

Color.Red;

e.Node.Nodes.Add(node);

but as soon as I click on a node or perform an action on my contest menu the forecolor return to black.

Can somebody explain me what I'm doing wrong? or if it isn't possible to set a permanetly another forecolor?

Thank you very much

Raphael

raphael
Top achievements
Rank 1
 answered on 01 Oct 2008
3 answers
210 views
Hi,

We are using Rad Editor and creating articles which will be sent in a mail to all the users.
The articles are viewed the same way created in outlook 2003, but when it is viewed in oulook 2007 its looking very ugly as the style tags are no more recognized in oulook 2007 due to some changes as it doesn't have html engine etc...
one of the main problem is when we are changing the image properties like width, height editor stores in style tag, which is not recognized by oulook 2007 and showing the actual size.
so we want the properies of images to directly under the image tag instead of style.
is there any way to sort out this problem.
Please do reply ASAP, as its creating problems in our production.
Thanks in advance.

Regards,
Bala.
Rumen
Telerik team
 answered on 01 Oct 2008
1 answer
141 views
Hi, all!

How hide title in Multi-View Mode of RadCalendar?

Thank!
Shinu
Top achievements
Rank 2
 answered on 01 Oct 2008
3 answers
241 views
Hi,

I am trying to convert one of our existing tables into a telerik grid; the table has 5 columns of various types including non editable text, editable text and checkboxes. I need to be able to have every row in edit mode on page load, any changes made will be saved using a save button on the page. I have tried the suggestions in http://www.telerik.com/help/aspnet/grid/grddefaulteditmodeforgriditemsoninitialload.html but can only get the bottom row to go into edit mode.

I also need the checkbox columns to have a "select/deselect" all column, there are multiple checkbox columns so selecting/deselecting should not select or deselect the row, is there a setting that does this?

Many thanks
Shinu
Top achievements
Rank 2
 answered on 01 Oct 2008
1 answer
68 views
I have some code that works fine on my local box but when I deploy to IIS it fails.

this code is in the page.
            <script type="text/javascript" language="javascript" >
                var _MainGridID = "<%= MainGrid.ClientID %>"
            </script>

----
                    <telerik:RadGrid ID="MainGrid" OnItemDataBound="MainGrid_ItemDataBound" DataSourceID="MyObjectDataSource"
                        AllowFilteringByColumn="False" AllowSorting="True" AllowPaging="True" PageSize="200"
                        Skin="Office2007" runat="server" GridLines="None" Width="100%" Height="245px"
                        EnableViewState="True"  AllowMultiRowSelection="True"
                        OnNeedDataSource="MainGrid_NeedDataSource" AutoGenerateColumns="False" OnDataBound="MainGrid_DataBound">


.......
this code is in a script file...

tableViewM = $find(_MainGridID).get_masterTableView();

The $find is returning null...

Princy
Top achievements
Rank 2
 answered on 01 Oct 2008
1 answer
118 views

I want to export the RadGrid to PDF and at the top of the PDF I want to show a summary of what the RadGrid contains. The summary is shown above the RadGrid on the web page. I understand how to export the RadGrid to PDF. My problem is that because it only exports what is in the MasterTableView, I can't include the summary in that PDF. Is there anyway to accomplish this?

Thanks,

J.R. Garcia

Shinu
Top achievements
Rank 2
 answered on 01 Oct 2008
4 answers
272 views
Well my problem is the next buddies
I have a GridView, well Actually a RagGrid From telerik control
I get the data executing a StoreProcedure and storing in a Datatable
the I just use the next code

DataTable dtListValues = null; //this is my DataTable where i'm going to store the Data
dtListValues = LoValues.oListValues(Values.PKValue); //this is the method to get the Data, that returns a DataTable
this.rgValues.DataSource = dtListValues; //Choosing  a DataSource for the RadGrid
this.rgValues.DataBind(); //binding!! hehehe!  ;P
and then the page ends with this

NameColumns     PKValue  NameValue  isActive

but!! I don't want to use this names!!  :sigh:
And to "fix" this I try to use this

dtListValues.Columns[0].Caption = "Code";
dtListValues.Columns[1].Caption = "Name";
dtListValues.Columns[2].Caption = "Active";
I already used this code after and before executing the DataBind
But!!!! It doesn't work!!! =(
Could someone Tell Me where I'm wrong :( ?
I hope you can help me please
thanks in advanced
Greetings!!!
KlimUser
Top achievements
Rank 2
 answered on 30 Sep 2008
9 answers
233 views
Hello,

Is there a way to pass data from one control to another, using clientside JavaScript, without using AjaxManager?

What I would like to accomplish, is to display the child items in a grid control when a node is selected in a treeview control. Vice versa, when an item is selected in the grid, I would like the treeview to display it also.

One way I can think of to go about this is to call a web service from a treeview clientside NodeClicked handler. The web service would get data  for the grid, and then will callback the updateGrid function to rebind it with the data.

Is there another, direct way via Javascript, without having to make a web service round trip?

Thanks,
Alex
Alex
Top achievements
Rank 1
 answered on 30 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?