Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
149 views
Is it possible to export to Excel without the file opening as Read Only?  I have looked at every option and example and simply do not see the option/parameter to make this happen.
Kyle
Top achievements
Rank 1
 answered on 16 Oct 2012
3 answers
180 views
Hello Telerik Community:

I have the following issue, using the following code I get the results shown in the attached image.

Is there anyway to autostep or show only the dates that have some value on them?

Thanks in advance!


//OADate column for chart:
 
 DataColumn col = new DataColumn("OADate", typeof(System.Double));
 dtable.Columns.Add(col);
 
//Converting SQL Datetime values to OADate column
 
 int b = 0;
 foreach (DataRow row in dtMerArrCru.Rows)
 {
     row["OADate"] = Convert.ToDateTime(dtable.Rows[b][1]).ToOADate();
     b++;
 }
 
//Formatting chart:
 
 RadChart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortDate;
 RadChart1.PlotArea.XAxis.Appearance.CustomFormat = "MM/dd/yyyy";
 RadChart1.PlotArea.XAxis.IsZeroBased = false;
 RadChart1.PlotArea.XAxis.AutoScale = false;
 
 RadChart1.PlotArea.XAxis.AddRange(Convert.ToDouble(dtMerArrCru.Rows[0]["OADate"]),     Convert.ToDouble(dtMerArrCru.Rows[dtMerArrCru.Rows.Count - 1]["OADate"]), 1);
 
 RadChart1.DataGroupColumn = "Type";
 RadChart1.DataManager.ValuesXColumn = "OADate";
 RadChart1.DataManager.ValuesYColumns = new string[] { "Quantity" };
 RadChart1.DataSource = dtable;
 RadChart1.DataBind();
Petar Kirov
Telerik team
 answered on 16 Oct 2012
3 answers
133 views
I'm using the ItemTemplate. In the template I have one user control which consists of a button and another control. The button controls the visibility of the other control. Not every instance of this user control is the same size. When the controls are initially hidden, clicking the buttons will reveal their respective controls as desired. However, when any of the controls are not initially hidden, the list view sizes all it's items to the potentially largest control whether or not that control is hidden. Any ideas why this would be occuring and how I can work around it? Thanks.
Matthew
Top achievements
Rank 1
 answered on 16 Oct 2012
6 answers
402 views
I am using the RadCombobox with design time datasource setting because I need to use the Itemperrequest property. I know itemperrequest and showmoreresult property don't work if you have dynamic datasource setting. Because of designtime datasource setup, I don't know how to set the default value to the combo using valuefield. 

Help me here.
Vijaianand
Top achievements
Rank 1
 answered on 16 Oct 2012
1 answer
106 views
Hi,

I am working on asp.net dynamicdata application.
In my application I am using DynamicRadGrid , and I want to export and import to latest version excel file(2007 format).

without modification the exported file is import to grid . but after modification of that file i am not able to do import operation.

and i found in some forums for latest version Excel Format=ExcelML but   it is also not working.

Please send me sample code with this fuctionality.




Kostadin
Telerik team
 answered on 16 Oct 2012
1 answer
95 views
Hi.

I am currently facing a problem with the export functionality of the RadGrid.
In my code i am automatically generating templatecolumns with controls inside (RadTextBox, RadCheckBox, RadComboBox and so on)

On my commanditemtemplate i have 4 buttons to export to PDF, XLS, DOC, CSV.
Everything works as expected in XLS (Format = ExcelML) but it fails on the other.

Problems i am facing are:
1.) PDF, DOC, CSV display a client selection column
2.) PDF, DOC, CSV dont display values from RadTextBox and RadNumericTextBox controls
3.) CSV doesnt display values from RadCheckBox controls

When i change my code to generate ASP TextBoxes (one line of code nothing more changed)...
1.) CSV still doesnt display values but PDF, DOC does
2.) PDF overlaps with client selection box (because width of column is 10 and the word "FALSE" is lager so it overlaps with following column), DOC looks fine


And a question how is it possible to export a grid in any given width to PDF?
XLS, DOC, CSV dont give a **** about the width of the grid but PDF seems to care and the grid overflows on the pagewidth end, and maybe on the pageheight aswell just dont have enough data to get 2 A4s right now

Hope you can help like to be able to export those 4 formats and have the same data result, styling can and will vary by format but atleast the data should be the same.

Btw, the grid on the page works fine - everything is displayed a expected.
Kostadin
Telerik team
 answered on 16 Oct 2012
3 answers
397 views
I have a templatecolumn with TextBox in the grid:
<telerik:GridTemplateColumn DataField="Translation2"   AutoPostBackOnFilter="true" ShowFilterIcon="false" UniqueName="ForeignTranslation" AllowFiltering="true" FilterControlWidth="200px" 
         HeaderText="Translation2">
             <ItemTemplate>
         <asp:TextBox ID="txtTranslationText"  AutoPostBack="true" runat="server" Height="44px" OnTextChanged="txtTranslationText_TextChanged" TextMode="MultiLine"  ></asp:TextBox>
               </ItemTemplate>
           <HeaderStyle Width="200px" />
</telerik:GridTemplateColumn>


OnTextChanged I saves the data, as long as the user types "< with any characters >", it will errored out :
"sys.winforms.PagesRequestManagerServerErrorException: an unknown error ocurred....". Please help how to avoid the error.
Kostadin
Telerik team
 answered on 16 Oct 2012
1 answer
71 views
I have VS 2010.  I downloaded and installed the latest ASP.Net Ajax installer.  That goes fine.  But upgrading a web site project continues to be very aggravating.  First time, it just locks up VS and I have to kill it.  Then, when I try again, using the upgrade wizard, it runs for several minutes, then shows the report that says it succeeded, but that is NOT true.  It replaces the .refresh files but fails to replace the actual dll in the bin folder.

Every upgrade I go through this and waste valuable time until I can get the project to correctly upgrade.  When will this process get better?  I love using your controls but this upgrading is a huge problem.

Note: machine is quad core, 8GB RAM, Windows 7
Petar
Telerik team
 answered on 16 Oct 2012
1 answer
214 views
Hi,

After clicking on refresh button i'm getting the below Error:
DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'From'.

My code is shown in  below Screenshot.

If i had any data in my text i was not getting any error.


Your inputs will help...Thanks in advance.
Pavlina
Telerik team
 answered on 16 Oct 2012
7 answers
170 views
Hi Folks,

Does anyone please know if it is possible to change the arrow icon on the splitbar? Reason being is that we have developed a web portal using the splitbars, but some users are having difficulty in clicking on the correct one when two splitbars are next to each other.

We have made the splitbars wider with the 'SplitBarSize' property but now need to implement our own expand/collapse icon if this is at all possible.

Cheers,
Ian W
Martin Roussel
Top achievements
Rank 1
 answered on 16 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?