473,385 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

delete some checkbox files while click the remove button

Hello Everyone,

I am facing problem with knockout bindings. I am new to knockout. So please help me. I am dynamically binding foldernames along with files to accordion. here files are showing in image tag with checkbox also.

How to remove selected files by checkbox on single button click.
here i am posting my code. checkout & help me


Expand|Select|Wrap|Line Numbers
  1. <div class="accordion-style1 panel-group" id="accordion" data-bind="foreach:$root.ExtractedMultipleAttachementlist">  <div class="panel panel-default panel-default-custom" style="clear: both"> <div class="panel-heading" style="border: solid 0px #000"> <h3 class="panel-title"> <a data-bind="attr: { href: '#div' + $data.ID }" data-parent="#accordion" data-toggle="collapse" class="accordion-toggle collapsed  panel-title-custom"> <i data-icon-show="icon-user" data-icon-hide="icon-book" class="icon-folder-close  blue bigger 150"></i>
  2.                                 *<span data-bind="text:$data.FilePath"></span> <span class="float:right"><i class ="icon-trash bigger-120 black" data-bind="click:$root.DeleteFiles,clickBubble: false" ></i></span> </a> </h3> </div> <div class="panel-collapse collapse" style="clear: both" data-bind="foreach: $data.attachmentLst,attr: { id: 'div' + $data.ID }">
  3.                         @*<div class="panel-body panel-body-custom no-padding-left">      *@
  4.  
  5.                         <div class="col-xs-4"> <input id="chkDefault" name="chkDefault" type="checkbox" data-bind='event: { change:$root.getSelectedAttachments }' /> <img data-bind="attr: { 'src': $data.ImageThumbnailData }" width="50px" height="50px" /> </div>
  6.  
  7.                         @* </div>*@
  8.                     </div> </div>  <div style="height: 5px"> </div> </div>
Thanks in Advance
Satish Chandragiri
Jan 27 '15 #1
0 1107

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Matt | last post by:
I want to write a generic clearForm function to clear the form when the user click CLEAR button. Here's my attempts, because I want to take care all html controls. I think I need to test if the...
4
by: Shyguy | last post by:
I have a database that backs up critical tables to a database, named Backup with the date, daily. I can't figure out how to delete these databases programmatically, say when they are 5 days old or...
2
by: Keith Smith | last post by:
I have noticed that when I uninstall my app it doesn't delete the Program Files / MyApp folder if there are "new" files in it that weren't there before. It deletes all files except the "new" ones....
7
by: korund | last post by:
I want solve a small problem. Since javascript can't read and write as a file, VBScript is used in a code. When a user click's on a 'Yes' button on a Internet Explorer activeX prompt, a VBScript...
10
by: Mateusz Rajca | last post by:
Hi! How do I delete multiple files in C#? I would like the specific code. Thanks! Matt
1
by: Mike P | last post by:
How do you add a confirm delete pop-up for a button field? I've managed to do this for a link button, where you can refer to the button id, but there is no id to refer to for a button field. ...
3
by: ad | last post by:
Hi, How can I delete all files in a folder by C# for example, I want to delete all files under c:\Test
2
by: ASAP | last post by:
there is a checkbox in every row of a table. i need to check the checkbox on click of the corresponding row and vice -versa. means on again clicking of the same row it should get delected.
8
rush it
by: rush it | last post by:
Is it possible to have a checkbox validate a radio button? I have two radio buttons (Free Lunch and Reduced Lunch). If the user chooses either of these, the checkbox below (Please agree to the...
2
by: Jennytranxxx | last post by:
How do I assign a delete query onto a command button? I have read a few forums and it has told me to: Go to Properties Rename the Name and Caption, so i've renamed it to Runquery Under Event -...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.