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

Button Link

5 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Trevor
Top achievements
Rank 1
Trevor asked on 20 Jul 2010, 09:23 PM
Hi, my first issue is that I have an update link being generated even though there is no specified update image or text. How can I get rid of this?

Also, in its place I would like to have a custom button that is just a linked image to a new page.

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" EnableAJAX="true" LoadingPanelID="RadAjaxLoadingPanel1" ClientEvents-OnRequestStart="onRequestStart" >
        <telerik:RadGrid ID="gridUsers" DataSourceID="srcUsers" runat="server" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true" PageSize="10" AutoGenerateColumns="false">
            <GroupingSettings CaseSensitive="false" />
            <HeaderStyle Font-Bold="true" />
            <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Visible="true" EnableSEOPaging="true"/>
            <MasterTableView CommandItemDisplay="Top" AllowNaturalSort="false" DataKeyNames="distinguishedName">
                <CommandItemSettings RefreshImageUrl="~/images/refresh_button.gif" ShowExportToWordButton="false" ShowExportToExcelButton="false" ShowExportToCsvButton="true" ShowExportToPdfButton="false" ExportToWordText="" ExportToExcelText="" ExportToCsvtext="" ExportToPdfText="" ExportToWordImageUrl="~/images/export_to_doc.gif" ExportToExcelImageUrl="~/images/export_to_xls.gif" ExportToCsvImageUrl="~/images/export_to_csv.gif" ExportToPdfImageUrl="~/images/export_to_pdf.gif" />
                 
                <Columns>
                    <telerik:GridHyperLinkColumn HeaderText="Edit"  DataNavigateUrlFormatString="EditUser.aspx?user={0}" DataNavigateUrlFields="objectGUID" UniqueName="link" ShowFilterIcon="false"/>
                    <telerik:GridBoundColumn HeaderText="First Name" UniqueName="givenName" DataField="givenName" FilterListOptions="VaryByDataType" FilterImageUrl="~/images/filter_icon.gif" />
                    <telerik:GridBoundColumn HeaderText="Last Name" ItemStyle-Width="100%" HeaderStyle-Width="100%" UniqueName="sn" DataField="sn" FilterListOptions="VaryByDataType" FilterImageUrl="~/images/filter_icon.gif" />
                    <telerik:GridBoundColumn HeaderText="Created" ItemStyle-Wrap="false" UniqueName="whencreated" DataField="whencreated" FilterListOptions="VaryByDataType" FilterImageUrl="~/images/filter_icon.gif" />
                    <telerik:GridBoundColumn HeaderText="distinguishedName" UniqueName="distinguishedName" DataField="distinguishedName" Visible="false" FilterListOptions="VaryByDataType" FilterImageUrl="~/images/filter_icon.gif" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </telerik:RadAjaxPanel>


Help please!

5 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 22 Jul 2010, 03:20 PM
Hello Trevor,

From the provided code I can see you have a GridHyperLinkColumn and I assume this is the problematic link buttons you are talking about. Try setting the Text property of the column to Edit for instance and see if makes any difference.

Let me know how it goes.

Sincerely yours,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Trevor
Top achievements
Rank 1
answered on 22 Jul 2010, 03:45 PM
The hyper link column is fine. In my code behind I have an image in that column instead of text. What I want is to have a custom link update button. This would take the place of the update button at the top of my grid. As of right now, there is a default Update button and text which I can not get rid of. I would like to delete the default update and put in a custom update button that is a simple link to a page.

Thanks,
Trevor
0
Iana Tsolova
Telerik team
answered on 26 Jul 2010, 01:45 PM
Hello Trevor,

In order to achieve your goal, I would suggest that you define your own FormTemplate. Find more information on how to use FormTemplate edit form in the below articles:

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/grdcustomeditforms.html

Greetings,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Trevor
Top achievements
Rank 1
answered on 26 Jul 2010, 07:37 PM
Thanks for the suggestion but, I do not know how this would solve my problem. I do not want to insert a new record via form on the existing page but, I would like to have it on a different page all together. To achieve this, when I click the update button, it should simple take me to another page in which I will have my own form built. Therefore, all I want is a way to have an UPDATE LINK BUTTON.

Thanks for suggestions,
Trevor
0
Iana Tsolova
Telerik team
answered on 28 Jul 2010, 12:07 PM
Hi Trevor,

From the additional information provided, I assume that you should place the Update link button in the page where the custom edit form is loaded. However I am not sure if I properly understand what is the issue you have with the Update button. Can you elaborate a bit more?

Regards,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Trevor
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Trevor
Top achievements
Rank 1
Share this question
or