Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
196 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
575 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
242 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
0 answers
88 views
What I am trying to achieve is I have a Radgrid and when user clicks on it I am showing the Details View and making a User Control Visible. If the user clicks on "Process" Button (in the user control) it takes them to another page and makes them fill out some details.
This part is done. 

Now after filling the details if the user clicks on go to testpage again (I have the Id of the record) I need to open the rad grid's detail view with that Particular ID. Can it be done or is it not possible?
Sima
Top achievements
Rank 1
 asked on 26 Feb 2013
5 answers
254 views

I created a custom skin using version 2011.3.1305.35 as a basis for my skin. I just recompiled my custom skin using version 2012.3.1308.35 and have found that the changes you made to the combobox have caused my custom skin to look rather crappy. I am now getting the left side of a down-arrow image showing up on the right side of my image. See the attached file customcombobox.png. The file Vistacombobox.png is from your current skin dll and renders fine. I have spent a LOT of hours building our company a custom skin and now I wonder what else is broke. I really don't want to redo all the sprites that you have changed and we need some of the bug fixes you have in your newer versions, so I am stuck at this point in time with crappy looking graphics in order to fix bugs we encountered. Suggestions!?!?!?

<td>
   <telerik:RadComboBox runat="server" ID="ddlDestinationPayerLevel" MaxHeight="150px"
          AllowCustomText="false" Width="150px" TabIndex="12">
   </telerik:RadComboBox>
</td>
Hristo Valyavicharski
Telerik team
 answered on 26 Feb 2013
1 answer
91 views
Hi,

When I make a change to the schedule, I start getting the following error when I MouseOverover on the Scheduler Appointments:

"Microsoft JScript runtime error:Unable to get value of the property 'get_allowDelete': object is null or undefined"

I am using Telerik version:v4.0.30319 and IE 9 as browser.

Please find the attached script error for your reference.

Could you please let me know how to resolve this error.

Thanks and Regards,
Chandu.D


Helen
Telerik team
 answered on 26 Feb 2013
2 answers
108 views
I am creating RadDocks dynamically.  Each RadDock is created with a custom control (ascx).  I have a RadDock command which displays a dialog in a RadWindow which allows me to change values in the custom control in the RadDock and also the size and title of the RadDock.  All this works except changing the size of the RadDock.  (I'm even able to change the title of the RadDock without a problem.)

After the first creation of the RadDock, on postback the RadDocks are re-created in Page_Init using the Rad Dock states - and then I apply my new dock width after I apply the state.  What am I missing?
Protected Sub Page_Load(sender As Object, e As System.EventArgs)
If Not IsPostBack Then
'CreateRadDock() routine is eventually called from here along with some other stuff that I don't think is relevant
End If
End Sub
Protected Sub Page_Init(sender As Object, e As System.EventArgs)
'Recreate the docks in order to ensure their proper operation
If IsPostBack Then
UpdateZone()
End If
End Sub
Private Function CreateRadDock(Title As String, SectionCount As Integer) As RadDock
Dim dock As New RadDock()
dock.DockMode = DockMode.Docked
dock.UniqueName = Guid.NewGuid().ToString().Replace("-", "a")
dock.ID = String.Format("RadDock{0}", dock.UniqueName)
dock.Title = Title
'dock.Text = String.Format("Added at {0}", DateTime.Now)
dock.Width = Unit.Pixel(270 * SectionCount)
dock.Resizable = True
dock.Height = Unit.Pixel(400)
dock.Skin = "Office2010Black"
'RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(dock, RadDockZone1, RadAjaxLoadingPanel1)
AddHandler dock.Command, AddressOf dock_Command
dock.Commands.Add(New DockCloseCommand())
dock.Commands.Add(New DockExpandCollapseCommand())
SetPropertiesCommand(dock)
Return dock
End Function
Sub UpdateZone()
RadDockZone1.Controls.Clear()
Dim i As Integer = 0
While i < CurrentDockStates.Count
Dim dock As RadDock = CreateRadDockFromState(CurrentDockStates(i), i)
RadDockLayout1.Controls.Add(dock)
'We want to save the dock state every time a dock is moved.
CreateSaveStateTrigger(dock)
System.Math.Max(System.Threading.Interlocked.Increment(i), i - 1)
End While
End Sub
Private Function CreateRadDockFromState(state As DockState, PanelOrder As Integer) As RadDock
Dim PanelID As String = String.Format("RadDock{0}", state.UniqueName)
Dim panel As clsDashboardPanelMapItem = New clsDashboardPanelMapItem()
panel = Session(PanelID)
Dim properties As Hashtable = Session("properties_" & panel.PanelID & "_" & panel.SectionCount)
Dim dock As New RadDock()
dock.DockMode = DockMode.Docked
dock.ID = PanelID
dock.Skin = "Office2010Black"
dock.ApplyState(state)
dock.Width = Unit.Pixel(270 * properties("PanelCount"))
dock.Height = Unit.Pixel(400)
dock.Title = properties("PanelTitle")
'Load the custom control
Dim UserControl As Control = SetSection(panel.PanelModulePath, properties("PanelTitle"), panel.PanelDesc, properties, Nothing, properties("PanelCount"), panel.PanelID, panel.SectionCount, panel.ObjectName)
dock.ContentContainer.Controls.Add(UserControl)
AddHandler dock.Command, AddressOf dock_Command
dock.Commands.Add(New DockCloseCommand())
dock.Commands.Add(New DockExpandCollapseCommand())
SetPropertiesCommand(dock)
Return dock
End Function
Private Sub CreateSaveStateTrigger(dock As RadDock)
'Ensure that the RadDock control will initiate postback
' when its position changes on the client or any of the commands is clicked.
'Using the trigger we will "ajaxify" that postback.
dock.AutoPostBack = True
dock.CommandsAutoPostBack = True
End Sub
Sub SetPropertiesCommand(dock As RadDock)
Dim propCmd As DockCommand = New DockCommand()
propCmd.Name = "Properties"
propCmd.Text = "Properties"
propCmd.CssClass = "DockPropertiesCommand"
propCmd.AutoPostBack = True
dock.Commands.Insert(0, propCmd)
End Sub

<telerik:RadDockLayout ID="RadDockLayout1" runat="server" Skin="Default" OnSaveDockLayout="RadDockLayout1_SaveDockLayout"
    OnLoadDockLayout="RadDockLayout1_LoadDockLayout" StoreLayoutInViewState="True">
    <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="1400px" Width="1100px" Skin="Black" Orientation="Horizontal">
 
    </telerik:RadDockZone>
</telerik:RadDockLayout>

Any help is appreciated. Thanks.

Hunter
Top achievements
Rank 1
 answered on 26 Feb 2013
1 answer
298 views
Hello,
i've the problem...on my web page there's a radmenu and from this page i call with radmenu a radwindows..if the resolution of the user's screen is low radwindon instead of staying above the radmenu appears below .. how can I do?

see the image that i posted

Marin Bratanov
Telerik team
 answered on 26 Feb 2013
3 answers
96 views
Hello Team,

I am using a rad window to update the content in my grid, I got a sample from telerik forums and I am using it. It did worked fine for me.

I used java script to open the rad window from the code base rad grid item created.

this is in .aspx page :

    function RefreshrgUnitTypesGrid() {

        var masterTable = $find("<%= rgunitTypes.ClientID %>").get_masterTableView();
        masterTable.rebind();

    }




    function ShowEditFormrgTypes(id, rowIndex) {


        var gridunitTypes = $find("<%= rgunitTypes.ClientID %>");

        var rowControl = gridunitTypes.get_masterTableView().get_dataItems()[rowIndex].get_element();
        gridunitTypes.get_masterTableView().selectItem(rowControl, true);

        window.radopen("../ERP/NormalPages/AddUnitTypes.aspx?ID=" + id, "UserEditUnittype");

        return false;
    }


 this is in item created:

    ImageButton imgBtnEditTenancy = (ImageButton)e.Item.FindControl("imgBtnEditTenancy");
                    imgBtnEditTenancy.Attributes["onclick"] = String.Format("return ShowEditFormrgTypes('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"], e.Item.ItemIndex);

and here is my window:

     <telerik:RadWindow ID="UserEditUnittype" runat="server" Title="Edit Unit Type" Height="320px"
                Width="310px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false"
                Modal="true"  onclientclose="RefreshrgUnitTypesGrid">
            </telerik:RadWindow>



----- problem is , I am able to see a rad window ,but not this "UserEditUnittype" where I mentioned height ,width and title. One rad window is popping up where I was surprised see that which don not all the properties that I mentioned. I am attaching a screen shot. can some one please look into that issue for me?


Marin Bratanov
Telerik team
 answered on 26 Feb 2013
13 answers
272 views
The scheduler opens the edit form (in my case a custom form) when I double click on the appointment.

I now have a requirement to generate an Ajax requires on a client-side single click. Having written the code to do this I can't get a double click to fire the default action, ie open the custom form.

What am I missing?

-- 
Stuart
Dimitar Terziev
Telerik team
 answered on 26 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?