Rad grid custom filtering - telerik-grid

How can I activate custom filtering for my radgrid?(I googled but I didn't get any proper response regarding this)
I have a property like AllowCustomSorting but I don't have any property regarding filtering.
Can any one provide the way how to implement custom filtering?
If possbile give me a sample page then I will understand.
Thanks in advance.

All you need to know about filtering:
http://www.telerik.com/help/aspnet-ajax/grid-basic-filtering.html
I usually do my filtering/sorting within my stored procedures as that brings huge speed benefits when working with larger tables.

I'm aware this is a fairly old question now but this link should help you:
Note that it has a sample project at the bottom of the page.
The property you are looking for is AllowFilteringByColumn="True"
This page has a sample using a dropdown and a custom filter.

Related

Conditional fields in Liferay Web Content editor

We have a requirement for creating a banner for which we plan to use Web Content Display.
As part of the implementation I have created a structure with the required fields like link-type (drop-down), etc and using corresponding template.
I wish to make a conditional check based on the type of selection in the link-type and show link-to-page or text-box.
I observed that there is no option to have a conditional check in the article editor rendering.
Thus I wish to check whether there is any hack or trick that we can do to achieve the above conditional thing?
Also, can we inject custom Javascript to achieve this as part of the structure?
I finally have to stick to the default options in the liferay structure. I plan to use separator provided by LR to categories the elements to avoid end user (admin) confusion.
P.S. I was not able to locate any cool doc that would help in implementing the suggestion made by #Tobias (sorry, but I guess the wiki link above assumes you to be an expert of LR, and even the sample links in there does not work).

Cascading Drop Downs in SharePoint with One Web Part Only

I need your suggestions for my problem area. I am working with SharePoint 2010. My requirement is to create a single web part that has only one DropDown List. Say DropDown List for continents. Now I want to use the same web part more than once on my page to have a cascading effect e.g Continents|Countries|States|Cities|so on.
So my single web part can accept and provide connections.
Though I have been able to create a both provider and consumer web part but I am strucked with post backs. Ever time a DropDown's value is changed all the other DropDowns get bound again and lost the values.
Please suggest me some options.
Thanks a lot.
Kind Regards
Vivek
Try the answer for a similar question here. Check if your dropdowns are rebound on postback. If so make them bound only once.
I would suggest to use the Querystrings to store the dropdown state. This would also help you in creating Deep Url's. We did the same thing on the sharepoint features page here : http://sharepoint.microsoft.com/en-us/product/Pages/Features.aspx
Check if ViewState of dropdowns is enabled.
You can also use cascade dropdown based on Client Object Model.
Take a look at this utility i just released : http://sylvainlancien.blogspot.fr/2013/11/slnspcascadingdropdown-jquery-cascade.html

Export list of Sitecore items as Excel (or other formats)

I noticed that sitecore has the option of exporting users in an Excel format.
I need to have similar functionality for exporting 'participations', (a users can enlist to take part in an 'event', and if their entry is approved via a sitecore workflow, a 'participation' item is created in the content tree)
Since mostly everything in Sitecore is in essence based on items, and I want to export items to Excel, my question is - what are some of the best ways of doing this?
Questions:
Is there a way to re-use this functionality for regular items?
Would it be a good idea to create a custom admin page (any tips on doing this?) which has some custom code that reads the items from the database using the API?
are there sitecore plugins/shared source projects that can help me achieve this?
Or does anyone have a better idea? - would it be better to just store the participations in SQL? I'm mostly doing it this way because I want to make use of the 'free' functionality offers, for example workflow, but if that leads to me using anti-patterns please shoot me ;)
Link is different now: https://marketplace.sitecore.net/en/Modules/Advanced_System_Reporter.aspx
P.S. Couldn't leave a comment to original answer as I don't have enough reputation. Oh well :)
Found a most excellent shared source module which does exactly this (and much more)!
Basically it allows you to configure (and easily extend, if you need to) any kind of table based report on 'items'.
The report module shows up as an application in the sitecore menu (like the user manager tool) and comes with features such as xml,csv, xls export. It's also really easy to set up, once you get the hang of it.
http://trac.sitecore.net/AdvancedSystemReporter

Faster way to find control in sharepoint pages Edit,New

Can any body give me better way to find control in sharepoint page.I user below code to find control in sharepoint page.
$("nobr:contains('Add Another Contractor')")
May be better or faster way if any Please tell me.
Thanks,
An alternative:
Find the table cells using this selector: table.ms-formtable td.ms-formlabel
For each cell, get the nobr (maybe use .children())
I currently work with prototype.js, but you can take a look at the library I maintain: SPUtility.js. You don't mention what you're attempting to do with the elements, but it may help.

Sharepoint Blog: enable/disable comments regarding field value of Posts

I need to enable/disable post comments regarding the value of a new field in Post list. I don't see how to do this... Any ideas?
Why is there an error when converts to XSLT? Is possible to get the querystring to do this?
I don't think you'll be able to get that level of control with the standard blog component. Should be reasonably easy to implement using CKSEBE though.
Easiest method I can think of within the standard blog is to use jQuery to hide the comment form - that way you only need to get the value of the field appearing somewhere on the page.

Resources