Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 views
Hi,

How can I have a combobox which us allow to check items only in order. ie it should not allow to check 2nd item if 1st is not checked.

Thanks
Shinu
Top achievements
Rank 2
 answered on 06 Jul 2012
1 answer
82 views
I hav a grid that loads a detail table when clicking the expand icons.  This is working fine.  The problem is that when I click the icon to collapse, it reloads the detail table.  I have the ViewStateMode set to Enabled on that page.  I do have several of the grids on the page and each is in its own RadAjaxPanel.

Any ideas?
Tsvetoslav
Telerik team
 answered on 06 Jul 2012
1 answer
87 views
Hello,

I am not sure the best way of asking this without it getting to be a book of explanation.  I need to have the grid be able to have a template all via code to allow me to add columns on the fly.  ( I want the user to simply hit a plus button next to the grid or contained within the grid that adds the column to the end of the grid)  The column header needs to contain a dropdown as well that would get filled upon creation.  

When I commit this data to the database I will need to be able to read the value from the dropdown as that is a foreign key on the underlying table.  

Any help or examples would be appreciated.  

Thanks.
Marin
Telerik team
 answered on 06 Jul 2012
1 answer
122 views
Hi,

I've been creating some graphs using the new Telerik HtmlChart control and have had some issues when trying to allocate a DataLabelField to the X-axis. I have ensured that the table headings have no spaces in them as I read that may be a problem.

I am using :

RadHtmlChart1.PlotArea.XAxis.DataLabelsField = "PriorityID"

The data is displayed in the graph correctly but any attempt to set the x axis is not being applied. The SQL I use provides a column of int (1-12) under the "PriorityID" column heading and a count column of int next to it for the actual data points.

Also on a similar vein is an issue based around legends. Again the data is being populated but unfortunately displaying a legend that is not being shown correctly. It seems to appear as a line of colours but very small and missing any labels to explain the data. I have included a picture to demonstrate the issue.

Both these issues are causing serious problems despite the actual graphing of the data being produced, as both limit the relevance of the data shown. Is this due to a shortcoming of the initial version of the control? Or possibly a mismatch between the mappings to take the axis/ legend data out of the datatable?

Thanks in advance,

Tom
Marin Bratanov
Telerik team
 answered on 06 Jul 2012
0 answers
81 views
I have two grid bound columns (numerator) and (denominator) in the telerik grid. Now I am applying Aggregate="Sum " on both the columns.So at the grid footer level it is showing Sum:2100 and Sum:3000 in the grid footer level for both numerator and denominator columns respectively.Now when I am dragging a particular column on the group panel(means we are grouping by that column),then we are getting the above calculation at each group level in group  footer.Now I need to access those group footers in such a way that in the third hidden column's group footer it gives me calculation of 2100/3000.So is it possible to access group footers??    
Anuj
Top achievements
Rank 1
 asked on 06 Jul 2012
6 answers
1.0K+ views
Hi there
 I am using Rad-menu for an application. I want to display rad-menu in following format

Mainmenuitem1: Subitem1-subitem2-subitem3
mainitem2: subitemA- subitemB-subitemC
mainitem3

Vertical Menu Items with Horizontal Submenus
Please advise how to do this.
Thanks
Gandharv
Top achievements
Rank 1
 answered on 06 Jul 2012
1 answer
152 views
Hi

I have created a custom template for the radwindows radconfirm dialogue as follows

<telerik:RadWindowManager ID="RadWindowManager2" runat="server" VisibleTitlebar="false" MaxHeight="50px" KeepInScreenBounds="true " Behaviors="None" Skin="Telerik">
        <ConfirmTemplate >       
        <div class="rwDialogPopup radconfirm">
            <div class="rwDialogText">
                {1}
            </div>
            <div>
                <a onclick="$find('{0}').close(true);" class="rwPopupButton" href="javascript:void(0);">
                    <span class="rwOuterSpan"><span class="rwInnerSpan"><%= Localization.GetString("OKConfirm.Text", this.LocalResourceFile)%></span></span></a>
                <a onclick="$find('{0}').close(false);" class="rwPopupButton" href="javascript:void(0);">
                    <span class="rwOuterSpan"><span class="rwInnerSpan"><%= Localization.GetString("CancelConfirm.Text", this.LocalResourceFile)%></span></span></a>
            </div>
        </div>
         
         
        </ConfirmTemplate>
    </telerik:RadWindowManager>
 this works fine where i get the localized text for Ok and cancel buttons.

However the issue is that the radconfirm box is draggable out of the screen area there by giveing scrolls nto the page. As show in the image.

How can i prevent this.
Marin Bratanov
Telerik team
 answered on 06 Jul 2012
5 answers
194 views
Hi,

I have a ascx user control on a page which has a cancel button and on the container/parent page is the RadWindow.

How do I show this parent RadWindow in Javascript onclick of the button?

Thanks
rdmptn
Top achievements
Rank 1
 answered on 06 Jul 2012
2 answers
62 views
Hello,
I have developped an application with a lot of RadWindows.
It works well with Chrome, Firefox, Internet Explorer 9, Internet Explorer 8.0.7601.xxx but with Internet Explorer 8.0.6001, it is a real mess.

When I click on a button which should open a radwindow, the browser redirects me to
res //ieframe.dll/acr_error.htm or closes and reopens the tab.
I'm using jquery-1.6.2.js and jquery-ui-1.8.16.custom.min.js .

Have you already encountered these kind of behaviours?

Thank you.
Julien
Top achievements
Rank 1
 answered on 06 Jul 2012
1 answer
109 views
Hello all,
Using RadGrid version 2011.3.1305.40 I have a gridcalculatedfield that works until I want a total at the footer.

This is my field:
<telerik:GridCalculatedColumn 
                            DataFields="oneAmt,twoAmt,threeAmt" 
                            Expression="{0}-{1}-{2}"
                            UniqueName="netAmt" 
                            AllowFiltering="False" 
                            AllowSorting="False"
                            DataFormatString="{0:c}" 
                            Groupable="False"
                            HeaderText="Net Amount" 
                            Reorderable="False" 
                            ShowSortIcon="False" Aggregate="Sum" DataType="System.Decimal" 
                            FooterAggregateFormatString="{0:c}">
                            <FooterStyle HorizontalAlign="Right" />
                            <HeaderStyle HorizontalAlign="Right" />
                            <ItemStyle HorizontalAlign="Right" />
</telerik:GridCalculatedColumn>

The error I get when I run this is:
Inner Exception Type: System.Reflection.TargetInvocationException
Inner Exception: Exception has been thrown by the target of an invocation.
Inner Source: mscorlib
Inner Stack Trace:    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at Telerik.Web.UI.GridBoundColumn.GetAggregate(IEnumerable enumerable, IQueryable queryable, String fieldName, Type dataType, GridAggregateFunction func)
   at Telerik.Web.UI.GridCalculatedColumn.ApplyAggregates35(TableCell cell, String footerText)
   at Telerik.Web.UI.GridCalculatedColumn.footerCell_DataBinding(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 Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows)
   at Telerik.Web.UI.GridItemBuilder.CreateGroupFooterItem(GridGroupingContext group)
   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.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 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
   at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
   at System.Web.UI.Control.EnsureChildControls()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Exception Type: System.Web.HttpUnhandledException
Exception: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source: DefaultPage
Stack Trace: 
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.fiscalanalysis_fiscalreportanalysisdisplay_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ef32ca4f\11f861fb\App_Web_3whl54po.2.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Your help is appreciated.
Radoslav
Telerik team
 answered on 06 Jul 2012
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?