WebDataGrid in a Sharepoint 2010 webpart

Not Answered This post has 0 verified answers | 15 Replies | 4 Followers Thread's RSS feed.

perplexed1
Points 135
Replied On: Tue, Mar 6 2012 9:21 AM Reply

Hi,

I have a WebDataGrid that I have put in a webpart using Visual Studio 2010 (Sharepoint solution).

The grid populates and displays data ok but unfortunately I dont see the filtering functionality.

I used the APTCA (are these known as akido controls?!) dlls and have modified the sharepoint web.config.

The link to setting up sharepoint using Akido controls is not working here: http://community.infragistics.com/forums/p/37107/247246.aspx#247246

What else must I do to ensure that I get the full functionality out of this control on sharepoint?

 

thanks,

KS

I added the following to sharepoint site's web.config:

<SafeControl Assembly="Infragistics35.WebUI.Shared.v11.2, Version=11.2.20112.1019, Culture=neutral, PublicKeyToke=7dd5c3163f2cd0cb" Namespace="Infragistics.WebUI.Shared" TypeName="*" Safe="True" />

 

<sectionGroup name="SharePoint">

      <section name="infragistics.web" type="System.Configuration.SingleTagSectionHandler,System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />  

 

My grid on sharepoint looks like:

:

  • Post Points: 20

All Replies

Replied On: Tue, Mar 6 2012 11:52 AM Reply

Hi Khurram,

WebDataGrid is part of the Aikido controlset, so you are using the latest controls. It does require ASP.NET AJAX extensions though, make sure you have the SharePoint webpart to consume those. Also, make sure you have the css referenced correctly so the control styles are pulled in correctly.

Take a look at this help article if you haven't already:

http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=SharePoint_Getting_Started.html

Best,

Taz

Murtaza (Taz) Abdeali
Web Product Manager - ASP.NET Insider
Twitter - Blog - Email

  • Post Points: 20
perplexed1
Points 135
Replied On: Tue, Mar 6 2012 12:04 PM Reply

Thank you for your prompt reponse.

I had followed the instructions on the link you posted and put the styles in the relevant folders.

Not quite sure where in the config file this snippet has to go though:

<infragistics.web enableAppStyling="true" styleSetName="" styleSetPath="~/layouts/ig_res/" />

Or maybe it doesn';t go in web.config?!

thanks,

 

Khurram 

  • Post Points: 20
Replied On: Wed, Mar 7 2012 9:10 AM Reply

Yes, this will sit in web.config.

Murtaza (Taz) Abdeali
Web Product Manager - ASP.NET Insider
Twitter - Blog - Email

  • Post Points: 20
perplexed1
Points 135
Replied On: Wed, Mar 7 2012 9:31 AM Reply

Sorry, I meant, in which section of the web.config does this snippet go?

Also, does the control pull all data to client before filtering?

If so, is it possible to perform filtering server-side?

 

many thanks,

 

Khurram

  • Post Points: 20
Replied On: Wed, Mar 7 2012 4:59 PM Reply

Sorry for the confusion. it'll go under the configuration directly in the web.config.

The controld does server-side filtering, make sure you supply the dataset everytime there is an ajax request to filter the data on the server.

-Taz.

Murtaza (Taz) Abdeali
Web Product Manager - ASP.NET Insider
Twitter - Blog - Email

  • Post Points: 35
perplexed1
Points 135
Replied On: Thu, Mar 8 2012 12:32 AM Reply

Hi, sorry me again!

I added this in the configSection:
<section name="infragistics.web" type="System.Configuration.SingleTagSectionHandler,System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> 

I added this to SafeControls:
<SafeControl Assembly="Infragistics35.WebUI.Shared.v11.2, Version=11.2.20112.1019, Culture=neutral, PublicKeyToke=7dd5c3163f2cd0cb" Namespace="Infragistics.WebUI.Shared" TypeName="*" Safe="True" />

I added this after the configSection:
<infragistics.web enableAppStyling="true" styleSetName="" styleSetPath="~/layouts/ig_res/" />

After adding the last snippet I get an error when browsing the Sharepoint webpart:

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

What am I missing?

Thank you for your assistance.

 

Khurram 

  • Post Points: 5
perplexed1
Points 135
Replied On: Fri, Mar 9 2012 10:54 AM Reply

Apologies, I no longer get an error regarding the config file (I had the infragistics section inside the sharepoint groupSection).

However the styles still are not being applied. I will try restarting.

thanks!

  • Post Points: 5
perplexed1
Points 135
Replied On: Fri, Mar 9 2012 11:03 AM Reply

Styles still not being applied after reboot :(

  • Post Points: 20
Replied On: Fri, Mar 9 2012 2:18 PM Reply

Hello,

I would recommend you to use fiddler to debug this issue. Fiddler log will provide you details on response for image and different CSS.  If you find any response (4XX), I would recommend you to verify if the files are present on the physical path which can be found from that response. You can also debug permissions issues using fiddler if any on the ig_res folder or on images. The below link will give you more details on fiddler and download:

<http://www.fiddler2.com/fiddler2/>

Additional Note: The above link is neither created nor maintained by Infragistics.

If the issue is still present, provide me with test results of fiddler so I may look in to this.

I hope this helps.

Bhadresh,
Developer Support Engineer, MCTS
Infragistics

  • Post Points: 20
perplexed1
Points 135
Replied On: Fri, Mar 9 2012 2:56 PM Reply

Hi there,

Thank you for your help.

It appears that it is indeed a permissions issue.

I think the documentation here is incorrect: http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=SharePoint_Getting_Started.html

The following code uses the layouts folder and not the _layouts folder:

 

<infragistics.web enableAppStyling="true" styleSetName="" styleSetPath="~/layouts/ig_res/" />

I changed layouts to _layouts and the styling now appears (although it has an ugly border around the grid)

How do I get the filtering functionality working?

Screen shot attached.

 

  • Post Points: 20
Replied On: Fri, Mar 9 2012 3:38 PM Reply

Hello,

Thanks for the update. Do you have filtering behavior enabled in grid since I was not able to see filter area? If not, I would recommend you to enable filtering. The below link will give more details on this:

<http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=WebDataGrid_Filtering.html>

If you have already enabled this (filtering) behavior provide me with the markup of the grid so I may look in to this.

Bhadresh,
Developer Support Engineer, MCTS
Infragistics

  • Post Points: 20
perplexed1
Points 135
Replied On: Fri, Mar 9 2012 4:09 PM Reply

Thanks - again, a slight error in the documentation....

I did not want to filter on initial load so all I coded was:

this._grid.Behaviors.CreateBehavior<Filtering>();

This displays the filter controls but when I attempt to apply a filter I get the error in teh image attached.

thanks,

 

KS

  • Post Points: 20
Replied On: Tue, Mar 13 2012 10:17 AM Reply

Hello,

I have created private support case CAS-86532-33BS2V in order to look in to this matter. I will update that support case with more details. I will post the resolution on this forum once it reached.

I hope this helps

Bhadresh,
Developer Support Engineer, MCTS
Infragistics

  • Post Points: 35
perplexed1
Points 135
Replied On: Tue, Mar 20 2012 10:32 AM Reply

I have registered my product to my account - so I am a paying customer. Can you please refer to the support ticket you created as I still have problems.

Thanks,

 

KS 

  • Post Points: 5
Page 1 of 2 (16 items) 1 2 Next > | RSS