.Net & SharePoint '07

Technical blog for .Net and all SharePoint 2007 related Information

About the author

Me(Prince) and my wife are B.E in I.T & C.S.E respectively.  I a certified MCPD: Web from 2007 Dec. I am Intrestes in Web Application, MOSS, EPM, etc.
Now working with Deira International School, as IT Application & Help Manager. I have started my career as "Software Developer" @  REACH Sewn Technologies and Consulting Pvt. Ltd, Bangalore India from Oct 2004 to Feb 2006, then as "Web & Intranet Developer" @ Fosroc International Ltd, Dubai from April 2006 to Sep 2009.
You can catch me on mail@jpy-tech.com or mail@princepy.com. Or on 00971 - 50 - 4284530 

Google Translate

Tag cloud

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

RecentComments

Comment RSS

Google Your Location


Check Uncheck all CheckBoxes in an ASP.NET GridView using jQuery

Check Uncheck all CheckBoxes in an ASP.NET GridView using jQuery

<script type="text/javascript">
    $(document).ready(function() {
        var chkBox = $("input[id$='ChkAll']");
        chkBox.click(
             function() {
                 $("#GridView1 INPUT[type='checkbox']")
                 .attr('checked', chkBox
                 .is(':checked'));
             });

        // To deselect CheckAll when a GridView CheckBox
        // is unchecked
        $("#GridView1 INPUT[type='checkbox']").click(
        function(e) {
            if (!$(this)[0].checked) {
                chkBox.attr("checked", false);
            }
        });
    });
</script>


Posted by Admin on Monday, January 10, 2011 10:09 AM
Permalink | Comments (0) | Post RSSRSS comment feed

SmartTools for SharePoint

SmartTools for SharePoint

 


Categories: JQuery | MOSS
Posted by admin on Tuesday, April 21, 2009 2:56 PM
Permalink | Comments (1) | Post RSSRSS comment feed

JQuery for Everyone: Accordion Left Nav

 

Paul Grenier set out on a mission; a mission to create an accordion-style left navigation menu for my WSS test site.  Mission complete.  If you can copy/paste, you can see it in action.  Since I used Google’s API to load jQuery, you don’t even need to download the library file.

First, look at your left nav.  If you changed it from the out-of-the-box setup, make sure you have “headers” and “submenus” that make sense.  For example, Documents should appear on top of a bulleted list of document libraries.

Obviously, if you want the accordion-style menu for all pages, you should work it into the default.master.  For now, we can work with a test page by adding a Content Editor Web Part (CEWP) to the page.  Add the code below to the web part’s Content Editor (source).  Now your menu should look like this.
 

When you click on the menu header box with the down arrow image, it exposes the submenu below it and swaps the image with an ‘x’.  Likewise, clicking the header with the ‘x’ will hide the associated submenu.
   

 

Here’s the code:




Tags: ,
Categories: JQuery | MOSS
Posted by admin on Tuesday, April 21, 2009 2:06 PM
Permalink | Comments (2) | Post RSSRSS comment feed

jQuery Sparklines

jQuery Sparklines

 

This jQuery plugin generates sparklines (small inline charts) directly in the browser using data supplied either inline in the HTML, or via javascript.

The plugin is compatible with most modern browsers and has been tested with Firefox 2+, Safari 3+, Opera 9 and Internet Explorer 6 & 7.

Each example displayed below takes just 1 line of HTML or javascript to generate.

The plugin was written by Gareth Watts for Splunk Inc and released under the New BSD License


Categories: JQuery | MOSS
Posted by admin on Tuesday, April 21, 2009 1:21 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Color Coding - Formula Generator

 

Published an article about color coding for SharePoint lists three months ago, and its sibling for calendar views last month. Both rely on the same client side method, the “HTML calculated column“.

Color coding involves 3 steps:

1/ Select the color

2/ Apply the formatting: traffic light, font color, background color, etc.

3/ Include the magic script that renders the formatting (SharePoint OOTB would just display text)

People are usually comfortable with step 3, which is just a copy/paste of a generic script. But some users are struggling with the first two steps, because they are not so familiar with SharePoint calculated columns.

So I have decided to publish a list of examples based on the default SharePoint lists. They can be used as is and should cover a wide range of use cases. For each example, you can grab the formula by clicking on “copy to clipboard”.

If you are a seasoned list designer, skip this post…but forward the link to your friends!

1/ Color selection

In HTML, you can identify a color by its name or its code. Here we’ll stick to the friendly color names. A good reference is W3schools.

Let’s call [Color] the column that will store the value. You can choose among the following column types:
- Text
- Choice
- Calculated column

The latter will be the most useful, as the color usually depends on another factor. For example, we’ll pick red for issues that are tagged as “Critical”.

If you are not familiar with calculated columns, you can start by reading this introduction.

--------------------------------------------

Formula Generator. Fill out the form with your choice list and the associated colors, select one pattern (Background/Font color/Traffic light), and the Formula Generator will build the formula for you. Hopefully this will allow more users to benefit from the HTML Calculated Column.

I plan to build other formula generators in the future to accomodate other needs (progress bars, etc.). Spread the word!


Tags: ,
Categories: JQuery | MOSS
Posted by admin on Tuesday, April 21, 2009 1:16 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Total Calculated Columns

JQuery for Everyone: Total Calculated Columns


 

Updated : 3rd May 2009



Categories: JQuery | MOSS | WSS
Posted by admin on Sunday, March 15, 2009 10:54 PM
Permalink | Comments (0) | Post RSSRSS comment feed