Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
Is there a way that the RadGrid can continuously accept record rows using only the keyboard (tab key?) without having the need to click the Add New Record button repeatedly?

Thank you.

Aaron 
Eyup
Telerik team
 answered on 01 Dec 2014
1 answer
86 views
We have a challenging problem that we need help with.   We are implementing a custom grid control
and using web part settings to enable/disable certain columns and buttons in
the control.   The issue is that when you
click to apply the web part settings and enable a column for example, the grid
does not change.    Furthermore, when you
refresh the page you get a Failed to Load Viewstate error.

 

The grid is created as a custom Sharepoint Web Part and then
adding the grid in CreateChildControls programmatically.

 

However, we are having the following issue with applying web
part settings that change the grid layout.

 

If you go into the web part settings for the grid and change
a setting that changes the grid layout (e.g. display edit button column) it
causes a Failed to Load Viewstate error on refresh.   If you close the browser and reopen it, it
works fine (edit column is displayed).  
Since the control layout is saved in the viewstate, this error makes
sense.  However, the question we need
help with is how to refresh the page programmatically when any web part setting
is changed so that the changes to the grid display.

 

The Web Part Editor fires an ApplyChanges event when you
click Ok or Apply.   This is what saves
the changes.   However, if we put a page
redirect in this method to refresh the page, then the web part setting changes
are not saved. 

 

What I need is a way first to detect whether any changes
were made to the web part settings and then if changes were made, to refresh
the page including the viewstate. 

 

If you look at the page lifecycle events below, this
detection would have to happen somewhere after ApplyChanges and somewhere
before the page is rendered.  Maybe in
SyncChanges?

 

 

 

Steps to Simulate Error

 

1. Create a simple grid in Sharepoint by inheriting from a
grid component

2. Create a web part setting that enables/disables one of
the columns.

3. Select to enable the column and then click Apply and then
Ok

 

Event Firing Sequence During Issue

 

Checked Enable Edit Column and then clicked Apply in the Web
Part Editor pane

SPGridWebPart Constructor <- This causes a postback and
it goes through the page lifecycle again

Event OnInit

Event CreateChildControls

Event SPGridEditor:CreateChildControls

Event Page Load

Event grid_Load

Event SPGridEditor:ApplyChanges <- The change to the edit
column enabled setting is done here, but after the child controls are already
created

Event SPGridEditor:SyncChanges

SPGridWebPart Constructor

Event Page Load Complete

Event OnPreRender

Event grid_PreRender <- Page is rendered without the edit
column even though box is checked to show the edit column

Event SPGridEditor:RenderContents

Clicked Ok in the web part editor pane

SPGridWebPart Constructor

Event OnInit

Event CreateChildControls

Failed to load viewstate error

 

Code Snippets Showing the Web Part Setting for
Enabling/Disabling Edit Column

 

        const Boolean c_boolEnableEditColumn = true;

        private
Boolean _boolEnableEditColumn;

       
[Category("Custom - Basics"),

       
Personalizable(PersonalizationScope.Shared),

       
WebBrowsable(true),

       
DefaultValue(true),

        WebDisplayName("Enable
Edit Column"),

       
WebDescription("Show an edit column with an edit button for each
item")]

        public Boolean
boolEnableEditColumn

        {

            get {
return _boolEnableEditColumn; }

            set {
_boolEnableEditColumn = value; }

        }

 

 

        public
SPGridWebPart()

        {

                                boolEnableEditColumn
= c_boolEnableEditColumn;

                }

 

 
Marin
Telerik team
 answered on 01 Dec 2014
1 answer
125 views
I have telerik RAD menu on my aspx page. The menu bind dynamically
starting from right to left.
But if I have only one parent menu then it submenus start cutting off
the screen, the problem is no longer persists if we have more than one
parent menu(in this case telerik classes handle it automatically). Also i
didn`t use any custom class over it.

here is my RAD Menu code in aspx page:
<telerik:RadMenu runat="server" ID="rdmnMainMenu" EnableAutoScroll="true" EnableRootItemScroll="true"
EnableRoundedCorners="true" EnableShadows="true" EnableOverlay="true" OnItemCreated="rdmnMainMenu_ItemCreated" Skin="Default" AutoSkinMode="false" OnClientItemClicked="mnuMain_clicked"
OnClientItemClosed="mnuMain_closed" Width="100%" OnClientMouseOut="mnuMain_MouseOut"
OnClientMouseOver="mnuMain_MouseOver" ClientKey="mnuMain_app" >
</telerik:RadMenu>


I have attached screenshots of error menu and expected menu.
see the img below
<img  src="http://i.stack.imgur.com/vO5QC.png">
<img alt="Expected RAD Menu" src="http://i.stack.imgur.com/lqxnw.png">

Thanks in advanced.
Peter Filipov
Telerik team
 answered on 01 Dec 2014
7 answers
3.3K+ views
<telerik:RadDatePicker ID="StartDateTextBox" MinDate='<%# DateTime.Now() %>'  OnInit="StartDatePicker_Init" DbSelectedDate='<%# Bind("StartDate") %>' runat="server" Width="120"  PopupDirection="BottomRight" EnableMonthYearFastNavigation="false" TitleFormat="MMMM yyyy"    >
                       <Calendar ID="Calendar1" runat="server" CssClass="calendarBook" ShowRowHeaders="false" ></Calendar>
                       <DateInput ID="DateInput1" runat="server" Enabled="false" DateFormat="dd-MMM-yyyy"  ></DateInput>
                    </telerik:RadDatePicker>

I have this date picker on my radgrid insert form.
I want to set the current dbselected/selected date to today, and also show the current date in the DateInput text.
So... basically default the "StartDate" above to the current date.

I can't seem to find the right code to get todays date to appear in the DateInput box.
I have it enabled="false" as I want users to only use the datepicker for dates, except for the initial default date of today.
Maria Ilieva
Telerik team
 answered on 01 Dec 2014
1 answer
34 views
Hi ,

   I am using RadDataPager SEO Paging in RadListView.

How can I change the url when I clicked the 1st page using radDataPager
/examples/raddatapagerseopaging/defaultcs.aspx?RadListView1=1

to
/examples/raddatapagerseopaging/defaultcs.aspx

Regards,
Madhu Maddi 
Kostadin
Telerik team
 answered on 01 Dec 2014
1 answer
58 views
I want to reuse/replicate the little X icon at the right side of the texbox when editing the datevalue of RadMonthYearPicker

I will implement my own onclick event for it

anyone know how to reuse/replicate the little X icon ?
Konstantin Dikov
Telerik team
 answered on 01 Dec 2014
1 answer
114 views
I just implemented a RadTreeView that has checkboxes on Parent Nodes, but no checkboxes on Child Nodes.  I achieved this by handling the NodeDataBound event and setting the child node checkboxes to display='none';.

Works great.

The problem I have is that there's another treeview on the same page and my checkboxes re-appear when I expand nodes in the other treeview.
Bozhidar
Telerik team
 answered on 01 Dec 2014
6 answers
138 views
Hi all,

I'm using ExportStructure to export the grid to Excel.
I create a Table named tb and use tb.Cells to write contents.

However, tb.Rows.Count is always zero, even when data is there. Export happens as expected though.

Any idea?

I have to know how many rows a given Table (of ExportStructure) has.

Thank you!
Kostadin
Telerik team
 answered on 01 Dec 2014
1 answer
98 views
I am using Telerik Grid inside the Asp.net Ajax Update Penal.

To make my grid settings persistent based on Users , using Telerik GridSettingsPersister framework in my code.

Issue is :
1. Rearrange the Grid columns for 'user1' (dont  save the settings)
2. Select 'user2' , it should load the grid based on user2 settings which is saved in db inseated of it is loading grid as step1 grid .

bjGspSavedGridSettings.LoadSettings(objGspSavedGridSettings.Settings.ToString());
PageGridView.Rebind();

This behavior is happening sometimes not all the times .


Viktor Tachev
Telerik team
 answered on 01 Dec 2014
2 answers
250 views
How to find the sum of columns of a radgrid and show it on the footer






Radoslav
Telerik team
 answered on 01 Dec 2014
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?