User Profile & Activity

Michael Giger Member
Page
of 4
Posted: October 25, 2011 4:15 AM

Hi Handy

I think, here is an other bug in ResourceOverride. See attached picture.

Regards

Michael

Posted: October 25, 2011 3:41 AM

Hi Yudi

Thanks for excellent support!

I have skipped the first three steps, because I've bound the command directly to the UXGridView (see last line of code). It works fine.

<Intersoft:UXGridView Intersoft:DockPanel.IsFillElement="True" AutoGenerateColumns="False"
    Style="{StaticResource UXGridViewStyle}"
    IsBusy="{Binding IsBusy, Mode=TwoWay}" 
    IsRefreshed="{Binding IsRefreshed, Mode=TwoWay}"
    SortDescriptors="{Binding QueryDescriptor.SortDescriptors, Mode=TwoWay}"
    PageDescriptor="{Binding QueryDescriptor.PageDescriptor}"
    FilterDescriptors="{Binding QueryDescriptor.FilterDescriptors, Mode=TwoWay}"
    PageSize="{Binding ElementName=PageSize, Path=Text}"
    ItemsSource="{Binding Path=Items}"
    SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
    NewItem="{Binding NewItem, Mode=TwoWay}"
    HasChanges="{Binding HasChanges}"
    AutoEditOperation="{Binding AutoEditOperation}" 
    PrepareNewRowCommand="{Binding PrepareNewRowCommand}"
    ValidateRowCommand="{Binding ValidateRowCommand}" 
    InsertRowCommand="{Binding InsertRowCommand}"
    DeleteRowCommand="{Binding DeleteRowCommand}" 
    UpdateCellCommand="{Binding UpdateCellCommand}" 
    UpdateRowCommand="{Binding UpdateRowCommand}"
    SaveChangesCommand="{Binding SaveChangesCommand}" 
    RejectRowCommand="{Binding RejectRowCommand}"
    RejectChangesCommand="{Binding RejectChangesCommand}"
    RefreshCommand="{Binding RefreshCommand}">

Regards

Michael

 

 

Posted: October 22, 2011 6:28 PM

Hi

Was this implemented/tested in the R1?
 
Regads
Michael
Posted: October 19, 2011 5:30 AM

Hi Yudi

Please excuse the unclear description!
 
I would that the data is loaded and displayed if I click on refresh button in the statusbar. In I have seen in Expression Blend that refresh button is bound as follows:
 
<Intersoft:UXStatusBarItem>
    <Intersoft:UXFlatButton Command="core:DataViewCommands.Refresh" Icon="/Intersoft.Client.UI.Data;component/Resources/refresh.png" Style="{StaticResource CommandButtonStyle}"/>
</Intersoft:UXStatusBarItem>

This command is overridden with UXGridView refresh command? I had thought it would run both commands...

How can I clear the cached data?
 
Thank you for your much appreciated work!
 
Regards
Michael

Hi Yudi

Please excuse the unclear description!
My question is very simple. Can I use the parameter "Description" from display attribute? Have a look at attached picture.
 
The parameter "Name" is automaticly used for Header text. It would be very plesant, if the description as ToolTipText would appear when the mouse is over the header cell. The dataform from the Microsofts DataForm.Toolkit makes it so.
 
It is possible to edit the ColumnHeaderStyle Template in Expression Blend for this behavoir?
 
Regards
Michael

Hi Martin

It very cool - the name of the display attribute is now displayed as a header! It is possible to use the Description, e.g. as ToolTipText? I have found no way...

            [Display(Name = "Hide Property", Order = 3, Description = "If the User should not see this than check it.")]
            public bool Hide { get; set; }

Regards

Michael

 

Posted: October 18, 2011 7:38 AM

Hi Yudi

Yes, I have seen that UXGridView refresh command is not bind. But if I click on refreshbutton, a request is running (see my first post). Can I not use this query directly? Run the query twice after?

Regards

Michael

Posted: October 18, 2011 1:19 AM

Hi Handy

I want localizing UXGridView textual content (show here at the bottom). Try the following code and see how contextmenu is shown in edit mode (see pic in my first post).

<Intersoft:UXGridView.ResourceOverride>
    <Intersoft:UXGridViewResource ContextMenu_Cancel="ContextMenu_Cancel_EN" ContextMenu_Update="ContextMenu_Update_EN" />
</Intersoft:UXGridView.ResourceOverride>

I haven't found a textual content for integrated Pager (Page x of y).

Regards

Michael

 

Posted: October 17, 2011 10:22 AM

Hi Yudi

Thanks for very helpful sample! For all with the same problem. I've implemented it like this:

Changes in EditableGridViewModelGenericBase.cs

public EditableGridViewModelBase()
    : base()
{
    // Batch update is not supported in WCF RIA Services.
    this.IsBatchUpdate = false;
    this.AutoEditOperation = false;

    this.DeleteRowCommand = new DelegateCommand(ExecuteDeleteRow);
    ...
    this.DuplicateRowCommand = new DelegateCommand(ExecuteDuplicateRow);
}


public DelegateCommand DuplicateRowCommand { get; set; }


protected virtual void ExecuteDuplicateRow(object parameter)
{
    this.EditableProductsSource.Insert(parameter as T);

    if (!this.IsBatchUpdate)
        this.SaveChanges();
    else
        this.HasChanges = true;
}

Changes in *ViewModel.cs

protected override void ExecuteDuplicateRow(object parameter)
{
    Person currentPerson = parameter as Person;
    Person duplicatePerson = new Person();
    duplicatePerson.ID = System.Guid.Empty; //.NewGuid();
    duplicatePerson.Name = currentPerson.Name + " - Copy";
    duplicatePerson.Vorname = currentPerson.Vorname;
    base.ExecuteDuplicateRow(duplicatePerson);
}

Regards

Michael

Hi Handy


Thanks for the information.
I have tested your instructions on the product page. It did work! Much better - I couldn't see this limitation when I've not saved the changes before I navigate to page 2 (and back).


The problem is, that the changes are not colour marked, such as the WebGrid. That is why I will not use the BatchUpdate. Thank you anyway.

Michael

All times are GMT -5. The time now is 6:59 PM.
Previous Next