Hi All,
I have got a strange one here. If I have this template assigned to a field on grid it works fine for existing items, but if I create an item the #Id# is zero. I have check to make sure the datasource is updated after the item is saved and the Id is set to the new value.
{ field: "Name", title: "Name", width: "300px", "template": "<div class=\"sv-navcolumn\" data-id=\"accountdetail/#:Id#\" onclick=\"accountLaunchDetails(this)\" ><span class=\"sv-navcolumnlink\" >#: Name #<img src=\"/Images/arrow-right.png\" alt=\"Show Pointer\"></span></div>"},
Here is the resulting HTML
<div class="sv-navcolumn" data-id="accountdetail/0" onclick="accountLaunchDetails(this)"><span class="sv-navcolumnlink">test <img src="/Images/arrow-right.png" alt="Show Pointer"></span></div>
So when is the template evaluated when an item is created?
Any suggesting?
Regards
Richard....
I have got a strange one here. If I have this template assigned to a field on grid it works fine for existing items, but if I create an item the #Id# is zero. I have check to make sure the datasource is updated after the item is saved and the Id is set to the new value.
{ field: "Name", title: "Name", width: "300px", "template": "<div class=\"sv-navcolumn\" data-id=\"accountdetail/#:Id#\" onclick=\"accountLaunchDetails(this)\" ><span class=\"sv-navcolumnlink\" >#: Name #<img src=\"/Images/arrow-right.png\" alt=\"Show Pointer\"></span></div>"},
Here is the resulting HTML
<div class="sv-navcolumn" data-id="accountdetail/0" onclick="accountLaunchDetails(this)"><span class="sv-navcolumnlink">test <img src="/Images/arrow-right.png" alt="Show Pointer"></span></div>
So when is the template evaluated when an item is created?
Any suggesting?
Regards
Richard....