Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
339 views
There're a class named 'RadDocument' and a class named 'HtmlFormatProvider', through which we can convert a html stream to an instance of class 'RadDocument', then we can get an xaml string using 'XamlFormatProvider'. Are there any equivalents in ASP.NET AJAX library instead of 'HtmlFormatProvider' and 'XamlFormatProvider' to support the conversion between html and xaml? 
Rumen
Telerik team
 answered on 27 Feb 2013
3 answers
190 views
Hi,
When inserting a new record to radgrid i had an error "insert item is available only when grid is in insert mode."
But the updating the values works perfect. I need to fix this issue quickly.










Thanks
Eyup
Telerik team
 answered on 27 Feb 2013
0 answers
68 views
Hi there,

I need samples for two scenarios:

1) I have RadListBox, based on the values selected, others controls (RadTextBox, RadComboBox,RadListBox, RadRadioListBox etc) will be visible to the user. If user made some changes on these controls and again changed the values of Main RadListBox, It should prompt the user that ‘ You have made some changes but not saved, do you still want to move away(select a new item)?’.
2) Whenever user navigate away from one page to another page, it should prompt like: ‘Do you want to move away?’
Thanks Regards, Mayil
MAYIL
Top achievements
Rank 1
 asked on 27 Feb 2013
2 answers
425 views
hello, i want to create a dynamic text box that it can enable/disable by OnClientCkeckChange of a Radcheckbox button ...my code is :

   <script type="text/javascript">
        function changedclient() {
 
            var textBox = $find("RadTextBox1");
            var button = $find("RadButton1");
            if (button.get_checked()) {
 
                textBox.set_value("");
                textBox.disable();
                
            }
            else {
 
 
                textBox.enable();
            }
        }
     
    </script>
 
 
-------------------------------------------
 
 <asp:ScriptManager ID="RadScriptManager1" runat="server"></asp:ScriptManager>
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" />    
        <telerik:RadButton ID="RadButton1" runat="server" AutoPostBack="False" ToggleType="CheckBox" ButtonType="ToggleButton" OnClientCheckedChanged="changedclient()">
        </telerik:RadButton>
 
        <br/>
        <telerik:RadTextBox ID="RadTextBox1" runat="server" Font-Names="tahoma">
            <FocusedStyle BackColor="#FFFFCC" BorderColor="Red" />
        </telerik:RadTextBox> 
.
.
.
.

But not working....
Shinu
Top achievements
Rank 2
 answered on 27 Feb 2013
1 answer
87 views
Referring to the image attached, I have this problem when i set the grid's width to 100%. Is there any other method to solve this..
Yew
Top achievements
Rank 1
 answered on 27 Feb 2013
0 answers
118 views
At the moment I have to break down this simple operation in two parts, I am sure the would be a better way is hiding from me :

List<int> selectedValues= new List<int>();
 
.
.
.
 
IEnumerable<RadComboBoxItem> checkedItems = from checkedItem in cblMagistrateCourts.Items.ToList()
                                                                where checkedItem.Checked == true
                                                                select checkedItem;
                    foreach (RadComboBoxItem item in checkedItems)
                    {
                        if (item.Checked)
                            selectedValues.Add(Convert.ToInt32(item.Value));
                    }
Aarsh
Top achievements
Rank 1
 asked on 26 Feb 2013
4 answers
1.0K+ views
Hi, I'm new to using the controls and I was wondering what the RadControl equivalent of an update panel is and how it works.

JG.
Pavlina
Telerik team
 answered on 26 Feb 2013
4 answers
194 views
Hi there,

Is there any way to remove the numeric numbers in the pager, at the same time keep the page size drop down list? If I set <PagerStyle Mode="NextPrev"></PagerStyle>, then the page size drop down list disappears.

Any help is greatly appreciated.

screenshot attached.
Meng
Top achievements
Rank 1
 answered on 26 Feb 2013
1 answer
572 views
We are using Telerik ASP.Net AJAX RadGrid and it has 1500+ Records to display.
We are not providing Grid Pagination as customers do not want the Grid to have Pagination.
On Production Servers,we are getting the below mentioned error.
The below mentioned error is from Event Logs.

1) Exception Information
*********************************************
Exception Type: System.OutOfMemoryException
Message: Exception of type 'System.OutOfMemoryException' was thrown.
Data: System.Collections.ListDictionaryInternal
TargetSite: System.Web.UI.StateBag get_ViewState()
HelpLink: NULL
Source: System.Web

StackTrace Information
*********************************************
   at System.Web.UI.Control.get_ViewState()
   at System.Web.UI.WebControls.Label.set_Text(String value)
   at ASP.inventory_physicalinventorycapture_aspx.__DataBinding__control53(Object sender, EventArgs e)
   at System.Web.UI.Control.OnDataBinding(EventArgs e)
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
   at System.Web.UI.Control.DataBind()
   at System.Web.UI.Control.DataBindChildren()
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
   at System.Web.UI.Control.DataBind()
   at System.Web.UI.Control.DataBindChildren()
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
   at System.Web.UI.Control.DataBind()
   at Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows)
   at Telerik.Web.UI.GridItemBuilder.InitializeItem(Int32 dataSourceIndex, String& nextItemHierarchicalIndex, Boolean& itemIsInEditMode)
   at Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.Web.UI.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.Web.UI.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup, Boolean& isGroupFooter)
   at Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.Web.UI.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.Web.UI.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup, Boolean& isGroupFooter)
   at Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls)
   at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)
   at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
   at Telerik.Web.UI.GridTableView.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
   at Telerik.Web.UI.GridTableView.DataBind()
   at Telerik.Web.UI.RadGrid.DataBind()
   at ApplicationLayer.Webpages.PhysicalInventoryCapture.loadPage()
   at ApplicationLayer.Webpages.PhysicalInventoryCapture.saveIncompleteButton_Click(Object sender, EventArgs e)
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

On our local environment,a grid with 758 records is generating ViewState size of 0.42 MB.
I am using the RadGrid.ViewStateSize Property to get the size of ViewState.

So,is this error due to large amount of Viewstate that is been generated?.
Shall I disable the Viewstate on the Grid and re-design the Grid?
Please can you provide me any pointers?

Regards
Jignesh




Jayesh Goyani
Top achievements
Rank 2
 answered on 26 Feb 2013
6 answers
236 views
I have a unique situation where I want the left Y axis in my line chart to show the values so that the larger number is at the bottom... for example 100 up to 0, vs the standard format of a bottom 0 line that increments up to 100.  Basically I just want to reverse the order of the left Y axis data.

Is there any easy way to do this?

Any help is greatly appreciated.

John
Sérgio
Top achievements
Rank 1
 answered on 26 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?