Telerik Forums
UI for WPF Forum
2 answers
146 views
Hi,

I am trying to set a DataTable as ItemsSource for a RadGridView and get the following exception:

   at System.Linq.Enumerable.<CastIterator>d__aa`1.System.Collections.IEnumerator.Reset()
   at Telerik.Windows.Data.EnumerableExtensions.TryGetFirstElementType(IEnumerable source, Type& firstElementType) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\EnumerableExtensions.cs:line 54

I do the following:

DataTable

 

dataTable = new DataTable();

 

 

string[] values = dataValue.Value.Split(',');

 

 

for (int i = 0; i < values.Length; i++)

 

{

dataTable.Columns.Add(i.ToString(),

typeof(string));

 

}

dataTable.Rows.Add(values);

 

this.radGridView1.AutoGenerateColumns = true;

 

 

this.radGridView1.ItemsSource = dataTable;

 



Anybody has some suggestions what I am doing wrong here?
Pascal
Top achievements
Rank 1
 answered on 26 Jan 2010
5 answers
185 views
Hi,

I have downloaded latest trial verision of Wpf RadControls. They are working very good, but there is one exception. I can not drop pane(floating window state) outside the window of wpf application. Dragging and docking works only inside window of app - when I am trying to drag pane outside the window, pane "hides" underneath the border of app.
Is there any solution of this "problem"?

Best regards
Pit
Boyan
Telerik team
 answered on 26 Jan 2010
1 answer
182 views
hi all,
i hv a refresh button and i want to set first row or previously selected row as selected row after user refreshes the grid.
in the below code, _selectRow is of object type.  i am using customobjects in the project so _selectRow will be custom object of type "sample". however, i am unable to set selectedrow using the below code, please let me know if iam missing anything here.

regards,
Sandy



 

if (wipGridView.SelectedItem != null)

 

_selectedRow = wipGridView.SelectedItem ;

 

else

 

{

_selectedRow = wipGridView.Items[0] ;

}

 

this.Cursor = Cursors.Wait;

 

LoadWipGrid(_selectedDisplayType);

wipGridView.CurrentItem = _selectedRow;

wipGridView.SelectedItem = _selectedRow;

wipGridView.SetIsCurrent(_selectedRow,

true);

 

wipGridView.SetIsSelected(_selectedRow,

true);

 

Milan
Telerik team
 answered on 26 Jan 2010
1 answer
151 views
Hello Forum!

Is this a place to only discuss telerik products or is this also a place for people just learning WPF?
Milan
Telerik team
 answered on 26 Jan 2010
4 answers
256 views
Hello,

I attached event handler for GridViewRow Selected event by eventSetter.
But i getting "Handler type is not valid" exception.


void Row_Selected(object sender, RoutedEventArgs e){} 
<Style TargetType="telerik:GridViewRow">  
     <EventSetter Event="Selected" Handler="Row_Selected"/>  
</Style> 
What should be the right handler type for this event?

Basicly what I'm trying to do is after the data is loaded to set programaticly the second colomn of Grid to current and in edit mode.
Additionaly on arrow navigartion Up/Down current cell should be updated to the up/down cell in the same colomn and always current cell should be in edit mode.

Thank you
Milan
Telerik team
 answered on 26 Jan 2010
3 answers
212 views
Hi, i'm new on Telerik for WPF,

And i have some issue :

My grid is dynamiclly refreshed with prices, in the cells.
And i want to have my Cell's background change to green when the new price is bigger than the old one,
and change to a Red Background if my new price is lower than the old one.


So, i need to do this in the codebehind (i guess), but i'm not able to find the cell's background color properties there.

Can someone explain me how to do this ?


Thanks for your support.
Vlad
Telerik team
 answered on 26 Jan 2010
1 answer
69 views
We are getting an excessive amount of Null Reference Exceptions from the Telerik grid.   We are using the latest build that was released on Jan 14th.  We only use the grid in a read only fashion.  We use it as a work queue listing.  We refresh the data quite frequently.  We are setting the ItemsSource, we do NOT call Rebind(), we  DO reset SelectedItem and if not null we call the ScrollIntoView method.  All grid operations are in Try/Catch blocks.  Since these null exceptions are happening inside the Telerik DLL's our application is crashing

Vlad
Telerik team
 answered on 26 Jan 2010
2 answers
439 views
Hi,

We are using Telerik WPF Rad controls for developing our future WPF web application and facing some problems. For one of the problems I have pasted my error log :

====================================================================================================

PLATFORM VERSION INFO
Windows : 5.2.3790.131072 (Win32NT)
Common Language Runtime : 2.0.50727.3053
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 4.0.20506.1 (Beta1.020506-0100)

SOURCES
Deployment url : http://its-hipl-serv/wcf/version11/version11%20Web.xbap
Application url : http://its-hipl-serv/wcf/version11/Application%20Files/version11%20Web_1_0_0_13/version11%20Web.exe.manifest

IDENTITIES
Deployment Identity : version11 Web.xbap, Version=1.0.0.13, Culture=en, PublicKeyToken=c186ad621efd8b01, processorArchitecture=msil
Application Identity : version11 Web.exe, Version=1.0.0.13, Culture=en, PublicKeyToken=c186ad621efd8b01, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
* Online only application.
* Browser-hosted application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* An exception occurred while downloading the application. Following failure messages were detected:
+ Downloading http://its-hipl-serv/wcf/version11/Application Files/version11 Web_1_0_0_13/Telerik.Windows.Data.dll did not succeed.
+ The remote server returned an error: (404) Not Found.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
No phase information is available.

ERROR DETAILS
Following errors were detected during this operation.
* [11/24/2009 6:59:33 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading http://its-hipl-serv/wcf/version11/Application Files/version11 Web_1_0_0_13/Telerik.Windows.Data.dll did not succeed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.DeploymentManager.SynchronizeCore(Boolean blocking)
at System.Deployment.Application.DeploymentManager.SynchronizeAsyncWorker()
--- Inner Exception ---
System.Net.WebException
- The remote server returned an error: (404) Not Found.
- Source: System
- Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.



====================================================================================================


I already followed following link but still getting error:

Please do the needed, it is urgent..

Thank you.


Best regards,
Jignesh Patel
JigneshGN
Top achievements
Rank 2
 answered on 26 Jan 2010
1 answer
211 views
Hi there,

I am busy evaluating Telerik's WPF controls and came to a bit of a road bump I hope you can help.
I am trying to Drag and Drop from a ListBox (this will eventually be a RadPanelBar) to a re-hosted Workflow 4.0 Designer (It's a WPF control as well). 

I have got this working with the normal WPF drag and drop implementation for example.
Type type = ((AvailableActivity)(((ListBox)sender).SelectedItem)).Type; 
DataObject data = new DataObject(DragDropHelper.WorkflowItemTypeNameFormat, type.AssemblyQualifiedName); 
DragDrop.DoDragDrop(this.box1, data, DragDropEffects.Move); 

The WF Designer then queries the DataObject when its being dragged over and handles it from there.

My question is, is there anyway to provide the DataObject to the WF Designer as it expects it using the Telerik Drag and Drop? I have followed your drag and drop tutorials and got it working between list boxes, from RadPanelBar to ListBox etc. This is what I currently have.

private void OnDragQuery(object sender, DragDropQueryEventArgs e) 
if (e.Options.Status == DragStatus.DragQuery) 
AvailableActivity activity = ((AvailableActivity)((System.Windows.Controls.ListBox)(e.Options.Source)).SelectedItems[0]); // get the activity from the list 
                    
DataObject data = new DataObject(DragDropHelper.WorkflowItemTypeNameFormat, activity.Type.AssemblyQualifiedName); 
                    
e.Options.DragCue = activity.Type.AssemblyQualifiedName;  
e.Options.ArrowCue = RadDragAndDropManager.GenerateArrowCue();  
e.Options.Payload = activity.Type.AssemblyQualifiedName;    
e.QueryResult = true
e.Handled = true;  
 
Thanks
Greg
Miroslav
Telerik team
 answered on 25 Jan 2010
7 answers
112 views
What I would like to do is to force a specific RadPanelBarItem to stay expanded and, ideally, get rid of the arrow too (specifically, I want to do this for the first item and leave the rest to act normally).  I have tried handling various events and setting templates to try to intercept the collapse functionality but have been so far unable to figure it out.  I am also unable to figure out how to remove the arrow.  Any ideas?
Bobi
Telerik team
 answered on 25 Jan 2010
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?