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

[Solved] Popup Editor within ClientTemplate - Implementation Advice

0 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jerry
Top achievements
Rank 1
Jerry asked on 07 Oct 2011, 04:57 PM
I've a got a grid with a client template in a detail view implemented as such:
"<div class="t-widget t-grid">" +
  "<table cellspacing="0">" +
    "<thead class="t-grid-header">" +
      "<tr>" +
        "<th colspan="4" class="t-header"><#= Description #> <#= Description2 #></th>" +
      "</tr>" +
    "</thead>" +
    "<tr>" +
      "<td>Shares Held</td>" +
      "<td><#= Shares #></td>" +
      "<td>Market Value</td>" +
      "<td class="t-last"><#= MarketValue #></td>" +
    "</tr>" +
    "<tr class="t-alt">" +
      "<td>Cost</td>" +
      "<td><#= Cost #></td>" +
      "<td>Market Price</td>" +
      "<tdclass="t-last"><#= MarketPrice #></td>" +
    "</tr>" +
    "<tr>" +
      "<td>Percent of Market</td>" +
      "<td><#= PercentOfMarket #></td>" +
      "<td>Yield on Market</td>" +
      "<td class="t-last"><#= YieldOnMarket #></td>" +
    "</tr>" +
    "<tr class="t-alt">" +
      "<td>Accrued Income</td>" +
      "<td><#= AccruedIncome #></td>" +
      "<td><#= SecurityIDTypeDescription #></td>" +
      "<td class="t-last"><#= SecurityID #></td>" +
    "</tr>" +
    "<tr>" +
      "<td>Asset Sector</td>" +
      "<td colspan="3"><#= AssetSector #></td>" +
    "</tr>" +
  "</table>" +
"</div>"

It's been determined that several of the table cells in the detail view should be editable.  I want to make it so that if a user clicks on the cell, (the Cost cell, for instance) - a form pops us and allows the value to be edited.

How would I go about implementing this within the client template?

Thanks.

J
Tags
Grid
Asked by
Jerry
Top achievements
Rank 1
Share this question
or