Planned
Last Updated: 20 Dec 2021 15:23 by ADMIN

Currently the Enabled state of the buttons is not updated: 

With this setup it is expected that the First/Previous and FastBack buttons are disabled. The same is also valid with the Last/Next and FastForward buttons when the last page is current.

A possible workaround is to handle the ViewChanged event of the template and manage the Enabled state of the buttons. Just make sure that the event is subscribed before enabling the paging: 

this.radGridView1.MasterTemplate.ViewChanged += this.MasterTemplate_ViewChanged;
this.radGridView1.EnablePaging = true;
private void MasterTemplate_ViewChanged(object sender, DataViewChangedEventArgs args)
{
    this.radGridView1.GridViewElement.PagingPanelElement.FirstButton.Enabled = true;
    this.radGridView1.GridViewElement.PagingPanelElement.PreviousButton.Enabled = true;
    this.radGridView1.GridViewElement.PagingPanelElement.FastBackButton.Enabled = true;

    this.radGridView1.GridViewElement.PagingPanelElement.LastButton.Enabled = true;
    this.radGridView1.GridViewElement.PagingPanelElement.NextButton.Enabled = true;
    this.radGridView1.GridViewElement.PagingPanelElement.FastForwardButton.Enabled = true;

    if (this.radGridView1.MasterTemplate.PageIndex == 0)
    {
        this.radGridView1.GridViewElement.PagingPanelElement.FirstButton.Enabled = false;
        this.radGridView1.GridViewElement.PagingPanelElement.PreviousButton.Enabled = false;
        this.radGridView1.GridViewElement.PagingPanelElement.FastBackButton.Enabled = false;
    }
    else if(this.radGridView1.MasterTemplate.PageIndex == this.radGridView1.MasterTemplate.TotalPages - 1)
    {
        this.radGridView1.GridViewElement.PagingPanelElement.LastButton.Enabled = false;
        this.radGridView1.GridViewElement.PagingPanelElement.NextButton.Enabled = false;
        this.radGridView1.GridViewElement.PagingPanelElement.FastForwardButton.Enabled = false;
    }
}

Planned
Last Updated: 12 Nov 2021 14:47 by ADMIN
Created by: Monique
Comments: 1
Category: Installer and VS Extensions
Type: Bug Report
0

Below is the error.  I had removed all the references and was trying to add them back through the configure project extension vs 2019 and vs 2022 threw the same error. 

 

An error occurred while running the wizard.

Error executing custom action Telerik.WinControls.VSX.Actions.UpdateReferencesAction: System.Runtime.InteropServices.COMException (0x80004005): This reference cannot be removed from the project because it is always referenced by the compiler.
   at VSLangProj.Reference.Remove()
   at Telerik.VSX.Internal.ProjectManagement.ApplicationProjectAssemblyReference.RemoveReference()
   at Telerik.VSX.ProjectConfigurators.ApplicationReferenceManager.RemoveReferences()
   at Telerik.VSX.ProjectConfigurators.ApplicationReferenceManager.UpdateReferences()
   at Telerik.VSX.Actions.UpdateReferencesAction.UpdateReferences(IProjectWrapUIComponents projectWrap)
   at Telerik.VSX.Actions.UpdateReferencesAction.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments, IProjectWrap project)
   at Telerik.VSX.Actions.ProjectActionBase.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.Actions.ActionBase.Telerik.WizardFramework.IAction.Execute(IWizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.ActionManager.ExecActions()

 

 

Planned
Last Updated: 12 Oct 2020 11:34 by ADMIN
Created by: kultman
Comments: 1
Category: Installer and VS Extensions
Type: Bug Report
0
I upgraded to latest version of Win UI controls, and opened a project for an Outlook COM Addin. There has been no problems upgrading Telerik controls in that project until now. It's a Class Library project with Telerik forms in it. Now I have to change project type to Windows Forms, upgrade Telerik and then back to Class Library. Silly really... :)