Solved

Mouseover a Grid

Posted on 2008-10-21
6
783 Views
Last Modified: 2012-05-05
I have been trying to add a javascript function to display information when there is a moveover a grid, and i want the message to disapear on its own after a (reasonably)short time, say a message that just say "use ctr + shift to select multi rows", but i cant seem to find this info, does anyone know how to do it
0
Comment
Question by:dawie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 8

Expert Comment

by:MatthiasVance
ID: 22766470
Can you provide us with some example code of your 'grid'?

Kind regards,

Matthias Vance
0
 
LVL 6

Expert Comment

by:James Looney
ID: 22766476
I would recommend this person's script. We use it on a couple of sites and it works great. The instructions here describe exactly how to install it and the code examples show you how to use it. Let me know if you need help, but the instructions are really good.

http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_120.html
0
 
LVL 5

Expert Comment

by:RobPal
ID: 22766480
Are you using an html table as your grid?  If so then you could probably use

alt="use ctrl + shift to select multi rows"

within your <table> tag.

Let me know if that helps or if i've got the wrong end of the stick.

Rob
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:dawie
ID: 22766505
Here is the grid design in HTML; Its a third party control but im sure javascript works on it cause i m using javascript with other functions on the grid like double click.

<td>
                                    <telerik:RadGrid ID="rdgAccounts"  OnItemCommand="rdgAccounts_ItemCommand" runat="server" Skin="Office2007" GridLines="None" Width="100%" AutoGenerateColumns="False" UniqueName="BranchID" OnItemCreated="rdgAccounts_ItemCreated" oncolumndb ShowStatusBar="True" OnItemDataBound="rdgAccounts_ItemDataBound" OnNeedDataSource="rdgAccounts_NeedDataSource1" OnPreRender="rdgAccounts_PreRender1">
                                        <MasterTableView HierarchyLoadMode="Client">
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="ID" HeaderText="ID" visible = "False" UniqueName="ID">
                                                    <HeaderStyle Font-Names="Tahoma" Font-Size="X-Small" Width="50%" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name">
                                                    <HeaderStyle Font-Names="Tahoma" Font-Size="X-Small" Width="50%" />
                                                </telerik:GridBoundColumn>
                                                 <telerik:GridBoundColumn DataField="Date" UniqueName="Description">
                                                    <HeaderStyle Font-Names="Tahoma" Font-Size="X-Small" />
                                                </telerik:GridBoundColumn>
                                            </Columns>
                                            <EditItemStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                            Font-Underline="False" Wrap="True" />
                                            <RowIndicatorColumn>
                                                <HeaderStyle Width="20px" />
                                            </RowIndicatorColumn>
                                            <ExpandCollapseColumn>
                                                <HeaderStyle Width="20px" />
                                            </ExpandCollapseColumn>
                                            <NoRecordsTemplate>
                                        </NoRecordsTemplate>
                                        </MasterTableView>
                                        <ClientSettings AllowExpandCollapse="False" EnableRowHoverStyle="True">
                                         <Scrolling AllowScroll="True" UseStaticHeaders="True" />                                                                                      
                                            <Selecting AllowRowSelect="True" />
                                        </ClientSettings>  
                                        <PagerStyle Mode = "NextPrevAndNumeric"/>  
                                        <SelectedItemStyle BackColor="InactiveBorder" />                                      
                                        <ValidationSettings CommandsToValidate="PerformInsert,Update,ItemCommand" />
                                    </telerik:RadGrid></td>
0
 
LVL 8

Expert Comment

by:MatthiasVance
ID: 22766517
RobPal, I assume you mean using the 'title' attribute of the table-tag, since it doesn't support the alt-attribute. I tested it, and it worked nicely. It would be a good solution if he is using a html table.

Kind regards,

Matthias Vance
0
 
LVL 5

Accepted Solution

by:
RobPal earned 500 total points
ID: 22766700
Yes, Matthias is correct.  If you use the title attribute within your <td> tag that holds your grid code then this should work.

<td title="use ctrl + shift to select multi rows">
                                    <telerik:RadGrid ID="rdgAccounts"  OnItemCommand="rdgAccounts_ItemCommand" runat="server" Skin="Office2007" GridLines="None" Width="100%" AutoGenerateColumns="False" UniqueName="BranchID" OnItemCreated="rdgAccounts_ItemCreated" oncolumndb ShowStatusBar="True" OnItemDataBound="rdgAccounts_ItemDataBound" OnNeedDataSource="rdgAccounts_NeedDataSource1" OnPreRender="rdgAccounts_PreRender1">
                                        <MasterTableView HierarchyLoadMode="Client">
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="ID" HeaderText="ID" visible = "False" UniqueName="ID">
                                                    <HeaderStyle Font-Names="Tahoma" Font-Size="X-Small" Width="50%" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name">
                                                    <HeaderStyle Font-Names="Tahoma" Font-Size="X-Small" Width="50%" />
                                                </telerik:GridBoundColumn>
                                                 <telerik:GridBoundColumn DataField="Date" UniqueName="Description">
                                                    <HeaderStyle Font-Names="Tahoma" Font-Size="X-Small" />
                                                </telerik:GridBoundColumn>
                                            </Columns>
                                            <EditItemStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                            Font-Underline="False" Wrap="True" />
                                            <RowIndicatorColumn>
                                                <HeaderStyle Width="20px" />
                                            </RowIndicatorColumn>
                                            <ExpandCollapseColumn>
                                                <HeaderStyle Width="20px" />
                                            </ExpandCollapseColumn>
                                            <NoRecordsTemplate>
                                        </NoRecordsTemplate>
                                        </MasterTableView>
                                        <ClientSettings AllowExpandCollapse="False" EnableRowHoverStyle="True">
                                         <Scrolling AllowScroll="True" UseStaticHeaders="True" />                                                                                      
                                            <Selecting AllowRowSelect="True" />
                                        </ClientSettings>  
                                        <PagerStyle Mode = "NextPrevAndNumeric"/>  
                                        <SelectedItemStyle BackColor="InactiveBorder" />                                      
                                        <ValidationSettings CommandsToValidate="PerformInsert,Update,ItemCommand" />
                                    </telerik:RadGrid></td>
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Rotate images for Web Page 11 40
How do I add counter to html listbox using jquery 2 45
Where is this content coming from? 4 40
Check if field exists SPUtility 5 48
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question