Hi,
I'm currently using a dataentry connected to a bindingnavigator. I'm using the below code to check when the bindingsource collection change.
The goal is to disable the delete button in the bindingnavitor when the bindingsource collection has 1 item in it like shown below:
bs.ListChanged += (s, e) =>
{
int itemCount = Convert.ToInt32(bindingNavigator.BindingNavigatorElement.PageLabel.Text.Split(' ')[1]);
if (itemCount == 1)
{
bindingNavigator.BindingNavigatorElement.DeleteButton.Enabled = false;
}
else
{
bindingNavigator.BindingNavigatorElement.DeleteButton.Enabled = true;
}
};
However, I'm having a hard time disable the delete button. As seen in the ListChanged, I'm using below code to disable the button, but it seems that it has no effect at all. Am I doing something wrong?
bindingNavigator.BindingNavigatorElement.DeleteButton.Enabled = false;
I've created a custom binding navigator that inherits from the default to be able to optionally cancel the button navigation. When I add the custom navigator to the form, I don't get the default images. Instead they all use a default image like the attached image. How can I create a custom navigator with the standard button images?
This issue happens even if there is no custom code like the example below:
Public
Class
CancelBindingNavigator
Inherits
RadBindingNavigator
Protected
Overrides
Function
CreateNavigatorElement()
As
RadBindingNavigatorElement
Return
New
RadBindingNavigatorElement()
End
Function
End
Class
I've bound a RadBinding Navigator to a binding source
every thing is ok Before any event is fired like
Move to first item
Move to previous item
Move to next item
Move to last item
unfortunately after One of the above event is fired , all the buttonS (first ,previous,next,last ) Get Disabled.
Can You Help Me?
Hi,
Using BindingNavigator with DataLayout - how to add confirmation dialog to Delete button?
Also how to disable Delete button?
Me.RadBindingNavigator1.BindingNavigatorElement.DeleteButton.Enabled = False
- has no effect
Thanks
Alex
Hello, my English is bad, very bad 8D
BindingNavigator don't work, when I write code:
RadBindingNavigator.BindingSource = tableBindingSourse;
however, in the standart BindingNavigator it's working this code
pls, help ^___^
How can I add new controls (buttons, raddropdownlist etc) to RadbindingNavigator? When using Microsoft control it is pretty easy and can be done at design time. Any clues?
Thanks
Wojciech
Hi,
I'm trying to perform operations as illustred in your article here: http://docs.telerik.com/data-access/developers-guide/data-access-model/advanced-model-tasks/developer-guide-domain-model-managing-advanced-project-data-source.
I can't! Object's three in the Data Source tool window seems to be "readonly", not draggable to the RadForm. They have aspect like in the first image attached. If I try to switch to a regular WinForm form, and I come back to the Designer, the aspect of the objects and field is slightly different, as in the second attachment, and I can drag them to the form succesfull.
Where is the trick? Why I can't with the RadForm form?
Thanks in advance.