New Posts New Posts RSS Feed: DevExpress Grid EmbeddedNavigator
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

DevExpress Grid EmbeddedNavigator

 Post Reply Post Reply
Author
pucsoftware View Drop Down
Groupie
Groupie
Avatar

Joined: 15-Apr-2008
Location: United States
Posts: 46
Post Options Post Options   Quote pucsoftware Quote  Post ReplyReply Direct Link To This Post Topic: DevExpress Grid EmbeddedNavigator
    Posted: 20-Jun-2008 at 8:14am
We are using DevExpress 8.1 with Devforce 3.6.2.2. I am using XtraGridBindingManager to bind DevForce objects to a DevExpress Grid. I have the grid set to show the Embedded Navigator. All the buttons are enabled except for the Remove (delete) button in the Navigator and I don't know why. I've created a ButtonClick for the grid and use this when I'm adding records but since the Remove button is not enabled, even when I select a record, I can't Delete a record from the Grid. The XtraGridBindingManager has a property for AllowNew but nothing for Delete. Is there something special I need to do in order to enable the Remove button in the EmbeddedNavigator. I've looked for any property for this in the Grid itself and can't find any and I've checked that the Remove button is enabled in the properties. So, I'm either missing something simple or there's got to be something wrong. Any ideas?
 
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 23-Jun-2008 at 3:25pm

Even though the "Delete" button may noy be initially enabled, you should be able to enable it by running the DevEx Designer, selecting the Feature Browser, and checking the checkbox for "UseEmbeddedNavigator" Property.  Once you do this, you should have access to the EmbeddedNavigator Buttons.  Sekect the "Remove" button and set "Enabled" to "True".

You will probably want a Click Handler to handle Click Events for the Embedded Navigator buttons.
 
I used this code to set up the Click Handler.

this.gridControl1.EmbeddedNavigator.ButtonClick += new DevExpress.XtraEditors.NavigatorButtonClickEventHandler(EmbeddedNavigator_ButtonClick);

This is the default Click Handler I created:

void EmbeddedNavigator_ButtonClick(object sender, DevExpress.XtraEditors.NavigatorButtonClickEventArgs e) {

throw new Exception("The method or operation is not implemented.");

}

If you look at e, you will see that it contains a Button which has a property called ButtonTYpe.
 
For more details see:
 
 


Edited by davidklitzke - 23-Jun-2008 at 3:27pm
Back to Top
pucsoftware View Drop Down
Groupie
Groupie
Avatar

Joined: 15-Apr-2008
Location: United States
Posts: 46
Post Options Post Options   Quote pucsoftware Quote  Post ReplyReply Direct Link To This Post Posted: 24-Jun-2008 at 6:18am
I know how to use the embedded navigator. I have all the properties set that  you mentioned. That is what is so odd. There's no reason that I can tell that the Remove button would be disabled. Since this doesn't seem famaliar to you, the problem is probably with the Grid and not anything the DevForce binding manager would be doing. I will send in a request to DevExpress that details the problem, see if they can come up with something. If I can't find a solution I'll post again and try and send you my project.
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 24-Jun-2008 at 3:56pm
I think that that is a good idea.  There is obviously something strange going on in your environment.  I don't see the problem, and I am not aware of any other customers who have reported this problem.
Back to Top
pucsoftware View Drop Down
Groupie
Groupie
Avatar

Joined: 15-Apr-2008
Location: United States
Posts: 46
Post Options Post Options   Quote pucsoftware Quote  Post ReplyReply Direct Link To This Post Posted: 27-Jun-2008 at 7:05am
I sent an email with an attachment of my project to support a few days ago. Do you know if you received it? If so, have you had a chance to look at it? Any ideas?
 
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down