Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
There are lots of article to demonstrate integration of itextsharper(pdf file generation library) with MVC3 and native model binding technique in .Net,But my requirement is to integrate itextsharper in a MVC3 razor view page.The razor page is having model binding as well as knockout binding as shown below.

HTML
@model Care4U.Scheduling.Services.WebModels.PatientEHR.PatientEHRWebModel

XML
<table class="table  table-striped table-hover">
    <thead class="medicationTheader">
            <tr>
                <td colspan="4">
                    <table width="100%" cellpadding="0" cellspacing="0" class="table-striped table-hover">
                        <tr>
                            <td width="56%" class="HeaderCellContent">Visit Date:
                            <!-- ko if: PastVisitRecords().length>0 -->
                            <div data-bind="text:PastVisitRecords()[0].VisitDate" style="display:inline-table"></div>
                            <!-- /ko -->
                            </td>
                            <td width="34%">&nbsp;</td>
                            <td width="10%"><button class="ehr-btn btn btn-success" >Edit</button></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </thead>
        <tbody data-bind="foreach: ehrViewModel.PastVisitRecords">
            <tr>
            <td width="2%">&nbsp;</td>
                <td width="50%" class="CellContent" data-bind="text:EHRDisplayText"></td>
                <td width="5%"><img src="../../../Content/Images/Ehr/Arrows.gif" /></td>
                <td width="43%" class="CellContent" data-bind="text:Value"></td>
            </tr>
        </tbody>
    </table>


If i am using itextsharper without knockout binding,then it is working fine.As i bind my above table with knockout binding,then it is showing issue.If anyone can provide me demo regarding use of knockout binding along with native model binding along with itextsharp integration to above markup then i will highly appreciate him/her.Thanx in advance...
Posted
Updated 5-Aug-13 19:57pm
v4

1 solution

What exactly are you trying to achieve? ... please make your question clearer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900