Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
125 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
181 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
62 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
45 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
99 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
1 answer
342 views
I have an issue with IIS 7.5. Any web page with Telerik controls pops up a windows authentication login box and it fails to authenticate and results in error '401 - Unauthorized.  Access is denied due to invalid credentials'. All other pages without Telerik controls works fine. It looks like using Host Name for the website in IIS  is creating the problem.

Environment:
Telerik        :  RadControls for ASP.Net JAAX Q2 2011 SP1
OS Version : Windows 2008  R2 
OS Version :  64bit
IIS Version  ; IIS 7.5
.Net Framework : 4.0
Authentication : Windows Integrated
App pool(mode) : Integrated
HostName : xxxxx-stg.xxx.com


Below is the web.config section
<system.web>
     <httpHandlers>
           <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      </httpHandlers>
</system.web>
  
<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>     
      <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" 
              type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
    </handlers
</system.webServer>



Thanks in advance.
Genady Sergeev
Telerik team
 answered on 28 Nov 2011
7 answers
1.1K+ views
Hi,
I want my grid to be "load on demand" so don't want it populating on PageLoad. How can I tell it to not populate until I explicitly call Rebind() ?

Cheers
Mahesh
Top achievements
Rank 1
 answered on 28 Nov 2011
8 answers
94 views
I have a scheduler where each appointment has an export option, as well as the scheduler as a whole.

If I export all the appointments on the scheduler, everything works.

If I export a recurrence master, that works too.

If I try and export a single recurrence instance though, all I get is this ...
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Telerik Inc.//NONSGML RadScheduler//EN
METHOD:PUBLISH
END:VCALENDAR
and if I try and import it in to Outlook it complains, unsurprisingly.

What am I missing?

--
Stuart

Nikolay Tsenkov
Telerik team
 answered on 28 Nov 2011
2 answers
180 views
I have placed a link button into commandItemTemplate of Grid so that i can add rows to end of grid on server side. But I am observing that whenever there is a postback after clicking link button, the same link button displyed next to the existing Link button.
Clicking the newly created link button does not fired the server side event.
The thing that i have done with grid is that all the rows of grid are in ediable form.


Thanks and Regards
Sarang
Sarang
Top achievements
Rank 1
 answered on 28 Nov 2011
5 answers
88 views
With HTML5 gaining so much popularity, are there any plans to incorporate HTML5 with RAD asp.net ajax controls in the up comming versions. So that the asp.net ajax controls would start utilizing the capabilities of html5, like html5 forms, hardware capabilities(SVG) and render tags all which would be supported by the executing browser. Waiting for your reply as a lot more depends on that.
mirang
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
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?