Skip to main content

Hi all,

 

Is that anyway to delete multiple rows in list view based on condition?

For example, my list view data as shown below (not yet save to database).

 

                  ID, ParentID

1st row:     1, 1

2nd row:   2, 1

3rd row:    3, 2

4th row:    4, 2

 

What i want to archieve is when i click on delete button, i will delete bunch of data based on ParentID.

For example, delete 1st and 2nd row from the list view at the same time (as they have the same ParentID).

 

Thanks & Regards,
Kyo.

I'm not sure if it's possible to do that, but I want you to try the following

 

First drag datalable to the list view and name it dlParentID

 

the delete button should be set as the following

 

When Delete button is clicked

 

transfare data (transfare ParentID to dlParentID)

 

Delete item from list

 

For All Items in the list

     If ParentID = dlParentID

 

Delete Item from list

 

 

let me know the result please

 

wish it helps


Hi Mustafa,

 

What you mean is

 

1) When Delete button is clicked

     Transfer data to a datalabel

 

2) When the view executed list item removed

     delete all item from list (for all parentid = lblparentid)

 

am i right?

 

K2 rule only enables to delete the selected row from the list.

For my case, my data is still not yet save to database, and there is no way for K2 to delete multiple rows.


If my data is saved in database, i can delete the data from the database and execute list refresh.

Like this only can archieve delete multiple rows.

 

For list view, i think only can delete 1 by 1 row as i had tried.

 

Thanks & Regards,

Kyo.


Hi @all,

 

i have the same problem like kyo. I want to delete some rows that dosn't contain my advanced condition. I find now way to delete the rows in a For Each rule.

I can'd delete the rows because they are not selected.

The Rows are combined out of multiple Database tables.

Is there any other way or idea ore custom control i can use?

 

Thanks and Regards

Joerg


Dear All

 

About this question, I'm not sure it solved.

My test project, I set a list view to multiple selected rows.

Set a rule to
Add for all selected rows before remove a rows

 



Reply