Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
206 views
Hi,

When i click an Image button on a radgrid, I got a msgbox to test 

 Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.WebControls.GridCommandEventArgs) Handles RadGrid1.ItemCommand


if e.CommandName = "Release" then

msgbox("Release")

endif

end sub

But when i click i get the following error message.

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.

Thanks
TonyG
Top achievements
Rank 1
 answered on 01 Nov 2011
3 answers
127 views
I need some assistance.

Iam using rad editor 7.2.0.0 .

When ever I am creating a link with an attachment the font size changes to the smallest font (1) after I insert a document. I try to increase the font size to say 3 but it won't allow me.

What can I do to increase the font size of a link after I have inserted the document.

Thanks,

Rumen
Telerik team
 answered on 01 Nov 2011
2 answers
144 views
hi,
i face a problem with rad editor in IE 9.
currently i am using 2011.1.315.40 asp.net ajax version.i put a rad editor in jquery dialog but when i open the dialog i can't  change the content of rad editor and it become a read only.
i also used following syntax:
<meta http-equiv="X-UA-Compatible" content="IE=8" /> but it not work.
i also attached a snapshot.
please give me solution.
thanks in advance
Mahesh
Top achievements
Rank 1
 answered on 01 Nov 2011
1 answer
68 views
Hi,
I am working on creating custom filtering column for RadGrid, my code is largely based on :
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandcombo/defaultcs.aspx?product=grid

But I would like to have a clear filter button attached to each column, and if the button is clicked it will only clear one column instead of all columns. Here is my overrided function 
protected override void SetupFilterControls(TableCell cell)
{
    base.SetupFilterControls(cell);
    cell.Controls.RemoveAt(0);
    RadComboBox combo = new RadComboBox();
    combo.ID = ("RadComboBox1" + this.UniqueName);
    combo.ShowToggleImage = false;
    //combo.Skin = "Office2007";
    combo.EnableLoadOnDemand = true;
    combo.AutoPostBack = true;
    combo.MarkFirstMatch = true;
    combo.Height = Unit.Pixel(100);
    combo.ItemsRequested += this.list_ItemsRequested;
    combo.SelectedIndexChanged += this.list_SelectedIndexChanged;
    cell.Controls.AddAt(0, combo);
 
    ImageButton button = new ImageButton();
    button.ImageUrl = "~/images/delete.gif";
    button.Click += this.button_Click;
    button.CssClass = "ClearButton";
    cell.Controls.AddAt(1, button);
 
    cell.Controls.RemoveAt(2);
}
What should I do inside button_Click handler?

TIA
Princy
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
72 views
Hi, I use the gria as like this example (http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx) with an externale Usercontol for Add or Edit record.

My grid have many filters and the grid is not populate in page load but when I press a button for filter.

If I don't click the button I don't see the Grid... but in this scenario if I want insert a new record I must search before, populate the grid and after I can see the "Add New Record" button of the grid,

This is a way for see this button with the grid empty ?

Thanks,
Marco


Shinu
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
94 views
We are using VS2010 and ASP.NET 4, and the most recent Telerik RadControls for ASP.NET AJAX (Telerik.Web.UI_2011_2_915).  What I'm trying to sort out is whose "ScriptManager" to use and what the tradeoffs are.


First, of course, there's the asp:ScriptManager, then there's the AJAXControlToolkit:ToolkitScriptManager, and then there's the telerik:RadScriptManager.

Our website has evolved over time, with different developers implementing things, well, differently, and as a result we have examples of pages and usercontrols referencing each one of those.  I'd like to move the markup for the ScriptManager into our MasterPage.   Can you provide any guidance on what should be done here?  Why would we choose the RadScriptManager over the asp:ScriptManager?  Is there a downside?

We are moving more and more towards telerik-based grids and a few of the other controls, and I'm trying to move away from the AJAXControlToolkit altogether.  We are also looking to go towards the use of more jQuery, but it looks like telerik has its own version of that too.

But I find the Telerik online and installed documentation to be "mixed" bag of references.  And it's not clear to me what path we should take.   Any details you can provide would be greatly appreciated.

Princy
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
151 views
Hi,

I want to Response.Redirect to another page when the user clicks the button and exports the list to excel. However, the user right now is sent to the other page before the exporting is completed and the list is never exported. So is there a way if I can check if my exporting is done and then transfer the user? There is an internal method IsExporting which could be useful, but there is no way to use this method? Anyone have any ideas?

I am using 2009 Q2 tools. 
Shinu
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
124 views
Hi:
I have a chart with one of the axis is a numeric month, i.e. Jan 2009 = 2009*12+1, but I also have a column with a string alias (MonthName).  I would like to display the string, instead of the number.
Thanks,
Phil
Phil
Top achievements
Rank 2
 answered on 31 Oct 2011
1 answer
76 views

Hi everyone,

 

I have an issue regarding column editors. This is the scenario:

I have a radgrid with 3 columns. Two of them are GridDateTimeColumns, the other is a GridNumericColumn.

In edit mode (using“PopUp”) I select both dates. As soon as I select the second date I want to calculate the difference between these two dates and place the result (in years) into the NumericColumn. But I do not want to do this in the server side (SelectedDateChanged event). Instead, I want to perform this functionality in the client side in order to make it more “Dynamic” to the user.

I understand I have to program this within the ItemCreated event and include a javascript function in my aspx.

My problem is that I have not been able to find an attribute that I can add to the second GridDateTimeColumnEditor in order to fire an event as soon as I select the date from the calendar.

This is what I have so far but does not work as I expected: (the Onclick or Onblur events force me to place focus on the dateinput of the second datepicker in order to fire the calculation. I want this to happen as soon as I select the date.)

C#:

protected void RgridSigPoros_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridEditableItem && (e.Item.IsInEditMode))
    {
        GridEditableItem item = e.Item as GridEditableItem;
  
        GridDateTimeColumnEditor editorFechaFuga = (GridDateTimeColumnEditor)item.EditManager.GetColumnEditor("FechaFuga");
        GridDateTimeColumnEditor editorFechaFabrica = (GridDateTimeColumnEditor)item.EditManager.GetColumnEditor("FechaFabrica");     
        GridNumericColumnEditor editorTiempoUso = (GridNumericColumnEditor)item.EditManager.GetColumnEditor("TiempoUso");
          
        editorFechaFabrica.PickerControl..Attributes.Add("onfocus", "return CalculateDiffDate('" + editorFechaFuga.PickerControl.ClientID + "','" + editorFechaFabrica.PickerControl.ClientID + "','" + editorTiempoUso.NumericTextBox.ClientID + "')");
        editorTiempoUso.NumericTextBox.Enabled = false;
    }
}

javascript
function CalculateDiffDate(DPoroID, DFabricaID, CTotalID)
{      
    var DatePoro = $find(DPoroID).get_selectedDate(); 
    var DateFabrica = $find(DFabricaID).get_selectedDate();  
    var TiempoUso = $find(CTotalID);   
        
    //Set 1 day in milliseconds  
    var one_day=1000 * 60 * 60 * 24 ;
    //Calculate difference btw the two dates, and convert to years
    var total = Math.ceil((DatePoro.getTime()-DateFabrica.getTime())/(one_day))/365;
  
    TiempoUso.set_value(total);
}

I hope my question is clear enough and looking forward to hearing from you guys real soon.

Thanks in advance,

Miguel
Pavlina
Telerik team
 answered on 31 Oct 2011
0 answers
137 views
I installed the trial of RadEditor for SharePoint 2010 on a publishing site. At least, I think I have--used the following 2 installers:
  • Telerik.Web.UI_2011_2_712_Trial
  • Telerik_AJAX_Controls_For_Sharepoint2010_2011_2_712_Trial

When editing a publishing page, I expected that the RadEditor would be available within the Page Content rich-text field. However, only the default SharePoint ribbon is available.

"Use RadEditor to edit HTML fields" is enabled on the Manage Site Features screen and I am able to use the RadEditor web part within a web part zone.

Are there any installation steps that I overlooked? Are there detailed installation and configuration instructions available?

Edit: I just found http://www.telerik.com/help/aspnet-ajax/moss-sp2010-using-radeditor-in-web-content-management-scenario.html -- after registering the assembly and adding the control to the page layout, they RadEditor appears as expected.
Chris
Top achievements
Rank 1
 asked on 31 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?