Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
195 views

Reorder and resizing of grid columns are occurring client side. When the user hides a column that has been reordered and a rebind occurs server side, although the columns are getting dynamically generated again, there is still a reference to the removed column in the grid and an exception is being thrown (see attached).

Have set the following during grid creation:
ViewStateMode = ViewStateMode.Disabled;
EnableViewState = false;

Have also tried doing a rebind in the client side methods which do the reorder and resize.  This seems to work on reorder (although performance may be an issue) but caused an exception for resize.

I need a way to clear the viewstate of the grid when the server side rebind occurs.  Setting the above settings did not work.

Referenced links:
http://www.telerik.com/forums/how-to-remove-the-radgrid-viewstate-programmatically
http://www.telerik.com/forums/problem-working-with-dynamically-created-radgrid-s

Margaret
Top achievements
Rank 1
 asked on 18 Aug 2017
0 answers
83 views
I have a Reset button on my form that I want to reset any checkbox in the Checkbox column back to being checked if it has been changed to uncheck.  What is the best way to access these checkboxes to change it back?  The Checkbox column is the 8th column on the grid.
Donald
Top achievements
Rank 1
 asked on 18 Aug 2017
0 answers
87 views

When entering data into a cell I can move to the cell on the right by pressing tab, (or the cell below by pressing enter.)

Ideally would like to be able to use the right arrow key to move to the cell on the right.

Is that possible?

Thanks

 

Ben
Top achievements
Rank 1
 asked on 18 Aug 2017
0 answers
89 views

We are having an issue where chained classes are not being applied correctly. We have our custom css file added to the editor. So for example we type the word Button in the editor. In our css file there is a class called .button.ghost. I select the word Button and then select .button.ghost from the Apply CSS dropdown. However it will only apply ghost as the class. 

So it changes Button to 

<span class="ghost">Button</span>

Is there some setting or work around to have the classes applied in a way so the result of selecting .button.ghost would have the result of

<span class="button ghost">Button</span>

Jeff
Top achievements
Rank 1
 asked on 18 Aug 2017
6 answers
2.5K+ views
Dear Friend,

I am creating a entry screen using Telerik Rad Grid in VS 2012. I am using " Batch Edit" mode  of grid. I have requirement of few items whenever user will add row or edit column value. My requirements are...

1. My first column is "Row Number" in grid and I want to generate one sequential number (1,2,3...) automatically when user will add new row.
2. I have 3 columns (price,  number of items and Total Price). I want to automatically generate total Price whenever user will update price and number of items in columns. 

It's very urgent requirement so appreciating your fast response.  

Thanks & Regards,
Raj
roopsundar
Top achievements
Rank 1
 answered on 18 Aug 2017
1 answer
158 views

When pasting data into the Telerik Spreadsheet (using ctrl+v) I get the Page Unresponsive pop-up in Chrome and the Long Script running warning in Internet Explorer. This happens when pasting 3 columns of data (one string, two decimals) over 300 rows.

I have extended the number of rows using RowsCount="1000" in the telerik:RadSpreadsheet tag on the aspx page (.NET 4.0).

Any tips on:

1. Speeding up performance of the paste?

2. How to extend the time before Chrome shows the Page Unresponsive pop-up?  For up to 750 rows the paste will complete after 5 pop-ups are dismissed.

 

Thanks,

Rick

     

Rick
Top achievements
Rank 1
 answered on 18 Aug 2017
7 answers
185 views
Hi there,

I´m new to both ASP.Net and the controls from Telerik. I´m creating a web application which mainly consists of a RadSplitter with a RadPane (navigation) to the left and a RadPane (content) to the right. I have pre-populated the entire tree (since I want performance and no load-on-demand since we max are dealing with 100 nodes). Everything works smoothly but one thing:

When I´m using the event "OnNodeClick", the "content"-panel to the right should load a bunch of data and populate controls on the right panel. So each click on a node should load content to the pane to the right. I also want to be able to double click on a node to both expand the node and also load the content to the right pane. This does not work since two "OnNodeClick"´s are generated and the expand does not work. 

How do I solve this?

Thanks
Arun
Top achievements
Rank 1
 answered on 18 Aug 2017
1 answer
141 views

Hello,

When rendering a grid using Chrome for some reason the checkboxes are not visible (it's fine in firefox, ie 11, edge etc.) - though there are fairly significant differences between all of these usable.  The version of Chrome I'm using is 60.0.3112.90 (64-bit).  I'm not using any special styling or really any advanced techniques - pretty much stock standard grids.  Any help would be great.

Thanks

Vessy
Telerik team
 answered on 18 Aug 2017
3 answers
53 views

Okay I am sure this has been hammered in the forums, but searching has not pulled me back the desired help. We have a grid in a RadWizard. We do NOT want the grid to postback on switching the tabs in the wizard, coming to or going to a different tab. The data is loaded using the NeedDataSource method. I read where setting the EnableViewState=False, it should not hit the NeedDataSource again, after the initial load.

<telerik:RadGrid runat="server" RenderMode="Lightweight" AutoGenerateColumns="false" EnableGroupsExpandAll="true" AllowMultiRowSelection="true" >

 

Regardless of ViewState being true/false, the method NeedDataSource is still being hit, wiping out the GridClientSelectColumn, because of the databinding. We tried setting the RadWizard property RenderedSteps="All" and "Active", but it did not matter. We need the grid to load once and never be loaded again, which is wiping out the checks. This grid is not update-able, editable, its just read only, with the option to check the GridClientSelectColumn.

How can we make this grid load once and never rebind itself again?

 

<telerik:RadGrid runat="server" ID="RadGridFamily" RenderMode="Lightweight" AutoGenerateColumns="false" Height="300px" EnableGroupsExpandAll="true" AllowMultiRowSelection="true" >
                                            <ClientSettings AllowExpandCollapse="true" AllowGroupExpandCollapse="true">
                                                <Selecting AllowRowSelect="true" />
                                                <Scrolling AllowScroll="true" UseStaticHeaders="true" />                                               
                                              </ClientSettings>
                                            <GroupingSettings GroupByFieldsSeparator="      " />
<MasterTableView runat="server" DataKeyNames="FamilyId, MemberId" GroupLoadMode="Client" >
SDI
Top achievements
Rank 1
 answered on 18 Aug 2017
0 answers
85 views

I have this code in my C# code behind page:

protected void gvEmailRedirectMaint_UpdateCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            GridEditableItem editItem = (GridEditableItem)e.Item;
            string ID = (editItem["ID"].Controls[0] as TextBox).Text;
            string RedirectEmailAddress = (editItem["RedirectEmailAddress"].Controls[0] as TextBox).Text;
            string ModifiedBy = userID;

            if ((e.Item is GridEditableItem) && (e.Item.IsInEditMode))
            {
                GridEditableItem edititem = (GridEditableItem)e.Item;
                Regex regex = new Regex(@"^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$");

                TextBox txtbx = (TextBox)edititem["RedirectEmailAddress"].Controls[0];
                txtbx.Width = Unit.Pixel(300);

                Label l1 = new Label();
                l1.Width = Unit.Pixel(300);

                Match match = regex.Match(txtbx.Text);

                if (match.Success)
                {
                    l1.Text = "";
                }
                else
                {
                    l1.Text = "Please enter a valid email address";
                }
            }

 

When the user clicks the Update icon, I want to display a message if the email address is not in the proper format.  I want the error message to display directly to the right of the email address textbox.  But I can't get this to work.  Can anyone help?  

Bob
Top achievements
Rank 1
 asked on 18 Aug 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?