+ if post count is zero then will popup via link a radwindow to add, this works
+ if post count is greater than zero then have a link that will simply pass the TopicID to RadGrid2 which will then display all posts
for that topic in seperate grid. Would be nice to have RadGrid2 visible = false UNTIL user clicks on this link
<
telerik:GridTemplateColumn UniqueName="Item" HeaderText="Item" ReadOnly="true" SortExpression="ITEM">
<ItemTemplate>
<%
# setPosts(Convert.ToInt32(Eval("Posts")))%> -- this code sets a variabe in code behind so can be determined in next line
<%
if (Posts > 0)
{ %>
-- this is where I need the help
<a href="#" runat="server" onserverclick='<%# withPosts(Convert.ToInt32(Eval("ID"))) %>'><%# DataBinder.Eval(Container.DataItem, "Item")%> (<%# DataBinder.Eval(Container.DataItem, "Posts")%>)
</a>
<%} %>
<%
else
{ %>
<a href="#" onclick="openAddTopicWindow('<%# DataBinder.Eval(Container.DataItem, "ID") %>'); return false;"><%# DataBinder.Eval(Container.DataItem, "Item")%> (<%# DataBinder.Eval(Container.DataItem, "Posts")%>)
</a>
<%} %>
</ItemTemplate>
</telerik:GridTemplateColumn>