Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
61 views
Referring to your forum post of the same title it is stated:

Q3 2011 (Version number: 2011.3.1115)

Probem
: When adding items to OData enabled controls (RadMenu, RadTreeView, RadListBox, RadComboBox) through design time erroneous markup is applied to the control:
Solution: Remove the ODataSetting section and the issue will vanish. The problem is also fixed in the Q3 SP1 release, version number 2011.3.1305

Well sorry, but that is not true. I have 2011.3.1305.40 installed and still experienced the problem with RadMenu. Only when I deleted the OData markup did this error disappear.
Incidentally, I was pulling my hair out for some time over this error as I could only think there was a reference somewhere in the project to an older version dll as well as 2011.3.1305.40. This error should never have appeared in any release, so how come it got through all the QA process?

Jonathan
Genady Sergeev
Telerik team
 answered on 31 Jan 2012
0 answers
94 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
108 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
163 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
81 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
55 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
166 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
661 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
109 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
92 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?