Telerik Forums
UI for WPF Forum
3 answers
101 views
I am using the following code to get an array of values from Excel;
rng = ws.Range[sCell1, sCell2];
object dataRows = rng.Value;

I then try to bind the array to a GridView using;
gvText.ItemsSource = dataRows;

However I get the error; "Array was not a one-dimensional array".

I have tried converting the array to an observable collection;
ObservableCollection<object> colRows = new ObservableCollection<object>(dataRows);

but this displays the error; ​"The best overloaded method match for 'System.Collections.ObjectModel.ObservableCollection<object>.ObservableCollection(System.Collections.Generic.IEnumerable<object>)' has some invalid arguments".

How can I bind the Excel data returned to the grid?
Raymond
Top achievements
Rank 1
 answered on 08 Sep 2014
16 answers
3.1K+ views
I am using dateTimePicker I want to disabled the dates later than from today's date and I want to show a kind of label showing today's date all the time inside the datetimepicker control  so that when user is navigating to other dates/months/years,today's date would be visible all the time.
diana
Top achievements
Rank 1
 answered on 06 Sep 2014
3 answers
160 views
Is direct insertion possible??
Petya
Telerik team
 answered on 05 Sep 2014
1 answer
23 views
Background: My previous experience with reading online documentation are iOS docs Android docs Sqlite docs CPAN jquery angular etc etc. So that is my point of reference here.

Often when i try and search the telerik documentation i come across pages that looks like this.
http://www.telerik.com/help/silverlight/f_telerik_windows_controls_diagrams_raddiagramshapebase_glidingstyleproperty.html

So this is a property , i already knew that. But what does it do ? how am i supposed to find out what this property is used for ?
to me this type of documentation does not tell me anything i could not find out via clicking in the Object browser.

Am i using the documentation the wrong way or is it just documentation for documentations sake ?
Pavel R. Pavlov
Telerik team
 answered on 05 Sep 2014
2 answers
295 views
Hi all,
1. Please go to: http://demos.telerik.com/silverlight/#RichTextBox/MailMerge
2. In the UI you will see Insert Merge Field
3. Click it and select RecipientPhoto

This add {MERGEFIELD RecipientPhoto}
How to add {INCLUDEPICTURE {MERGEFIELD RecipientPhoto}} ?

Insert Field programmatically ( http://www.telerik.com/help/wpf/radrichtextbox-features-mail-merge.html ) is not answer on the question and it insert the field in the first line of the document. So I need user to select position of the picture as he can do it with normal text field.

Regards,
Saykor
Saykor
Top achievements
Rank 2
 answered on 05 Sep 2014
1 answer
372 views
How I am going to implement this maxwidth or minwidth to my gridview  with different data in column and this gridview should fit all screens without scrollbars.. Thanks. Hope you can help me. I'm stuck in here..

Regards,
Kim
Boris
Telerik team
 answered on 05 Sep 2014
1 answer
433 views
Just thought I would add a note because I have not been able to see this behaviour documented elsewhere.

When using

<telerik:RadMaskedTextInput Mask="" TextMode="PlainText"/>

adding the text a_b changes to ab when navigated away from. The fix is to use MaskedText as the textmode instead which is the default so it would be
<telerik:RadMaskedTextInput Mask="" TextMode="MaskedText"/>
or simply
<telerik:RadMaskedTextInput Mask=""/>

Hope this helps anyone else with the same issue

Martin Ivanov
Telerik team
 answered on 05 Sep 2014
2 answers
50 views
Hi

Is there an example where you move an event to a timeslot that is already full. Normally on schedulers this is denied or they re placed side by side.

Couold this behaviour be overridden so that if you moved an event from say 10-11 o Monday to 10-11 on Tuesday and there was already something in 10-11 on Tuesday could the moved event take the slow and pus the other elements down to 11-12 on Tuesday

Thanks a lot
andieje
Top achievements
Rank 1
 answered on 05 Sep 2014
1 answer
52 views
We are using RADPivotGrid to connect to a SQL Server 2014 Analysis server and want to be able to create session based calculated fields for use within the pivot table.
We can do this via an MDX query however in order for them to be visible they need to be created on the same session that the ADOMD data provider uses.I was hoping that the Telerik ADOMD dataprovider exposed the actual ADOMD connection so I could use this connection to send an ADOMD command to create these calculated members, however it does not (as far as I can see) seem to expose this.

I need these calculated members to be session based as we want them to disappear when the session closes.

Is this possible and if so so how?

Thank you
Rosen Vladimirov
Telerik team
 answered on 05 Sep 2014
1 answer
98 views
We are using RADPIVOT grid connected to our SQL Server 2014 Analysis server. What we want to be able to do is create session based calculated fields from the C# client. I can create these session based calculated fields using an MDX query however as they are session based only I need to be able to create them using the same connection as the ADOMDDataprovider does so they will be visible and selectable in the RADPivotField List. I want them to be session based as I want them to disappear once the connection is closed.

I was hoping that the ADOMDDataprovider class actually exposed an ADOMD Connection and then I could just send my MDX query via a ADOMD Command down this connection however as far as I can see is does not seem to expose this.

Have you any ideas how this may be possible.?

Thanks
Rosen Vladimirov
Telerik team
 answered on 05 Sep 2014
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?