Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
203 views
Hi ,

I am using  edit  and insert template to display  grid items in edit mode. I have  several  comboboxes in edittemplate and would like to have customvalidator that runs on client side.

If tselected index of the combobox  is "0" then it should not let user insert/edit a record. Code  shown below doesnot work at all times, especially when I have multiple comboboxes.


Javascript fxn
 function ValidateComboBoxInNGGridEditForm(customValidator, arguments) {
                         if (arguments.Value == "< Select a Value >") {
                             arguments.IsValid = false; 
                         } else {
                             arguments.IsValid = true; 
                         }
                    }


c# Code

   case "REQCOMBOBOX":
                        RadComboBox comboBox = new RadComboBox();
                        comboBox.Width = new Unit(215.0, UnitType.Pixel);
                     .....................
                       
                        comboBox.SelectedIndex = -1;
                            CustomValidator customValidator = new CustomValidator();
                            customValidator.ID = comboBox.ID + "REQFVLD";
                            customValidator.ControlToValidate = comboBox.ID;
                            customValidator.ClientValidationFunction = "ValidateComboBoxInNGGridEditForm" ;
                            customValidator.ErrorMessage = " *";


Am I missing anything here?

Thanks,
Prava
Princy
Top achievements
Rank 2
 answered on 11 Feb 2013
3 answers
235 views
hi,
I have two buttons (button1 and button2) and for each of these buttons I have 2 textbox login. I wish that when I write in the first textbox and hit the enter button on your computer, it must start button code button1 or if I write in the second textbox and hit the enter button to start the second button button2 code .... I tried but it always starts code written in the first button. So I decided to disable the keypress event = 13 across the page. But now my client wants the buttons function by pressing the "enter" key.
Princy
Top achievements
Rank 2
 answered on 11 Feb 2013
4 answers
160 views
Hello, I have a RadGrid with a NestedTemplateView similar to the following:

     
<telerik:RadGrid id="RadGrid1"
                 runat="server"
                 Gridlines="None"
                 ShowStatusBar="true"
                 AllowSorting="True"
                 AllowPaging="True" 
                 AllowFilteringByColumn="true"
                 AutoGenerateColumns="true"
                 Height="100%"
                 PageSize="70"
                 DataKeyNames="GUID"
                 OnItemCommand="RadGrid1_ItemCommand"
                 ShowGroupPanel="True"
                 OnPreRender="RadGrid1_PreRender"
                 OnNeedDataSource="RadGrid1_NeedDataSource"
                 OnDataBound="RadGrid1_DataBound">
     
    <MasterTableView GroupLoadMode="server" 
                     TableLayout="Fixed"
                     GroupsDefaultExpanded="False"
                     ClientDataKeyNames="GUID"
                     DataKeyNames="GUID">
    <NestedViewSettings>
        <ParentTableRelation>
            <telerik:GridRelationFields DetailKeyField="GUID" MasterKeyField="GUID" />
        </ParentTableRelation>
    </NestedViewSettings>
        <NestedViewTemplate>
            <asp:Panel ID="NestedViewPanel1"
                       runat="server"
                       CssClass="viewWrap bordered-bottom">
                <telerik:RadTabStrip runat="server"
                                     ID="RadTabStrip1"
                                     Orientation="HorizontalTop"
                                     SelectedIndex="0"
                                     MultiPageID="RadMultiPage1">
                    <Tabs>
                        <telerik:RadTab Text="A"></telerik:RadTab>
                        <telerik:RadTab Text="B"></telerik:RadTab>
                    </Tabs>
               </telerik:RadTabStrip>
               <telerik:RadMultiPage runat="server"
                                     ID="RadMultiPage1"
                                     SelectedIndex="0"
                                     Height="200px"
                                     Width="1200px"
                                     CssClass="tablePadding">
 
                        <telerik:RadPageView runat="server">
                                 <%= GetDetails() %>
                        </telerik:RadPageView>
                        <telerik:RadPageView runat="server">
                        <p>Test</p>
                        </telerik:RadPageView>
               </telerik:RadMultiPage>
                
           </asp:Panel>
        </NestedViewTemplate>
    </MasterTableView>
    <ClientSettings AllowDragToGroup="True" EnableRowHoverStyle="true">
        <Selecting AllowRowSelect="True" />
 
        <Scrolling AllowScroll="True"
                   EnableVirtualScrollPaging="True"
                   UseStaticHeaders="True"
                   SaveScrollPosition="True" />
    </ClientSettings>
    <GroupingSettings ShowUnGroupButton="true"></GroupingSettings>
</telerik:RadGrid>


When a row is expanded, a hidden field gets populated with the GUID of the row clicked (in ItemCommand event):

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        hiddenGUIDField.Value = RadGrid1.MasterTableView.Items[e.Item.ItemIndex].GetDataKeyValue("GUID").ToString();
    }
}

Finally, the <%= GetDetails() %> is evaluated and placed onto the page:

public string GetDetails()
{
    string markUp = s.GetContentFromServiceLayers(hiddenGUIDField.Value)
    return Server.HtmlDecode(markUp);
}

(Note: GetDetails() just returns a pre-formatted string of HTML markup to be displayed within the RadPageView)

This all works fine, until a 2nd row is expanded.  At this point, the Ajax will fire, but the results are then placed onto both NestedTemplateViews, instead of just the most recent one.  How can I fix this so that each expanded row has it's own relevant content?  I thought that the ParentTableRelation takes care of this.

Thanks.
Princy
Top achievements
Rank 2
 answered on 11 Feb 2013
2 answers
222 views
I've copied and pasted multiple examples, but I always get an exception.

How do I get the "Loading..." ajax spinner image?

Here is my code? I'm starting out simple. All I'm doing is clicking a button to populate a grid.

Thanks!
   <form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
 
   <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
 <AjaxSettings>
      <telerik:AjaxSetting  AjaxControlID="Button2">
           <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="RadGrid2" />
              <telerik:AjaxUpdatedControl ControlID="lblMessage" />
           </UpdatedControls>
      </telerik:AjaxSetting>
   </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadButton ID="button2" runat=server Text="Go"></telerik:RadButton>
 
 
 
<asp:label ID=lblMessage runat=server></asp:label>
<telerik:RadGrid ID="RadGrid2" runat="server" AutoGenerateColumns="true" ></telerik:RadGrid>
    
   </form>
Sammy
Top achievements
Rank 1
 answered on 10 Feb 2013
0 answers
82 views
Because the stakes are so high, we will not cease from our effort to assure that healthcare for all does not mean freedom for few,” Cardinal Timothy Dolan of New York, president of the conference, said in a statement. “We will continue to stand united with brother bishops, religious institutions, and individual citizens who seek redress in the courts for as long as this is necessary The policy would give women at non-profit, religious-based organizations, like certain hospitals and universities, the ability to receive contraception through separate health policies at no charge.
Dadas
Top achievements
Rank 1
 asked on 10 Feb 2013
5 answers
691 views
I have a RadTreeView with a Context Menu which has 3 Iems

<telerik:RadMenuItem Value="NewFolder" Text="New Folder
"
ImageUrl="~/TreeView/Img/Outlook/12.gif"  >
 
</telerik:RadMenuItem>
 
<telerik:RadMenuItem Value="RenameFolder" Text="Rename Folder
"
Enabled="false" ImageUrl="~/TreeView/Img/Outlook/rename.gif" PostBack="false" >
 
</telerik:RadMenuItem>
 
<telerik:RadMenuItem Value="DeleteFolder" Text="Delete Folder
"
ImageUrl="~/TreeView/Img/Outlook/7.gif" >
 
</telerik:RadMenuItem>


The RadTreeView has 3 diferent levels

I want to HIDE the NewFolder Context Menu Option if I'm on Node Level 3 (when I right click on the node I don't want that option to show if I'm on Level 3), How do I do that, it doesn't matter if it's from Code Behind or Client or Both.

Thank you.
Eric
Top achievements
Rank 1
 answered on 10 Feb 2013
2 answers
88 views
Hi,

I'm building one application and I have the following issue
I have one menu 'RadMenu' in the top,
and I have in the same page RadScheduler
when I click on New appointment, the Popup window will shown but below the RadMenu and it will not be much visible
so I have to drag it to another place in the screen

any help to show the popup window over the Rad Menu?


Mohan
Top achievements
Rank 1
 answered on 10 Feb 2013
2 answers
136 views
Hi

I'm using the Radock example to create custom "form".
This example i'm using : 
http://demos.telerik.com/aspnet-ajax/scheduler/examples/raddock/defaultcs.aspx

Now,
This doen't use AJAXPanel, so i have tried to add this to the demo version.
Once i run it the first move /edit = ok , but the next request i get this error :

Runtime-error Microsoft JScript: Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON primitive: 

This is what i have changed /added in the demo :


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.Scheduler.RadDock.DefaultCS"
    MasterPageFile="~/MasterPage.master" %>
 
<%@ Register TagPrefix="sds" Namespace="Telerik.Web.SessionDS" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" type="text/css" href="Styles.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
 
 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
    </telerik:RadAjaxManager>
 
    <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
        <script type="text/javascript">
 
            function openForm() {
                var dock = $find("<%= RadDock1.ClientID %>");
                // Center the RadDock on the screen
                var viewPort = $telerik.getViewPortSize();
                var xPos = Math.round((viewPort.width - parseInt(dock.get_width())) / 2);
                var yPos = Math.round((viewPort.height - parseInt(dock.get_height())) / 2);
                $telerik.setLocation(dock.get_element(), { x: xPos, y: yPos });
 
                dock.set_closed(false);
 
                var descriptionTextBox = $get('<%= DescriptionText.ClientID %>');
                descriptionTextBox.focus();
 
                Sys.Application.remove_load(openForm);
            }
 
            function hideForm() {
                var dock = $find("<%= RadDock1.ClientID %>");
                dock.set_closed(true);
 
                return true;
            }
        </script>
    </telerik:RadScriptBlock>
    <qsf:informationbox id="InformationBox1" runat="server" title="The example now supports scheduling of <strong>recurring</strong> appointments.">
    </qsf:informationbox>
 
----------> NEW <------------------
     <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"  Skin="Metro"></telerik:RadAjaxLoadingPanel>
     
    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1">
----------> NEW <------------------
 
            <asp:Panel runat="server" ID="DockPanel">
                <telerik:RadDock runat="server" ID="RadDock1" Width="650px" Height="530px" Closed="true"
                    Style="z-index: 2000;" Title="Edit appointment" >
                    <Commands>
                        <telerik:DockCloseCommand></telerik:DockCloseCommand>
                    </Commands>
                    <ContentTemplate>
                        <div class="editForm">
                            <div class="header">
                                <asp:Label runat="server" ID="StatusLabel"></asp:Label>
                            </div>
                            <div class="content">
                                Description:<br />
                                <asp:TextBox runat="server" ID="DescriptionText" Width="240px"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="DescriptionTextRequiredFieldValidator"
                                    Display="Dynamic" ControlToValidate="DescriptionText" ErrorMessage="Description is required"></asp:RequiredFieldValidator>
                                <br />
                                <br />
                                Starts at:
                                <telerik:RadDateTimePicker ID="StartTime" runat="server" SharedCalendarID="SharedCalendar"
                                    SharedTimeViewID="SharedTimeView">
                                </telerik:RadDateTimePicker>
                                <asp:RequiredFieldValidator runat="server" ID="StartTimeRequiredFieldValidator" Display="Dynamic"
                                    ControlToValidate="StartTime" ErrorMessage="Start time is required"></asp:RequiredFieldValidator>
                                <br />
                                <br />
                                Ends at:
                                <telerik:RadDateTimePicker ID="EndTime" runat="server" SharedCalendarID="SharedCalendar"
                                    SharedTimeViewID="SharedTimeView">
                                </telerik:RadDateTimePicker>
                                <asp:RequiredFieldValidator runat="server" ID="EndTimeRequiredFieldValidator" Display="Dynamic"
                                    ControlToValidate="EndTime" ErrorMessage="End time is required"></asp:RequiredFieldValidator>
                                <br />
                                <br />
                                Assigned to:
                                <telerik:RadComboBox runat="server" ID="UserDropDown" DataSourceID="UsersDataSource"
                                    DataTextField="UserName" DataValueField="ID">
                                </telerik:RadComboBox>
                                <br />
                                <br />
                                <asp:Label runat="server" Text="Reminder" ID="lblReminders"></asp:Label>
                                <telerik:RadComboBox runat="server" ID="ReminderDropDown" Width="120px">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="None" Value=""></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="0 minutes" Value="0"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="1 minute" Value="5"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="2 minutes" Value="10"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="3 minutes" Value="15"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="4 minutes" Value="30"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="1 hour" Value="60"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="2 hours" Value="120"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="3 hours" Value="180"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="4 hours" Value="240"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="5 hours" Value="300"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="6 hours" Value="360"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="7 hours" Value="420"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="8 hours" Value="480"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="9 hours" Value="540"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="10 hours" Value="600"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="11 hours" Value="660"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="12 hours" Value="720"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="18 hours" Value="1080"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="1 day" Value="1440"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="2 days" Value="2880"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="3 days" Value="4320"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="4 days" Value="5760"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="1 week" Value="10080"></telerik:RadComboBoxItem>
                                        <telerik:RadComboBoxItem Text="2 weeks" Value="20160"></telerik:RadComboBoxItem>
                                    </Items>
                                </telerik:RadComboBox>
                            </div>
                            <div class="footer">
                                <asp:Button runat="server" ID="SubmitButton" Text="Update" OnClick="SubmitButton_Click">
                                </asp:Button>
                                <button onclick="hideForm();" type="button" style="margin-right: 20px;">
                                    Cancel</button>
                            </div>
                            <telerik:RadTimeView ID="SharedTimeView" runat="server">
                            </telerik:RadTimeView>
                            <telerik:RadCalendar ID="SharedCalendar" runat="server" EnableMonthYearFastNavigation="False"
                                EnableMultiSelect="False" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False">
                            </telerik:RadCalendar>
                            <asp:HiddenField runat="server" ID="_originalRecurrenceRule"></asp:HiddenField>
                            <telerik:RadSchedulerRecurrenceEditor runat="server" ID="RadSchedulerRecurrenceEditor1">
                            </telerik:RadSchedulerRecurrenceEditor>
                        </div>
                    </ContentTemplate>
                </telerik:RadDock>
            </asp:Panel>
            <telerik:RadScheduler runat="server" ID="RadScheduler1" Width="750px" TimeZoneOffset="03:00:00"
                SelectedDate="2012-04-16" DayStartTime="08:00:00" DayEndTime="18:00:00" StartEditingInAdvancedForm="false"
                SelectedView="DayView" DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start"
                DataEndField="End" DataReminderField="Reminder" DataRecurrenceField="RecurrenceRule"
                DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="AppointmentsDataSource"
                OnFormCreating="RadScheduler1_FormCreating" Reminders-Enabled="true" OverflowBehavior="Auto">
                <AdvancedForm Modal="true"></AdvancedForm>
                <ResourceTypes>
                    <telerik:ResourceType KeyField="ID" Name="Room" TextField="RoomName" ForeignKeyField="RoomID"
                        DataSourceID="RoomsDataSource"></telerik:ResourceType>
                    <telerik:ResourceType KeyField="ID" Name="User" TextField="UserName" ForeignKeyField="UserID"
                        DataSourceID="UsersDataSource"></telerik:ResourceType>
                </ResourceTypes>
                <TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
                <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
            </telerik:RadScheduler>
 
 ----------> NEW <------------------
</telerik:RadAjaxPanel>
 ----------> NEW <------------------
 
    <sds:SessionDataSource ID="AppointmentsDataSource" runat="server" PrimaryKeyFields="ID"
        ConnectionString="<%$ ConnectionStrings:TelerikConnectionString %>" SelectCommand="SELECT * FROM [Appointments]"
        InsertCommand="INSERT INTO [Appointments] ([Subject], [Start], [End], [UserID], [RoomID], [RecurrenceRule], [RecurrenceParentID], [Annotations], [Description], [Reminder], [LastModified]) VALUES (@Subject, @Start, @End, @UserID, @RoomID, @RecurrenceRule, @RecurrenceParentID, @Annotations, @Description, @Reminder, @LastModified)"
        UpdateCommand="UPDATE [Appointments] SET [Subject] = @Subject, [Start] = @Start, [End] = @End, [UserID] = @UserID, [RoomID] = @RoomID, [RecurrenceRule] = @RecurrenceRule, [RecurrenceParentID] = @RecurrenceParentID, [Annotations] = @Annotations, [Description] = @Description, [Reminder] = @Reminder, [LastModified] = @LastModified WHERE [ID] = @ID"
        DeleteCommand="DELETE FROM [Appointments] WHERE [ID] = @ID" ClearSessionOnInitialLoad="True"
        SessionKey="System.Web.UI.Page_AppointmentsDataSource">
        <DeleteParameters>
            <asp:Parameter Name="ID" Type="Int32"></asp:Parameter>
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="Subject" Type="String"></asp:Parameter>
            <asp:Parameter Name="Start" Type="DateTime"></asp:Parameter>
            <asp:Parameter Name="End" Type="DateTime"></asp:Parameter>
            <asp:Parameter Name="UserID" Type="Int32"></asp:Parameter>
            <asp:Parameter Name="RoomID" Type="Int32"></asp:Parameter>
            <asp:Parameter Name="RecurrenceRule" Type="String"></asp:Parameter>
            <asp:Parameter Name="RecurrenceParentID" Type="Int32"></asp:Parameter>
            <asp:Parameter Name="Annotations" Type="String"></asp:Parameter>
            <asp:Parameter Name="Description" Type="String"></asp:Parameter>
            <asp:Parameter Name="Reminder" Type="String"></asp:Parameter>
            <asp:Parameter Name="LastModified" Type="String"></asp:Parameter>
            <asp:Parameter Name="ID" Type="Int32"></asp:Parameter>
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="Subject" Type="String"></asp:Parameter>
            <asp:Parameter Name="Start" Type="DateTime"></asp:Parameter>
            <asp:Parameter Name="End" Type="DateTime"></asp:Parameter>
            <asp:Parameter Name="UserID" Type="Int32"></asp:Parameter>
            <asp:Parameter Name="RoomID" Type="Int32"></asp:Parameter>
            <asp:Parameter Name="RecurrenceRule" Type="String"></asp:Parameter>
            <asp:Parameter Name="RecurrenceParentID" Type="Int32"></asp:Parameter>
            <asp:Parameter Name="Annotations" Type="String"></asp:Parameter>
            <asp:Parameter Name="Description" Type="String"></asp:Parameter>
            <asp:Parameter Name="Reminder" Type="String"></asp:Parameter>
            <asp:Parameter Name="LastModified" Type="String"></asp:Parameter>
        </InsertParameters>
    </sds:SessionDataSource>
    <sds:SessionDataSource ID="RoomsDataSource" runat="server" DisplayWarning="false"
        ProviderName="System.Data.SqlClient" ConnectionString="<%$ ConnectionStrings:TelerikConnectionString %>"
        SelectCommand="SELECT * FROM [Rooms]">
    </sds:SessionDataSource>
    <sds:SessionDataSource ID="UsersDataSource" runat="server" DisplayWarning="false"
        ProviderName="System.Data.SqlClient" ConnectionString="<%$ ConnectionStrings:TelerikConnectionString %>"
        SelectCommand="SELECT * FROM [Users]">
    </sds:SessionDataSource>
</asp:Content>

Any suggestions howto get this working properly ?

Regards
Peter.



Peter
Top achievements
Rank 1
 answered on 09 Feb 2013
2 answers
120 views
Hi

I'm using the lastest version of RadScheduler (2012.3). 
Our customer is using Chrome browser, and we have the issue now when we drag an appointment.
Dragging the appointment up is okay, but dragging to bottom , the new timeslot where we can put the new appointment
is mostly about the duration of the appointment + starttime.

In IE we don't have this issue, we can drag the appointment on every timeslot.
I have stripped the Radscheduler, to very basic and the issue remains.

I have looked at the demo, and there is the same issue.

Howto :

Go to :
http://demos.telerik.com/aspnet-ajax/scheduler/examples/raddock/defaultcs.aspx

Make 1 appoitnment bigger , ex. 2.5 hours , example we take the appointment : "Tech. meeting", starts at 12h and ends at 15.30h.
Once the appointment is placed,  the page will refresh.
Drag now this appointment with Chrome browser  and move it 1 timeslot below. The next timeslot that is
possible is in my scenario about 15h. Moving the appointment up is ok, i can take every timeslot..

Same issue on other demos..
See : http://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultcs.aspx
Make the appointment 2 to 3 hours big .. and drag it below..

Any suggestions howto fix this ?

Regards
Peter.
Peter
Top achievements
Rank 1
 answered on 09 Feb 2013
2 answers
194 views
Hi,

I have a grid which contains LinkButton columns for clickable text.  I also have a background image defined in a CSS class asociated with the LinkButton controls. That is working fine, and a sample of the markup is shown below.

What I would like is to have the background image be a clickable as well as the text.  How could that be achieved?

                <telerik:GridButtonColumn
                    ButtonType="LinkButton"
                    UniqueName="DoAssembly"
                    CommandName="DoAssembly"
                    DataTextField="DoAssembly"
                    DataTextFormatString="{0}"
                    DataType="System.String"
                    HeaderText="Assembly"
                    HeaderStyle-HorizontalAlign="Center"
                    ItemStyle-CssClass="BLname"
                    ItemStyle-HorizontalAlign="Center"
                    ItemStyle-Wrap="true"
                    ShowSortIcon="false" />
Richard
Top achievements
Rank 1
 answered on 09 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?