Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
Is there a way I can set a css-class for a single menu-item based on the webpage url? (Maybe when the menu is generated?)
The menu is generated from a database.

Example:
If url = www.domain.com/page.aspx?id=1 then I would like menuitem "Menuitem1" to have a red font color. And if url = www.domain.com/page.aspx?id=2 then I would like menuitem "Menuitem2" to have a red font color.

Best regards,
Lars
 
Kate
Telerik team
 answered on 28 Nov 2011
12 answers
1.1K+ views
Hi, Telerik,
I'd used code at this link: http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx to create a ComboBox with TreeView inside. (Load Category Table from Database)
But I don't know how to set the default selected value for this RadComboBox when page was loaded.

Ex: Something like this:
Dim myRadComboBox As RadComboBox
myRadComboBox.Selectedvalue = "My Node ID"

Thanks for your support.
Mehrdad
Top achievements
Rank 1
 answered on 28 Nov 2011
1 answer
68 views
We are changing to cookieless session, so the URL has changed for each page with the new session id
<sessionState timeout="120" cookieless="true" regenerateExpiredSessionId="true"/>

Suddenly the second tabstrip is not displaying on our 2 pages with a second tabstrip. First/top strip seems okay.
But tracing through the load there is no activity on the 2nd tabstrip (does not hit preRender or dataBound)

I've seen posts that FindTabByUrl may need to use an additional function around the URL:
Response.ApplyAppPathModifier(Request.Url.PathAndQuery)

but I am not using FindTabByURL anywhere except there is a reference to it in the Telerik.ui.xml.
Could that be it? 

Has anybody else moved to cookieless and seen this disappearance ?
Dimitar Terziev
Telerik team
 answered on 28 Nov 2011
1 answer
63 views
Dear friends,

I have a tabstrip with two tabs. The two tabs are loading ascx too. I need to have the databinding in second tab to call as a last step after everything finishes.

Is there a way we can stipulate this?
Kate
Telerik team
 answered on 28 Nov 2011
3 answers
102 views
I have a RadGrid with a detail table in it. The detail table uses an objectdatasource which requires 2 parameters. The first parameter gets value from a HiddenField control outside of the grid, and the second parameter is the datakey of the master table of the RadGrid. This structure worked fine always, just found out it stopped working today. I haven't touched this page for ages so there shouldn't be any "new code" that broke this. I have upgraded my telerik controls from 2009 to Q1 2010 version recently. Is it possible that this upgrade caused the problem? Hope somebody has come crose similar issues, thanks.
Princy
Top achievements
Rank 2
 answered on 28 Nov 2011
2 answers
113 views
Hey,

Working on dynamically creating and filling RadGrids in the code rather than in the front-end for an ASP project using a VB backend. Got some really useful advice so far, but today I was trying to get a CommandItemTemplate working on a detail table, and I've encountered a rather large problem... whenever I click to expand the grid the whole grid just doesn't render. All I get is a thin line instead of the grid. It renders fine when I first load it, it renders fine when I try to add a new record, but on ExpandCollapse it just seemingly disappears.

I'm assuming that something is preventing the data from binding, or the radgrid from rendering, but I have no idea what it is. I had the same problem earlier on InitInsert and the way I got around it was to simply run the code to render the grid again from the beginning, and then it appeared with the ability to insert a new record. If I do the same thing with this however it appears again in it's non-expanded state.

Any help would be appreciated.
Pete
Top achievements
Rank 1
 answered on 28 Nov 2011
3 answers
167 views
I am trying to apply formatting to a pdf export using the RadGrid_ItemCreated event as described in:

http://www.telerik.com/help/aspnet/grid/grdexporttipstricks.html

Problem is that RadGrid_ItemCreated is always called before RadGrid_ItemCommand so setting a boolean value in RadGrid_ItemCommand to be used in RadGrid_ItemCreated doesn't work.

We are using the 2011 Q3 release.  I'm new to telerik controls so am probably missing something obvious.

Any ideas please.  Thanks.
Neil
Top achievements
Rank 1
 answered on 28 Nov 2011
1 answer
56 views
after collapsing a grouped part of radgid.

http://img191.imageshack.us/img191/8466/snap2011112723h55m07s00.png

P.S. Noticed the javascript variable names. a=b.id? Who are you? A market leading company? I used to have such variable names when I was 12... Shame.

Marin
Telerik team
 answered on 28 Nov 2011
1 answer
43 views
Hi,

I m using telerik:radpan to load the page. it is working in IE 7 & 8 but it is not working in IE 9. It shows a blank page instead of content. Kindly let me know a way to solve the problem.

Thanks in Advance.

Smart
Dobromir
Telerik team
 answered on 28 Nov 2011
2 answers
91 views
Hi,

This is my first posting in this forum.

I am currently having an issue where by a DataTable returned from the Database Query 'may' contains exponents and when I attempted to Bind the table [Basic Binding]:

RadGrid.DataSource = DataTable;
RadGrid.DataBind(); // Error Generated at this code location

Please refer to attached for a simple snapshot as to data for binding that is generating the error.

I have tried to identify the exact RadGrid Events where this exception is generated but I was unable to determine the event.

Is there a way for the Radgrid to handle these values (via settings) or do I have to handle it manually in the correct Radgrid event?

Thanks.

The Exception is:

System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.FormatException: Input string was not in a correct format.

   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

   at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)

   at Telerik.Web.UI.GridDataSetHelper.Add(Object a, Object b)

   at Telerik.Web.UI.GridDataSetHelper.CalculateAggregates(DataRow SourceRow, DataRow DestRow, Int32 rowCountInGroup, GridTableView view)

   at Telerik.Web.UI.GridDataSetHelper.InsertGroupByInto(GridTableView gridTableView, DataTable DestTable, DataTable SourceTable, String RowFilter, Int32 FirstIndexInPage, Int32 LastIndexInPage, Boolean ApplyPaging, Boolean IsCustomPaging)

   at Telerik.Web.UI.GridDataSetHelper.CalcGroupByTables(GridTableView gridTableView, DataTable SourceTable, String RowFilter, Int32 FirstIndex, Int32 LastIndex, Boolean applyPaging, Boolean isCustomPaging)

   at Telerik.Web.UI.GridEnumerableFromDataView.PerformTransformation()

   at Telerik.Web.UI.GridEnumerableFromDataView.TransformEnumerable()

   at Telerik.Web.UI.GridTableView.GetEnumerator(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ArrayList dataKeysArray)

   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.WebControls.DataBoundControl.PerformSelect()

   at Telerik.Web.UI.GridTableView.PerformSelect()

   at Telerik.Web.UI.GridTableView.DataBind()

   at Telerik.Web.UI.RadGrid.DataBind()

   at Pages_Forecasts_StockForecastDrillDown.LoadSecurityFactors(String tDate, DataTable dt) in c:\Perforce\Acadian\Portal\MAIN\Research\web\Pages\Forecasts\StockForecastDrillDown.aspx.cs:line 986

   at Pages_Forecasts_StockForecastDrillDown.ucSecuritySelect_SelectedIndexChanged(Object sender, SecuritySearchEventArgs e) in c:\Perforce\Acadian\Portal\MAIN\Research\web\Pages\Forecasts\StockForecastDrillDown.aspx.cs:line 842

   at Controls_SecurityDropDownList.OnSecurityChanged(SecuritySearchEventArgs e) in c:\Perforce\Acadian\Portal\MAIN\Research\web\Controls\SecurityDropDownList.ascx.cs:line 40

   at Controls_SecurityDropDownList.cboSecurity_SelectedIndexChanged(Object o, RadComboBoxSelectedIndexChangedEventArgs e) in c:\Perforce\Acadian\Portal\MAIN\Research\web\Controls\SecurityDropDownList.ascx.cs:line 224

   at Telerik.Web.UI.RadComboBox.OnSelectedIndexChanged()

   at System.Web.UI.Page.RaiseChangedEvents()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   --- End of inner exception 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.HttpContext.InvokeCancellableCallback(WaitCallback callback, Object state)

   at System.Web.UI.Page.AsyncPageBeginProcessRequest(HttpContext context, AsyncCallback callback, Object extraData)

   at ASP.pages_forecasts_stockforecastdrilldown_aspx.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object data) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\8609db0b\e58b7a69\App_Web_stockforecastdrilldown.aspx.4393a603.ujchnqwd.0.cs:line 0

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Daniel
Top achievements
Rank 1
 answered on 28 Nov 2011
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?