|
As I can see Sort method for WPF list view doesn't exist.
|
|
|
|
|
Well there seem to be lots of suggestions here[^].
I must get a clever new signature for 2011.
|
|
|
|
|
Thank you very much, but I've already checked them and nothing simple was there. So, it means, I haven't found what I'm looking for. I would be thankful if somebody can write some code here.
Thank you in advance.
|
|
|
|
|
Tesic Goran wrote: I've already checked them and nothing simple was there.
Well I've just been reading the article in the first link on that page, and it seemed pretty simple to me, even though I am not a WPF expert.
Tesic Goran wrote: I would be thankful if somebody can write some code here.
I don't think that's going to happen.
I must get a clever new signature for 2011.
|
|
|
|
|
Surprisingly, sorting ListView in WPF is not a simple problem. It requires you to write lots of code. And I mean lots of code[^]!
I suggest that if you are not restricted to older (i.e. pre-4.0) versions of WPF, try using DataGrid instead of ListView. It is a lot more powerful - for one, it gives you sorting for free, and it does not take too much effort to learn if you know ListView. In one of our projects, I replaced several ListView objects and added editing to one of them in about a day.
|
|
|
|
|
It's not really complicated,
using System.ComponentModel
ICollectionView view = CollectionViewSource.GetDefaultView(lstvTestNames.ItemsSource);
view.SortDescriptions.Add(new SortDescription("test_name_id", ListSortDirection.Ascending));
|
|
|
|
|
This solved my problem.
Thank you very much.
|
|
|
|
|
Hello,
i search an pdf to xaml wrapper?
already exists such a thing? Or must I programming it new ?
thx,
benny
|
|
|
|
|
That would be a pretty cool form generating tool. Have fun with that
You can only be young once. But you can always be immature.
- Dave Barry
|
|
|
|
|
On binding large volume of data (say 1500 - 2000) row in Silverlight datagrid.. It throws error.
Does the datagrid has a maximum limit.
Santhosh
|
|
|
|
|
Throw us a bone here. What error gets thrown? When you post a question about an exception, it's generally useful to say what the exception is so that we can help, otherwise we are just going to be randomly guessing.
|
|
|
|
|
HI Pete
Thanks for the prompt reply...
error thrown in output window is
A first chance exception of type 'System.Windows.Ria.DomainOperationException'
Santhosh
|
|
|
|
|
Ah yes. One of the more unhelpful messages. You'll need to use WCF tracing to identify what's really going on. You'll need to add the following to your config file:
<system.serviceModel>
<diagnostics>
<messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" />
</diagnostics>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
</system.serviceModel>
<system.diagnostics>
<sources>
<source name="System.ServiceModel" switchValue="Verbose, ActivityTracing">
<listeners>
<add type="System.Diagnostics.DefaultTraceListener" name="Default">
<filter type="" />
</add>
<add type="System.Diagnostics.ConsoleTraceListener" name="console">
<filter type="" />
</add>
<add name="ServiceModelTraceListener">
<filter type="" />
</add>
</listeners>
</source>
<source name="System.ServiceModel.MessageLogging" switchValue="Verbose, ActivityTracing">
<listeners>
<add type="System.Diagnostics.DefaultTraceListener" name="Default">
<filter type="" />
</add>
<add type="System.Diagnostics.ConsoleTraceListener" name="console">
<filter type="" />
</add>
<add name="ServiceModelMessageLoggingListener">
<filter type="" />
</add>
</listeners>
</source>
</sources>
<sharedListeners>
<add initializeData="C:\logging\wcftracesvc.log"
type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
name="ServiceModelTraceListener" traceOutputOptions="Timestamp">
<filter type="" />
</add>
<add initializeData="C:\logging\wcfmsgsvc.log"
type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
<filter type="" />
</add>
</sharedListeners>
<trace autoflush="true" />
</system.diagnostics>
|
|
|
|
|
Hi Pete..
Thanks again..
But one other query : does the SL datagrid has any limit on its maximum record size..
Santhosh
|
|
|
|
|
No. The only limit you'll run into with the datagrid is memory.
|
|
|
|
|
No the SL Datagrid does not have a maximum limit.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
|
|
|
|
|
|
This[^] one, and please don't shout.
|
|
|
|
|
Hey Guys,
I've written a few silverlight apps thus far primarily using RIA services and the entity framework. We're currently looking at marrying some of our ruby on rails applications possibly through exposed web services and comsuming those services with silverlight. I've found some examples mainly using iron ruby which seems to be shelved for the time being. My question is, has anyone tried this? Is it possible to consume ruby on rails services via silverlight possibly just through consuming a rest service? I really appreciate your thoughts and opinions as we're evaluating options.
Regards,
Ryan
|
|
|
|
|
Hi,
I'm not sure if this is a repost but since I could't find a reference to this video I found and replicated to see if it worked (it did) I want to post a link to this MVVM in WPF and Silverlight
sample (8 video sessions in total) that I think can be of great help for those who don't know this sample and are trying to get MVVM working.
When recreating this sample (source code is available for download) it's important to think about the using directives since it's not alway's clear that these are added while watching the video.
[Link]
With friendly greetings,
Eric Goedhart
modified on Saturday, January 22, 2011 10:27 AM
|
|
|
|
|
It might be more helpful if you post this as a tip/trick rather than in the question answer forum.
It will get lost here.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
|
|
|
|
|
Thanks in advance.
Getting this Error in Visual Studio 2008 Silver Light Application
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
when Clicking on the Page of the Project any suggestion/help will be appreciated
SOFTDEV
Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.
|
|
|
|
|
This error appeared randomly back when I was using VS 2008, but now that we switched to VS 2010 the problem never re-appeared.
This is nearly certainly an internal exception of VS 2008, so it has nothing to do with what you are doing. Some people report this error[^] when there is mismatch in Silverlight versions (3 vs. 4). Some people report fixing a similar problem by resetting import/export settings[^], but I don't know if it is going to work for you.
|
|
|
|
|
I created a list of RadioButtons in a template. Multiple instances will be created for the template. Therefore the GroupName of the RadioButton can’t be the same for each instance. My approach is to use Guid.NewGuid in XAML. However, I can’t workout the syntax of it. I found a post about it but it doesn’t work. Any idea? Or any other idea to make GroupName works for multiple instances? Thanks in Advance!
|
|
|
|
|
Hi All,
I want to iterate all the rows of the DataGrid in my SilverLight web application..
Can anyone tell me how to iterate?
I have googled, but no luck....
Thanks,
Sunil G.
|
|
|
|