This is a migrated thread and some comments may be shown as answers.

Is current row new?

3 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tooraj
Top achievements
Rank 1
Tooraj asked on 05 Mar 2011, 11:34 AM
hi,
How can I know it that the current row is a new row?
Also here is some other questions still unsolved:
1- Is there a control like FilterEditor of Janus Components in Rad Controls Collection?
2- In radTreeView Control when I set the control's right to left to Yes the Left and Right arrow keys treats same as the control in  Left to right mode that is is by pressing left arrow key a node must be expanded (For RTL treeview) but it collapses the node (which is right for LTR mode). how can I have it with correct treatment.
Thank you.

3 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 05 Mar 2011, 12:31 PM
Hello Tooraj,

I'll try and answer your questions:

1: The RadGridView has two events for when the user is adding and has added a row. You can pick up the new row that the user has added / is adding by subscribing to the UserAddingRow and UserAddedRow events
You can also subscribe to the RowsChanging and RowsChanged events and pick up the Action from the GridViewCollectionChangedEventArgs for example
private void radGridView1_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
{
    if (e.Action == NotifyCollectionChangedAction.Add)
    
      
    }
}

2: I'm not familiar with the Janus controls, but the RadGridView supports simple, composite, Excel Like and custom filers. You can find out more about RadGridView basic filtering and follow the help section at this link

3: The RadTreeView, and indeed all RadControls are getting a major overhaul when it comes to RTL support in the next release which is due out the middle of the month. For more information please see the roadmap

Hope that helps
Richard
0
Richard Slade
Top achievements
Rank 2
answered on 08 Mar 2011, 07:28 PM
Hello
Did this help? If so please remember to mark as answer.
If you need further assistance, please let me know
Thanks
Richard
0
Stefan
Telerik team
answered on 10 Mar 2011, 10:05 AM
Hello guys,

Richard's suggestions answer your questions. I just want to add that I can confirm that this is an issue in RadTreeView. We will investigate this case and will take appropriate actions in a future release. I have added this into out PITS system and I have updated your Telerik points for the report. Meanwhile, you can work around this behavior by creating a descendant of RadTreeView and apply the logic in overridden KeyDown method:
public class MyRadTreeView : RadTreeView
   {
       protected override void OnKeyDown(KeyEventArgs e)
       {
           if (e.KeyData == Keys.Left && this.RightToLeft == System.Windows.Forms.RightToLeft.Yes)
           {
               this.SelectedNode.Expand();
               return;
           }
           if (e.KeyData == Keys.Right && this.RightToLeft == System.Windows.Forms.RightToLeft.Yes)
           {
               this.SelectedNode.Collapse();
               return;
           }
           base.OnKeyDown(e);
 
       }
 
       public override string ThemeClassName
       {
           get
           {
               return typeof(RadTreeView).FullName;
           }
       
   }

I hope this helps. Let us know if you need anything else.
 
Greetings,
Stefan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Tooraj
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or