Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
84 views
Hi,
I recently upgraded application from MOSS 2007 to SharePoint 2010  using .net framework 3.5 and telerik 2011.2.915.35 version. As a result, now the module throws the following run time errors upon execution.

When the page is loaded for the first time with the table row hidden via java script function and after a partial (UpdatePanel) postback is initiated the RAD Grid control inside table row is shown with data but the Java Script error occurs (shown below)

Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: http://Server:1234/ScriptResource.axd?d=FEmGdL_zqjCerpI-0jAKwWndRQkkKFCtSZ2SnyE46Qd7JxCDXnuTED5ZxqgOfdK7q8LOFMqK0CTtwbhhsJJfRj0zClLogNdsRwl7AAIoqBeM7_ZazKIWJ1mvV7_4Al0ivEzaUkOHwHBoWLpFgOszAkLD-VRtdpHaFsp6J00EAWcHzkAn0&t=fffffffff9d85fa6


when i execute it directly in the browser from a Mozilla firfox it works.

Any help is very much welcome :)

Regards
Akhil Sachdeva

Akhil
Top achievements
Rank 1
 asked on 31 Jan 2012
1 answer
94 views
I am quite new to ASP.NET Ajax, so bear with me if this is a simple question or if I have missed a demo that matches these requirements.

I am looking at porting the notion of 'variable drill down' from an existing Winform financial application.

Imagine a grid displaying summary company financials.  One of the lines is inventory.  The user can directly enter a dollar value for inventory, or by double clicking gets a new dialog that allows detailed entry of inventory information (Description, Qty, Value,etc).
Another line might debt.   Again, the user can enter a single value for total debt, or by double clicking bring up a data a dialog that allows the entry of loan information (Description, interest rate, amount of loan, payment frequency, etc).

Having looked at the various Grid demos -- there are interesting capabilities there, but it was not clear if the variable drill-down functionality can be done natively.  If not, what would be best approaches to achieve a comparable functionality.

Thanks up front for suggestions.

Bob
Andrey
Telerik team
 answered on 31 Jan 2012
4 answers
156 views
Hello,

 I am using Ajax model pop up ,rad window and rad editor on the same page.Now,my telerik edior and telerik rad window are not working.
Previously,I dont have rad window on my page where I am using rad Editor.That time It worked fine.Now,as per our requirements,I newly added rad window to it and I am using that as a model pop up on my page.Now,the problem is on my head,becuase of this,rad ediotor behaving viard ,it has been disabled,I am unable to click any of the buttons on the rad edior and I am unable to type into it.In other pages it is working fine.

I googled it.I am helpless,I dont find any solutions to my problem.

I am grateful to you people.If you respond back ASAP.


Thank you.

Vishnu Vardhan Reddy
Top achievements
Rank 2
 answered on 31 Jan 2012
0 answers
74 views
Hi,

I recently upgraded application from MOSS 2007 to SharePoint 2010  using .net framework 3.5 and telerik 2011.2.915.35 version. As a result, now the module throws the following run time errors upon execution.

When the page is loaded for the first time with the table row hidden via java script function and after a partial (UpdatePanel) postback is initiated the RAD Grid control inside table row is shown with data but the Java Script error occurs (shown below)


when i execute it directly in the browser from a Mozilla firfox it works.

Kindly let us know how can we resolve this issue.

Regards,
Rohan Kondvilkar
rohan
Top achievements
Rank 1
 asked on 31 Jan 2012
3 answers
51 views
Hi,

I tried to implement the demo located here:
http://www.telerik.com/help/aspnet/grid/grdsavingsettingsonperuserbasis.html 

The demo was written for the old set of controls; I tried to use the code against the latest version of RadGrid and get the following error:

Unable to cast object of type 'System.Collections.ArrayList' to type 'System.Object[]'.


getting thrown here, when trying to read the settings:

Dim gridSettings() As Object = CType(formatter.Deserialize(reader), Object())


I literally just copy/pasted the demo code into my app and changed the "Telerik.WebControls" reference to "Telerik.Web.UI" instead...

Note, I'm saving and reading the settings to a cookie.
Also tried saving to session (StateServer enabled) and get the same error.

Quick fix?
Andrey
Telerik team
 answered on 31 Jan 2012
2 answers
151 views
i have placed one rad grid with the following settings in my app.

<telerik:RadGrid ID="rgAppSearch" EnableEmbeddedSkins="false" ShowHeader="true" AllowFilteringByColumn="true"
        EnableLinqExpressions="true"
        AutoGenerateColumns="False" Skin="Default" PageSize="10"
        AllowSorting="True" GridLines="None" runat="server" AllowPaging="true">
<PagerStyle AlwaysVisible="true"  />
</telerik:RadGrid >

everything is working fine but when i hover the mouse in the footer it showing the text "Next","Previous". how to hide this in pager template.
sudhesh
Top achievements
Rank 1
 answered on 31 Jan 2012
1 answer
653 views
I need to always display 4 decimal places in my numeric textbox. I've set DecimalDigits = 4 and set Keep Trailing Zeros to True, but when control loses focus, the trailing zeros disappear. What do I need to set to always show 4 decimal places (with trailing zeros if needed)?

Here is my code:

<telerik:RadNumericTextBox runat="server" ID="Longitude" Width="75" EmptyMessage="Lon" Skin="Vista"
        AllowOutOfRangeAutoCorrect="False" MaxValue="0" DataType="System.Decimal"
        EnableSingleInputRendering="True">
   <NumberFormat AllowRounding="False" DecimalDigits="4" KeepNotRoundedValue="True"
           KeepTrailingZerosOnFocus="True"  />
</telerik:RadNumericTextBox>

Shinu
Top achievements
Rank 2
 answered on 31 Jan 2012
3 answers
102 views
Hello,

In the Asp.Net Grid view control I would add three attributes that would allow the row to change color when highlighted and when a row was clicked on it would call the gridview_rowcomand event.

I would like to be able to do this in the RadGrid. Here is what I have so far:

 protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
        {  
 
            if (e.Item is GridDataItem )  
            {  
 
 
                e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor='Silver'");  
                e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFF'");     
                e.Item.Attributes["onclick"] = Page.ClientScript.GetPostBackClientHyperlink(this.RadGrid1, "Select$" + e.Item.ItemIndex,true);  
 
 
            }  
 
 
        } 

When I click on the row a post back fires but the Item_Command event is never called. How can I make this work? Here what I want to do:

1) Change BG color on Hover - done
2) When User clicks on a row preform a server side postback that tells me what row was selected.

Thanks
Shinu
Top achievements
Rank 2
 answered on 31 Jan 2012
1 answer
86 views
Hello,

I'm adding columns to my RadGrid during runtime, dynamically. The page size is set on the server side based on a configuration setting. The width should be dependent on the number of columns and size of each. I've enabled scroll bars using "AllowScroll=True" and "UseStaticHeaders=True". If the width of the grid stretches beyond the page, it displays a horizontal scroll bar.

1) Is it possible to set the column width to fit the content of the column?

2) Is it possible to have a floating width? This means, the width is dependent on the number of columns and size of each column. My grid currently looks great when it stretches the entire page width.



Princy
Top achievements
Rank 2
 answered on 31 Jan 2012
4 answers
275 views
Hi,
I want to call dayrender event when the user click on caledar icon (when it popsup)

so that i can do some changes to dates of that current month styles.

or is there anyway i can call/fire the dayrender event though any javascript function..
Thanks
-Krishna
John
Top achievements
Rank 1
 answered on 31 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?