locked
Hyperlink in an Obout gridview RRS feed

  • Question

  • User-1481038241 posted

    Hi,

    I am using third party Obout controls in my asp.net page. I have an obout gridview, inside that grid view i need to have an hyperlink which should have a column from DB table. How do i need to add template for that. I have searched for that everywhere and finall i thought of posting this thread. Plese help me its urgent i need to use it ASAP

    I have Reffered this link but its not clear for hyperlink control..... http://www.obout.com/grid/grid_templates_hyperlinks.aspx

    Thanks in advance, Eagerly waiting for Reply.

     

    Tuesday, January 31, 2012 1:41 AM

Answers

  • User-2001765250 posted
    <obout:Grid id="resultsGrid" runat="server" >
         
    <Columns>
             
    <obout:Column ID="ActionColumn" HeaderText="Action" Width="100" runat="server">
                   
    <TemplateSettings TemplateId="actionItemsTemplate" />
             
    </obout:Column>
             
    <obout:Column ID="TitleColumn" DataField="Title" HeaderText="Title" Width="150" runat="server" />
         
    </Columns>
         
    <Templates>
               
    <obout:GridTemplate runat="server" ID="actionItemsTemplate">
                   
    <Template>
            <a href="editobject.aspx?id=
    <%# Container.DataItem["ID"] %>"><%# Container.DataItem["Name"] %></a>               </Template>
               
    </obout:GridTemplate>
         
    </Templates>
    </obout:Grid>

    Refer http://forums.asp.net/t/1492149.aspx/1

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 31, 2012 8:01 AM

All replies

  • User-2001765250 posted

    Hello friend Refer the below link

    http://www.obout.com/grid/grid_templates.aspx

    http://www.obout.com/grid/grid_templates_hyperlinks.aspx

    If you have any queries let me know

    Tuesday, January 31, 2012 1:55 AM
  • User-1481038241 posted

    Hi Sagar,

    Thanks for answering, but i have already gone through those links but its not precise. It has templates for other controls like text area or checkboxes etc etc. but for hyperlink its not working. I tried it in all posssible ways, but no desired output. The hyperlink which i have mentioned here is not working. can u plz elobarte and solve my issue.

    Once again thanks for Reply.

    Tuesday, January 31, 2012 2:06 AM
  • User-2001765250 posted
     <obout:GridTemplate runat="server" ID="tplCompanyName">
    <Template>
    <a><b><u><%# Container.Value %></u></b></a>
    </Template>
    </obout:GridTemplate>
    Try this one.
    Let me know if any issues....

    Tuesday, January 31, 2012 2:51 AM
  • User-2001765250 posted
    <obout:Grid id="resultsGrid" runat="server" >
         
    <Columns>
             
    <obout:Column ID="ActionColumn" HeaderText="Action" Width="100" runat="server">
                   
    <TemplateSettings TemplateId="actionItemsTemplate" />
             
    </obout:Column>
             
    <obout:Column ID="TitleColumn" DataField="Title" HeaderText="Title" Width="150" runat="server" />
         
    </Columns>
         
    <Templates>
               
    <obout:GridTemplate runat="server" ID="actionItemsTemplate">
                   
    <Template>
            <a href="editobject.aspx?id=
    <%# Container.DataItem["ID"] %>"><%# Container.DataItem["Name"] %></a>               </Template>
               
    </obout:GridTemplate>
         
    </Templates>
    </obout:Grid>

    Refer http://forums.asp.net/t/1492149.aspx/1

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 31, 2012 8:01 AM
  • User-1481038241 posted

    Thanks a ton Sagar,

    I got a clear idea... I hope this will work good for me...... Smile

    Tuesday, January 31, 2012 8:29 AM