Please suggest me
Please find the below link for your help
http://es.infragistics.com/community/forums/t/80549.aspx
Hello,
I am glad you found the solution.
Please let me know if I can provide you further assistance.
Thanks for your response.
I am using infragistics iggrid in my MVC Application
I need file upload control in each row of iggrid.
Please refer the attached screen shot
I belive you already found the solution through the link you provided?
In the link Martin provided the information as:
Template is executed in the browser so you should put the following code:
.Columns(column =>{column.For(x => x.id).HeaderText("ID").Width("100px").Hidden(true);column.For(x => x.name).HeaderText("Name").Width("250px");column.Unbound("UploadColumn").Width("300px").Template("<div id='${id}' class='upload-control'></div>");
})
Note that instead of filepath I used an unbound column.
And you code to initialize the igUpload should be in JavaScript below the Grid initialization code. like this:
<script type="text/javascript">
$(function() {
$("#grid1 .upload-control").igUpload({});
});
</script>
Please note your attachment did not come through please reattach the screen short with the zip file.
Let me know if i can provide you further assistance.
Thanks for the solution.
I am unable to display the header text.
Please share the complete solution file
Hello Ballu,
To get the header text in the upload column of the grid you can add HeaderText property as below.
Your code would be like this:
column.Unbound("UploadColumn").HeaderText("Upload").Width("300px").Template("<div id='${ProductID}' class='upload-control'></div>").Width("200px");
Please let me know if you need further assistance.
I have created a sample application to demonstrate how you can have igUpload in iggrid.
In my sample I have taken a little different approach then the solution provided by Martin in the post.
I am having a Client event when all rows are rendered by using ‘rowsRendered’ even and
In this event I am binding upload control with the grid.
Your code would be like below:
.AddClientEvent("rowsRendered", "instantiateUploads")
function instantiateUploads() {
};
Please note just to reduce the sample size i have removed the dlls from bin folder.
Find the attached sample and let me know if you need further assistance.
Thanks for your reply.
columns{
headerText:Upload,
Unbound:true,
Template"<div id='${ProductID}' class='upload-control'></div>"
}
I am using above code. but i am getting below error
id is not determined.
Please share the completed code.