Posts

Showing posts from June, 2013

Click event for Dynamically created buttons or fields

Here am using class files to find the control and firing the click event $ ( document ). ready ( function () { $ ( '#contaner_wrapper' ). css ( "height" , "100%" ); $ ( document ). on ( 'click' , '.fc-button-prev a span' , function () { alert ( $ ( "#calendar" ). fullCalendar ( 'getView' ). start . toString ()); var abc = $ ( "#calendar" ). fullCalendar ( 'getView' ). start . toString (); var ab = $ ( "#calendar" ). fullCalendar ( 'getView' ). end . toString (); // Displaymonthevents(); }); $ ( document ). on ( 'click' , '.fc-button-next a span' , function () { // Displaymonthevents(); alert ( $ ( "#calendar" ). fullCalendar ( 'getView' ). start . toString ()); var abc = $ ( "#calendar" ). fullCalendar ( 'getView' ). start . toString (

Joins in SPQuery

Here am using two lists. 1)Customer 2) CustomerCity Am displaying both lists in gridview. here lookup list is CustomerCity. Lookup is either ID field or Title field while creating list in customer list.      string siteUrl = "http://windows:1122/";             SPWeb _web = new SPSite(siteUrl).OpenWeb();             SPQuery _query = new SPQuery();                         _query.Query = "";             _query.Joins = @"<Join Type='LEFT' ListAlias='CustomerCity'>                           <Eq>                             <FieldRef Name='City' RefType='ID' />                             <FieldRef List='CustomerCity' Name='ID' />                           </Eq>                         </Join>";             _query.ProjectedFields = @"<Field Name='CityTitle' Type='Lookup' List='CustomerCity' ShowField='Title' />";