Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
353 views
Hi
I am using RadGrid,  and I have a problem with the "Edit,Update,Cancel" 'Delete" columns.
Everything is working fine if the button styles are set to 'LinkButton' or 'Pushbutton'

However as long as I change the button style to "Imagebutton", and clicking "Edit" or "Delete " button the application crashes.
with exception like below:
 
"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation."

And everything stopped in the file "MicrosoftAjax.debug.js" line 4723
......................................
            _this._clearTimer();
            _this._responseAvailable = true;
            try {
                _this._webRequest.completed(Sys.EventArgs.Empty);
            }
            finally {   ------------------------------------------------------------------------------->stops here
                if (_this._xmlHttpRequest != null) {
                    _this._xmlHttpRequest.onreadystatechange = Function.emptyMethod;
                    _this._xmlHttpRequest = null;
                }
            }
        }

Wondering whether some settings need to be done, thanks if anyone can help me.
Daniel
Telerik team
 answered on 08 Jul 2009
8 answers
261 views
Hi, I am creating a grid using autogenerated columns and the problem I am having is that the columns are not being created in the order that they are being returned in the the dataset. I need them to be created in a certain sequence because it is supposed to be a report and the columns are dollar ranges.

Also, in the ColumnCreated event I am trying to figure out how to view the index of the column. I do not know the unique names and need to access these columns by their index. Every time I try to access OrderIndex the value is -1. Am I missing something here?

So,

#1 - how can I guarantee that the autogenerated columns will be created in a particular sequence (based on how they are ordered/returned in the dataset)

#2 - how can I access a column in the ColumnCreated event by its index?

Thanks.
Iana Tsolova
Telerik team
 answered on 08 Jul 2009
6 answers
188 views

<telerik:RadScriptBlock>  
  function OnGroupExpanding(sender, eventArgs) {  
    //To put the current group code into hidfiled
  }  
  function OnGroupCollapsing(sender, eventArgs) {  
    //To remove the current group code from hidfield
  }  
</telerik:RadScriptBlock>  
 
<asp:HiddenField ID="hidExpandGroupKeys" runat="server" />  
 
<telerik:RadGrid runat="server" ID="ItemsList">  
<MasterTableView DataKeyNames="code">  
<GroupByExpressions>  
  <telerik:GridGroupByExpression>  
     <GroupByFields>  
        <telerik:GridGroupByField FieldName="SubGroupCode"></telerik:GridGroupByField>  
     </GroupByFields>  
  </telerik:GridGroupByExpression>  
</GroupByExpressions>  
<Columns>  
  <telerik:GridBoundColumn DataField="code">  
  </telerik:GridBoundColumn>  
  <telerik:GridBoundColumn DataField="SubGroupCode">  
  </telerik:GridBoundColumn>  
</Columns>  
</MasterTableView>  
<ClientSettings>  
  <ClientEvents OnGroupCollapsing="OnGroupCollapsing" OnGroupExpanding="OnGroupExpanding" />  
</ClientSettings>  
</telerik:RadGrid> 
I want to put all the Expanding group code into the hidden field.
So that the interface can remember the status of all groups after post back every time.

I'm not sure how can I get the "SubGroupCode" from the event OnGroupExpanding and OnGroupCollapsing.
Is there anyone can help me? Thanks ahead.
Veli
Telerik team
 answered on 08 Jul 2009
4 answers
229 views
How do i programmatically force a tab to move to from one tab to another and get the multipage to do the same im using c# by the way

thanks
Kevin
Paul
Telerik team
 answered on 08 Jul 2009
8 answers
833 views
Hi

My grid has a column called DistanceTravelled. I have a sum aggregate on this field. My grid is also grouped on another field. This means that there is a Sum of DistanceTravelled per group and for the entire grid.

<

 

telerik:GridGroupByField FieldAlias="Total" Aggregate="Sum" FieldName="DistanceTravelled" />

 

<

 

telerik:GridBoundColumn DataField="DistanceTravelled" HeaderText="Distance Travelled (miles)" UniqueName="DistanceTravelled" Aggregate="Sum"  DataFormatString="{0:F2}" FooterText="Total: "

 

 

 

 

></telerik:GridBoundColumn>

 


I can't format my grid and group footers properly.

Firstly I format the DistanceTravelled column as a whole to 2 decimal places uses a DataFormatString in the bound column. It seems to me that this overrides anything specified in the FooterText property of the bound column or the FormatString property of the aggregate field. With the example above, both the group and grid footers are simply shown as a number to 2dp - the word "Total" is not displayed. If I remove the DataFormatString property I get the FooterText "Total" output in the group/grid footers but the number after it is not shown to 2 decimal places

This is what i would like but i don't know how to achieve it:

1) The column formatted to 2 decimal places
2) The group footer to say Total for group: x.xx where x.xx is the number to 2 decimal places
3)The grid footer to say Total: x.xx

Many thanks in advance
Sebastian
Telerik team
 answered on 08 Jul 2009
5 answers
262 views

I am trying to get my rotator to scroll a line of text horizontally across the bottom of the screen at a constant smooth speed without stopping.

The code below is the closest i have gotten it so far but the frame transition starts off quick and slows down so the end result is a jerking motion.

<telerik:RadRotator ID="RadRotator1" runat="server" FrameDuration="0" SlideShowAnimation-Type="None" ScrollDuration="10000" Width="100%" Height="20px">  
<ItemTemplate> 
<b><%#DataBinder.Eval(Container.DataItem, "NewsHeadline")%></b>&nbsp;&nbsp;<%#DataBinder.Eval(Container.DataItem, "NewsSummary")%>&nbsp;&nbsp;  
</ItemTemplate> 
</telerik:RadRotator> 

The other issue i have with the rotator is when i have bolded the headline items, after the first frame the bold headings get blurred and hard to read. The regular text also seems to be a little too flickery, i have tried various fonts etc but can't seem to fix it.
Fiko
Telerik team
 answered on 08 Jul 2009
1 answer
61 views
can we use 2 rad ajax manager in single pages?
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2009
1 answer
132 views
Hi,

My Datasource (datatable) has columns with spaces in them. Can you please show me how to group by a field when they have spaces in them. The following below does not work for me. Please advise.

Dim expression1 As New GridGroupByExpression

 

Dim field1 As New GridGroupByField

 

 

field1 = New GridGroupByField

 

 

field1.FieldName = "Filing Country"

 

 

field1.FieldAlias = "[My Filing Country]"
expression1.SelectFields.Add(field1)

 

 

.MasterTableView.GroupByExpressions.Add(expression1)

Thanks!

 

Princy
Top achievements
Rank 2
 answered on 08 Jul 2009
4 answers
176 views
Hi ,

I have a user control in which i am trying to add the  rad grid with google-like filtering options. I deploy the user control in sharepoint in some page layout

The issue is that i get the following error When i try to add the "RadAjaxManager" that is required for  google-like filtering.
If i remove that  RadAjaxManager then the grid works but no filtering  .  I have also used 

RadAjaxPanel  same error.

at Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) at Telerik.Web.UI.RadAjaxControl.PerformRender() at Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Please help me out


Thanks
Rahul

Sebastian
Telerik team
 answered on 08 Jul 2009
1 answer
235 views
Hi,

How to display Browser's current date and time on RadDateTimePicker when the page loads?

Thanks for your help,
bala
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?