|
Hi,
I am using SilverLight DataGrid with RowDetail Template.
I am having toggleButton on click of that i want to show RowDetailTemplate which contain another child datagrid.
Problem is when i click on the second or third row of the parent grid the SelectionChanged event is not fired.But when i click on the first row toggle button it displays child datagrid.
Thanks,
Sumukh
sam
|
|
|
|
|
Hello,
I am not sure if this will help but I had a similar thing going on with a combo box in WPF. It was binded to a list of persons. The solution was to override the equals method of the person class.
|
|
|
|
|
I hope I am posting this in the correct forum - although it concerns ssrs, I think it is more a winforms / wpf question.
We have a wpf application using the winforms reportviewer. This report shows a pass / fail status and I am using wingdings font with chr(0252) to display a tick and chr(0251) to display a cross. This works really well in the report and for sending to a printer, but when exported to pdf both the characters turn info small dots - not really acceptable for our users.
I have seen multiple other posts about this issue as a known problem, there this is a post on Microsoft connect [^] that indicates it is fixed (on 5/6/2009).
I am wondering if I am missing something obvious on how to obtain a more recent version of ReportViewer that includes a fix?
Is anyone else aware of this issue or have a resolution? As this is used in quite a few different reports, I would much prefer to fix the issue, than change all the reports to use different characters or fonts.
Thanks,
Tim
|
|
|
|
|
Obviously the fix will be part of SQL Server 2008 R2 CTP3 (didn't search for release date).
So maybe wait until this fix has been released and see if it did the trick ? (I often had to wait for fixes using SSRS during past 3 years)
Or, if you don't want to wait for the fix, maybe you could use images to replace these special characters ? Rdp file's size will grow but you'll be able to display it regardless of the media.
|
|
|
|
|
Paul,
Thanks for your comments, and sorry for the slow follow up.
The connect posting was from 5/6/2009 and I thought the release had now happened (the post was from some 18 months ago).
I have now installed the ReportViewer 2010 Redistributable (v10.0 of ReportViewer), however this did not resolve the issue. Now, instead of the tick and cross turning into a dot, they turn into an empty small box.
As I have these characters contained in multiple reports, I did not want to have to change them.
Thanks for any further help.
Regards,
Tim
|
|
|
|
|
I have worked around this problem by using the characters 0080 and 0079 from the Wingdings 2 font. I think because these codes are below 127 they do get converted correctly in the pdf.
I have posted this as an issue at https://connect.microsoft.com/SQLServer/feedback/details/618435/reportviewer-does-not-export-pdf-correctly-for-wingdings-fonts.
Tim
|
|
|
|
|
Which version of the dll are you using?
Make sure you use the one that supports SL4.
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
Visit the Hindi forum here.
|
|
|
|
|
I would recommend you download Prism from here and upgrade all the Prism files you add a reference to.
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
Visit the Hindi forum here.
|
|
|
|
|
I'm sorry - I meant the codeplex site itself.
If you update all your Prism dll references things should work.
Very strange.
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
Visit the Hindi forum here.
|
|
|
|
|
I wrote some Template to button object in my xaml.
I want to have image on the button - so i wrote a Template ( code attached )
I want to bind the image source to some variable in the xaml code ( in the c# code ) and i dont know how to do it.
<Style x:Key="MyBtnTmpl" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Image Source="SomePath.png" Stretch="Fill"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
|
|
|
|
|
Create property in your code and set Source="{Binding RelativeSource={RelativeSource TemplatedParent},Path=PropertyName}" in Image tag of your control template..
|
|
|
|
|
Dim TextBlock As New TextBlock
Dim Hyperlink As Hyperlink
Dim UrlWithText() As String
Dim SampleText As String = "sample http://google.com text http://yahoo.com"
If Regex.Matches("sample http://google.com text http://yahoo.com", "(\bhttp://[^ ]+\b)").Count > 0 Then
For i As Integer = 0 To Regex.Matches(SampleText, "(\bhttp://[^ ]+\b)").Count - 1
Hyperlink = New Hyperlink() With {.NavigateUri = New Uri(Regex.Matches(SampleText, "(\bhttp://[^ ]+\b)").Item(i).Value)}
Hyperlink.Inlines.Add(Hyperlink.NavigateUri.ToString)
AddHandler Hyperlink.Click, AddressOf hyperLink_Click
URLWithText = Regex.Split(SampleText, Regex.Matches(SampleText, "(\bhttp://[^ ]+\b)").Item(i).Value)
Try
TextBlock.Inlines.Add(URLWithText(0))
TextBlock.Inlines.Add(Hyperlink)
TextBlock.Inlines.Add(URLWithText(1))
Catch
Finally
SampleText = TextBlock.Text
End Try
i += 1
Next
End If
Grid.Children.Add(TextBlock)
This is my code. This code changes the text in the URL, gives HyperLink.
"Sample http://google.com text http://yahoo.com" in
http://yahoo.com and http://google.com should be changed to a hyperlink.
But.. This is not work.
It return..
(When the URL contains two)
sample http://google.com text http://yahoo.com
or
(When the URL contains one = "sample http://google.com text")
sample
(http://google.com text is not showin).
How can fix this code? or... another way?
|
|
|
|
|
Hi all,
I have written a .Net desktop application whose UI is completely written in WPF. The application works fine on my dev machine (Windows XP).
But when I tried to run my application on a fresh VISTA machine, I could not run it. I got a message that application fails to start (kind of message).
And when I run my application on VISTA machine which already have Visual Studio 2008 installed on it, my application runs without any problem.
Can somebody let me know please what should do before running my application on a fresh VISTA (or Windows7) machine? Am I missing some .net dlls/assemblies which should be copied on a fresh machine before I run my application there?
I am also creating installer of my application. If there is something else that I should take care of while installing a .net/WPF application, please let me know.
Regards
Aseem Sharma
|
|
|
|
|
Check if you have the appropriate versions of the framework on the Vista machine.
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
Visit the Hindi forum here.
|
|
|
|
|
I need to create table that all ListViewItem of this table will be build hold
1. Image
2. Text
3. Button
How can i do it ?
|
|
|
|
|
This[^] article is not Silverlight but it might just help you.
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
Visit the Hindi forum here.
|
|
|
|
|
Its not in WPF - its in simple winform !
|
|
|
|
|
Use a DataTemplate for the ListViewItem, and populate it with the the items you are interested in. Obviously, these items would have to be bound items.
|
|
|
|
|
I am having serious problems with the inconsistency of the development environment and want to know if it is just me. Some of the symptoms during development are;
An async call will work perfectly and then return server not found.
A method that worked 5 minutes ago fails with a spurious message then works when I restart the app again. This is a waste of endless hours as I cannot trust the IDE to be consistent.
An Async/completed pair will work if I follow through the structure of the app, then the completed method does not get hit when I shortcut the path. This one is really weird!
The WCF service will not update the reference, occasionally I have to delete the service from the SL app just to get a new method to reflect into the reference
Debugging is just insane - I either need a third party app or a winforms client to debug an asynch service.
Combo boxes are a complete PITA, I am astonished we have reached release 4 and these are such a disaster.
The combination of the above means that productivity is about 10% of what I can do with winforms, even with a WCF service. I have the feeling I may have made a complete blunder recommending Silverlight.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Yes, it's just you...
No, seriously, I have exactly the opposite problem - working with winforms is a torture for me, while SL and WPF seems to go smoothly. I guess it's just the matter of personal preference - everybody has to find at least 1 technology to hate.
|
|
|
|
|
Mycroft Holmes wrote: Debugging is just insane - I either need a third party app or a winforms client to debug an asynch service.
*Cough*Use Attach to running process to debug - it's a lot easier.
|
|
|
|
|
Well....things are not this bad.
It's just you.
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
Visit the Hindi forum here.
modified on Monday, October 11, 2010 11:52 PM
|
|
|
|
|
Abhinav S wrote: Well....things are not this bad.
Oh yes they are, and then we have some stellar decisions from IT, they have decided that remote sites will have to access the systems via citrix.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: they have decided that remote sites will have to access the systems via citrix.
Intersting. We too had a similar issue with a client.
The client had to run SL apps on citrix.
Still not found a workaround.
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
Visit the Hindi forum here.
|
|
|
|
|
Mycroft Holmes wrote: The WCF service will not update the reference, occasionally I have to delete the service from the SL app just to get a new method to reflect into the reference
Yeah, that happens to me a lot as well - more so in WPF, but occasionally in Silverlight as well.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|