Technical Questions Technical questions on Kentico CMS Connector for Microsoft SharePoint.
Kentico CMS Connector for Microsoft SharePoint > Technical Questions > Custom SharePointDataViewer DataBind View modes: 
User avatar
Guest
public - 11/24/2009 11:01:59 AM
   
Custom SharePointDataViewer DataBind
Hi,

I am trying to create a modified version of the SharePointDataViewer to allow filtering of the displayed data using a an asp dropdownlist.

I have a dropdownlist control with an OnSelectedIndexChanged Event which should specify a new Query for the SPDataSource based on the value selected in the DDL (See below).
I've tried several ways of forcing the repeater to show the data as it should based on the CAML query I set but it only ever has the original list of items from when the page is loaded.

Query = string.Format("<Where><Eq><FieldRef Name=\"Location\" /><Value Type=\"Text\">{0}</Value></Eq></Where>", _uiFilterDdl.SelectedValue);
repItems.ReloadData(true);

Thanks,
Kieran

User avatar
Guest
public - 12/9/2009 8:04:11 AM
   
RE:Custom SharePointDataViewer DataBind
Hi,

Could you please post or send us the code you are using? Or at least the part where the new query is specified for the data source?

Thank you.

Best Regards,
Juraj Ondrus