Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
114 views
How can I disable RadChart from rendering a style, the javascript onerror call, and the additional script block.  I want to simply show a RadChart that does not involve any further user interaction nor postbacks.

For example, here's what my RadChart outputs:
<div id="ctl04_BarCharts_ctrl1_BarChart" class=" RadChart" style="height:44px;width:293px;"
    <img alt='' style='border-width: 0px;'  src='ChartImage.axd?UseSession=true&amp;ChartID=530d344a-c0c1-408c-b083-88a56c512866_chart_ctl04$BarCharts$ctrl1$BarChart&amp;imageFormat=Png&amp;random=0.0234165825058783' onerror="if(confirm('Error loading RadChart image.\nYou may also wish to check the ASP.NET Trace for further details.\nDisplay stack trace?'))window.location.href=this.src;" /><input id="ctl04_BarCharts_ctrl1_BarChart_ClientState" name="ctl04_BarCharts_ctrl1_BarChart_ClientState" type="hidden" /> 
</div><script type="text/javascript"
//<![CDATA[ 
    Sys.Application.add_init(function(){});
//]]> 
</script> 
 


and here's what I'd like it to output:
<div id="ctl04_BarCharts_ctrl1_BarChart" class=" RadChart"
    <img alt='' src='ChartImage.axd?UseSession=true&amp;ChartID=530d344a-c0c1-408c-b083-88a56c512866_chart_ctl04$BarCharts$ctrl1$BarChart&amp;imageFormat=Png&amp;random=0.0234165825058783' /> 
</div>

or better yet:
    <img alt='' src='ChartImage.axd?UseSession=true&amp;ChartID=530d344a-c0c1-408c-b083-88a56c512866_chart_ctl04$BarCharts$ctrl1$BarChart&amp;imageFormat=Png&amp;random=0.0234165825058783' />  



Vladimir Milev
Telerik team
 answered on 22 Jun 2010
1 answer
129 views
Some Q I have been wonder, is there a way with skinmanager to have a separate skin (or simple CSS file) for the media=print?
I guess this would be a quite common request?

And are there a way to add special CSS fiels for a particular browser, for example a IE8.css ?
Dimo
Telerik team
 answered on 22 Jun 2010
1 answer
67 views
Hi all,

I have a case using RadGrid. After we click Add New Record link in the RadGrid. There is a new detail row appear in the grid. We can collapse the edit row but not for new row.
Is there a way to remove the new detail row from code behind? If any, please show me how to do it.

Thanks,
Pavlina
Telerik team
 answered on 22 Jun 2010
1 answer
84 views
On postback in the codebehind. How can i find the url or filename of the file or files selected.
The fileexplorer dont seem to have such a property. I also tried looking in the grid and treeview of the explorer.

Thanks, Lautaro.
Petio Petkov
Telerik team
 answered on 22 Jun 2010
2 answers
135 views
Hello,

I'm having some trouble with getting a RadGrid to perform automatic operations inside a RadWindow, and am wondering if i'm either doing something wrong or it's not possible.

Scenario: I have RadGrid (Id = RadGridHdr) on default.aspx.vb.  This grid is databound with all automatic operations enabled and working beautifully.  I have the OnRowDblClick clientsetting set to open a RadWindow (Id = RadWindowDtl).  This works no problem.  The RadWindow loads detail.aspx.vb which contains another RadGrid (Id = RadGridDtl).  This grabs the request object from the OnRowDblClick client event which is a selectparameter on the datasource that feeds RadGridDtl.  All this works no problem.  I can click the Insert button and the ItemCommand fires for RadGridDtl (I'm using a formtemplate with radcontrols for the insert/edit).  However when I click the PerformInsert button the RadGridDtl basically refreshes itself leaving me on a blank insert form.  I have all the Automatic Operations enabled and I know the Insert Query on the datasource is correct.  Also another snafu is when RadGridDtl has rows the Edit button is inoperable as well.

Will I need to do advanced data-binding or even client side insert/update/delete because of the RadWindow layer?  I can't post an example project due to this being internal data housed in an Oracle Database.  I'm workin in VB.Net and using Q1 2010 SP2 controls.

Any help would greatly be appreciated.

Thanks,

Sean
Iana Tsolova
Telerik team
 answered on 22 Jun 2010
3 answers
149 views
I am having trouble sorting when the SortExpression is set to Object[i].Property

Scenario:

My Site class has a property of type Collection<Estimate> Estimates
The Estimate class has a Decimal property called Total

After executing a search, I am binding the radGrid to a collection of Site objects that fit the criteria
ie: gvResults.DataSource = Collection<CustomSite.Site>

When executing the search query, the Estimate collection above gets filled with up to 3 types of estimates. One of these types is very important, and is always added to the collection in the first position.

When creating the grid, I have a column defined as

<telerik:GridBoundColumn DataField="Estimates[0].Total" HeaderText="Estimate Total" SortExpression="Estimates[0].Total" DataFormatString="{0:n0}" DataType="System.Decimal" HtmlEncode="False" HeaderStyle-Width="86px" ItemStyle-Width="86px" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" SortAscImageUrl="~/Images/sort-up.gif" SortDescImageUrl="~/Images/sort-down.gif" />

I have a second column defined the same way, it just binds to a different property

<telerik:GridBoundColumn DataField="Values.Equipment" HeaderText="Equipment" SortExpression="Values.Equipment" DataFormatString="{0:n0}" DataType="System.Decimal" HtmlEncode="False" HeaderStyle-Width="86px" ItemStyle-Width="86px" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" SortAscImageUrl="~/Images/sort-up.gif" SortDescImageUrl="~/Images/sort-down.gif" />

The cells in both cases are filled with the correct value after the search binds.

I have no trouble sorting on the Values.Equipment column. Ascending, descending, it works find both directions.

However, when I try to sort on the Estimates[0].Total column, I get very strange and entirely incorrect results.

The odd thing is that if I sort ASC, maybe one or two rows will shift from their default position, but not in the sort position specified. If I sort DESC, I may or may not get a change. If I sort ASC again, the rows may still stay the same, or they may shift to yet a different position from the first ASC sort and still different from the original sort.

Is it not possible to have a SortExpression defined as an indexed value of a collection (ie: Estimates[0].Total)

More code can be posted if necessary.
                                
                                
Iana Tsolova
Telerik team
 answered on 22 Jun 2010
3 answers
149 views
is it possible to expand / collapse a row (custom) with additional information and even HTML / functionality within it?

So not using the hierarchical stuff but more a list of items that can be expanded / collapsed and have additional information and even links to other pages?

Plus, it could be dragged (as a whole row) to another control (like a tree)?

Let me know if there are any examples or anything that can point me in the right direction..

Thanks..
Pavlina
Telerik team
 answered on 22 Jun 2010
1 answer
81 views
I need to alter the Filtercontrol width according to the RadGrid Column width. I know how to assign the width statically by using filter column width.

I want to make this in one place for all grids. Anyone know how to get the column width after binding and need to assign the same for Filtercontrol.

Anyone has any idea?
Dimo
Telerik team
 answered on 22 Jun 2010
1 answer
172 views
Hi Guys,

I have just started using the ASP .Net AJAX controls from Telerik.
We have a currently running solution that was built using standard ASP .Net & C#.

Just wondering if there is any automated solution / method to convert (upgrade) my current website to use telerik components or we need to change the asp pages manually?

Regards,
Vaibhav
Sebastian
Telerik team
 answered on 22 Jun 2010
2 answers
103 views
Hi All

Have a RadGrid with records which works fine. I have used Custom Skin.

Have a scroll bar which appears when the Add New Record is clicked.

Have sent two screen shots.

Is there any option to rectify this.

Thank You

-Anto
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 22 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?