Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic KeyBoard navigation on RowHeades in LaneGrid (Read 2674 times)
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
KeyBoard navigation on RowHeades in LaneGrid
Sep 2nd, 2009 at 5:46am
Print Post  
Hi,

I am working with LaneGrid and I need to navigate on the rowHeaders with keyboard.

Is this feature supported..???

If so...then:

1.) How can I do this and also need to show the Header focused when the keyboard selection is on the header.

2.)How can I get the current selected header(selected through keyboard) in the code.

It will be great if you provide some sample code.

Thanks..
Priyanka
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: KeyBoard navigation on RowHeades in LaneGrid
Reply #1 - Sep 2nd, 2009 at 7:20am
Print Post  
Hi,

That's shown in this example:
https://www.mindfusion.eu/_samples/HeaderFocus.zip

You should also use the assembly we sent you some time ago that fixed the cell style auto-refresh bug.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: KeyBoard navigation on RowHeades in LaneGrid
Reply #2 - Sep 3rd, 2009 at 5:02am
Print Post  
Hi,

Thanks for your reply.

But is there some other way for getting the rowHeader.

As I am having the headers hierarchy upto 2 levels(i.e. RowHeaders and its SubHeaders.) and i'll be needing the RowHeaders and not the subHeaders, but the grid.GetRowIndex will always provide me   (-1) for the RowHeaders.

1.) So is there any alternate way to get the topmost RowHeaders in the RowHeaders Hierarcy.

2.) Or is there any way of getting the index of Parent Header from subHeader.

Thanks,
Priyanka
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: KeyBoard navigation on RowHeades in LaneGrid
Reply #3 - Sep 3rd, 2009 at 10:26am
Print Post  
Hi,

1) You can get the top-level headers from the RowHeaders and ColumnHeaders properties of the Grid class.

2) There is currently no way to obtain the parent of a subheader unless you traverse the whole hierarchy recursively, which might be slow. As outlined in the documentation Grid.GetRowIndex and Grid.GetColumnIndex only work for bottommost headers.

Regards,
Meppy
  
Back to top
 
IP Logged
 
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: KeyBoard navigation on RowHeades in LaneGrid
Reply #4 - Oct 30th, 2009 at 6:22am
Print Post  
Hi,

I was using version 2.1.1 of MindfusionDiagram and was using the LaneDiagram of the Diagram.

When I upgraded to the newer version 2.2.1 my application threw an exception and the application crashed.

I tried to reproduce the same in sample application but due to time constraints I was not able to reproduce it.

The following is the exception which i got.
Quote:
--------------------------------------
DateTime: 10/30/2009 11:38:54 AM
Exception: Value cannot be null.
Parameter name: textToFormat
Stack Trace:    at System.Windows.Media.FormattedText..ctor(String textToFormat, CultureInfo culture, FlowDirection flowDirection, Typeface typeface, Double emSize, Brush foreground, NumberSubstitution numberSubstitution)
   at System.Windows.Media.FormattedText..ctor(String textToFormat, CultureInfo culture, FlowDirection flowDirection, Typeface typeface, Double emSize, Brush foreground)
   at MindFusion.x09d6340d05b7af69.xaab109ce2050e76a(String xb41faee6912a2313, Font x26094932cf7a9139, Brush xd8f1949f8950238a, Size xd795812a0a73a33b, StringFormat x89ac3f1d7b03605d)
   at MindFusion.x09d6340d05b7af69.x9609f90f13149bac(DrawingContext x41347a961b838962, String xb41faee6912a2313, Font x26094932cf7a9139, Brush xd8f1949f8950238a, Rect xd795812a0a73a33b, StringFormat x89ac3f1d7b03605d)
   at MindFusion.Diagramming.Wpf.Lanes.Grid.x6f527739acb8e9eb(Header x6b0ad9f73c48ad53, Rect xda73fcb97c77d998, Object x70bb49687dfea062)
   at MindFusion.Diagramming.Wpf.Lanes.Grid.x055bf12d5ead37b4(x9a6028c0a8f4ef4a x7d1bf994956f1081, Double x27d9e9f754a77a2c, Double xe44fb7dc05e0221a, Object x70bb49687dfea062)
   at MindFusion.Diagramming.Wpf.Lanes.Grid.x5fae5426891c7f2a(DrawingContext x41347a961b838962)
   at MindFusion.Diagramming.Wpf.Lanes.Grid.x7f078bc29923174b(DrawingContext x41347a961b838962)
   at MindFusion.Diagramming.Wpf.Lanes.xe0c0814411a0d057.OnRender(DrawingContext drawingContext)
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
Exception Source: PresentationCore
InnerException:
--------------------------------------



Please provide some pointers to solve the problem.

Thanks,
Priyanka
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: KeyBoard navigation on RowHeades in LaneGrid
Reply #5 - Oct 30th, 2009 at 8:49am
Print Post  
Do you set the Title property of any of the lane headers to null? If this is the case, you can try setting it to an empty string instead.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint