We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Rendering Grid from addon settings page

Developer Preview

Bjørn Børresen's avatar
Bjørn Børresen
629 posts
9 years ago
Bjørn Børresen's avatar Bjørn Børresen

Sure, the view file: http://pastebin.com/raw/P10wCCuU

Not sure if you need _wrapper.php but here it is: http://pastebin.com/raw/fxQWfGUv

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
9 years ago
Kevin Cupp's avatar Kevin Cupp

Oh, I should have noticed this before. Looks like you’re not setting a blank row. Take a look at the Table service docs again and see where we call $grid->setBlankRow(). Basically, you’ve set up the existing rows, but we have to know what you want a blank row to look like with empty data. The JS error is coming from not being able to find that blank row element to append to the Grid.

       
Bjørn Børresen's avatar
Bjørn Børresen
629 posts
9 years ago
Bjørn Børresen's avatar Bjørn Børresen

Thanks for getting back to me, I think that was the issue, yes.

I decided to go with a regular Table instead though - easier to implement and it had all I needed anyway.

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.