Developer forum

Forum » Development » using EditableGrid control

using EditableGrid control


Reply

I'm trying to use EditableGrid control on a back office module, but don’t know how to build a Grid like the one shown in the EditableGrid control article.

 

http://engage.dynamicweb-cms.com/Show-Article-361.aspx?PID=2472&ArticleID=211

 

At this moment I fill the datagrid using a datasource, but when I click the add new row it do nothing.

I also need to know what the correct javascript and css files to use in the aspx file of my module.


Replies

 
Nicolai Høeg Pedersen
Reply

Hi

You first of all need to add the control dw:ControlResources to your head section.

The controls uses that one for adding css and js files needed for the control.

 
Reply
Hi,

As Nicolai said, first of all you need to check whether you have a ControlResources tag in the HEAD section of your page (this is a placeholder for all css/js files used by Dynamicweb controls).

1. Register the namespace:

<%

@ Register Assembly="Dynamicweb.Controls" Namespace="Dynamicweb.Controls" TagPrefix="dw" %>
2. Add the following line to the HEAD section (note that only ONE such tag should be added):

<

dw:ControlResources runat="server" />

If this doesn't help could you please post the example aspx/code-behind files so I can figure out what's wrong with it.

 

You must be logged in to post in the forum