Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Slickgrid integration (Sproutcore 1.8)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
TheDude  
View profile  
 More options Oct 25 2012, 6:57 pm
From: TheDude <pmarques...@gmail.com>
Date: Thu, 25 Oct 2012 15:57:32 -0700 (PDT)
Local: Thurs, Oct 25 2012 6:57 pm
Subject: Slickgrid integration (Sproutcore 1.8)

Hi there!

I'm trying to integrate Slickgrid (https://github.com/mleibman/SlickGrid)
into my Sproutcore app but so far I've been unsuccessfull. I've placed
Slickgrid on folder *slickgrid*  under *frameworks* folder, which, in turn,
is located in my app root folder. This is how it looks:

*my_app*
*   -> frameworks*
*       ->**slickgrid*
*          -> <slickgrid extracted files...>*

In my build file I have just this line: *config :my_app, :required =>
[:sproutcore, :slickgrid] *
*
*
I'm using a simple wrapper around Slickgrid which can be found in
https://gist.github.com/838826 (The only adjustment i made was replace *SGUI
* for *MyApp*). Below is the code where   i design the wrapper view, *
MyApp.TableView*:

*testView : MyApp.TableView.design({*
* contentBinding: "MyApp.dataController.arrangedObjects",*
* options:{enableCellNavigation:YES},*
* columns:[*
* {id:'name', name:'Name', field:'name'},*
* {id:'age', name:'Age', field:'age'},*
* {id:'address', name:'Address', field:'**address**'},*
* {id:'phone', name:'Phone', field:'phone'}*
* ],*
* layout : {width: 500, height: 500}*
*})*

It all looks right and simple, but when the view gets rendered the column
headers and the table rows are all misplaced. The column and the data is
all there but they are a mess, with column headers the grid cells all piled
up over the same column. I looked into my app stylesheet and there is
nothing that could be affecting the grid. Using Firebug i confirmed that
any of Slickgrid's stylesheets were being loaded and that is the probable
cause of the problem. Why are they not being loaded? I'm a noob in SC and I
would like to know if there is something else i must do to get those
stylesheets to be loaded. Do I have to add anything else into the build
file?

For the record, I've tried SC.TableView but I find it to be too limited for
my needs and it seems to be deprecated. I want to build highly interactive
tables with, p.e., drag-n-drop re-ordable rows, and I have not seen any
other SC control that resembles TableView. So, I'd also be very appreciated
if you tell me alternative ways to do the SC equivalent of a grid.

Best regards!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TheDude  
View profile  
 More options Oct 25 2012, 7:15 pm
From: TheDude <pmarques...@gmail.com>
Date: Thu, 25 Oct 2012 16:15:49 -0700 (PDT)
Local: Thurs, Oct 25 2012 7:15 pm
Subject: Re: Slickgrid integration (Sproutcore 1.8)

I just confirmed that the cause of my problems were indeed related to
Slickgrid's stylesheets not being loaded. I just placed Slickgrid's
stylesheets under my app's resources folder, although I dont think this is
the correct way to do it. Is there another way to load those stylesheets
into my app through, perhaps, my build file?

Best regards

Quinta-feira, 25 de Outubro de 2012 23:57:32 UTC+1, TheDude escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Topher Fangio  
View profile  
 More options Oct 25 2012, 8:06 pm
From: Topher Fangio <fangiotop...@gmail.com>
Date: Thu, 25 Oct 2012 19:06:26 -0500
Local: Thurs, Oct 25 2012 8:06 pm
Subject: Re: [sproutcore] Re: Slickgrid integration (Sproutcore 1.8)

I'm pretty sure that you can put a resources/stylesheets folder inside your slickgrid framework folder with the appropriate CSS files inside. This should load exactly as you need; I'm pretty sure this is the route I took :-)

Sent from my iPhone

On Oct 25, 2012, at 6:15 PM, TheDude <pmarques...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TheDude  
View profile  
 More options Oct 26 2012, 8:59 pm
From: TheDude <pmarques...@gmail.com>
Date: Fri, 26 Oct 2012 17:59:00 -0700 (PDT)
Subject: Re: [sproutcore] Re: Slickgrid integration (Sproutcore 1.8)

First of all, thanks for your answer Topher! I did what you told but when I
launch my app the following error occurs:

*Errno::ENOENT at /my_app* *No such file or directory - ./tmp/chance/
<my_app_dir>
/frameworks/slickgrid/resources/stylesheets/slick-columnpicker-css.scss* *
Ruby* *C:/Program Files
(x86)/SproutCore/local/sproutcore/vendor/chance/lib/chance/instance.rb: in
initialize, line 461 *    
As I stated before, I'm an SC noob and I have no idea why is SC looking for
these files with the extension *.scss*. I read something about *chance* in
SC guides but I still dont understand why is this error happening. What's
the thing about these *.scss* files?

Best regards

Sexta-feira, 26 de Outubro de 2012 1:06:31 UTC+1, Topher escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maurits Lamers  
View profile  
 More options Oct 27 2012, 3:16 am
From: Maurits Lamers <mauritslam...@gmail.com>
Date: Sat, 27 Oct 2012 09:16:52 +0200
Local: Sat, Oct 27 2012 3:16 am
Subject: Re: [sproutcore] Re: Slickgrid integration (Sproutcore 1.8)

I cannot help you with the exact cause of this problem, but I can explain you chance and scss.

Sproutcore uses slicing and sass to make it easier to work with css and images. The default theme (ace) uses sass and slicing pretty intensively.
Looking at the error you get there is something wrong with the style sheets of the slickgrid framework.

cheers

Maurits

Op 27 okt 2012, om 02:59 heeft TheDude het volgende geschreven:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Umberto Nicoletti  
View profile  
 More options Oct 30 2012, 4:38 am
From: Umberto Nicoletti <umberto.nicole...@gmail.com>
Date: Tue, 30 Oct 2012 01:38:50 -0700 (PDT)
Local: Tues, Oct 30 2012 4:38 am
Subject: Re: [sproutcore] Re: Slickgrid integration (Sproutcore 1.8)

Can you share slick-columnpicker-css.scss? I suspect it using some sass
syntax that confuses Chance.
You should be able to fix it just compile the scss files down to css and
the include only the css.

HTH,
Umberto

Il giorno sabato 27 ottobre 2012 02:59:00 UTC+2, TheDude ha scritto:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TheDude  
View profile  
 More options Oct 30 2012, 8:52 pm
From: TheDude <pmarques...@gmail.com>
Date: Tue, 30 Oct 2012 17:52:28 -0700 (PDT)
Local: Tues, Oct 30 2012 8:52 pm
Subject: Re: [sproutcore] Re: Slickgrid integration (Sproutcore 1.8)

Hello everybody,

My slick-columnpicker-css.scss can be found here:
https://dl.dropbox.com/u/2815529/slick-columnpicker-css.scssc. I opened the
file and it has some weird characters in it, but have no idea if those are
normal.

Much appreciated for the help.

Best regards

Terça-feira, 30 de Outubro de 2012 8:38:50 UTC, Umberto Nicoletti escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Umberto Nicoletti  
View profile  
 More options Oct 31 2012, 7:55 am
From: Umberto Nicoletti <umberto.nicole...@gmail.com>
Date: Wed, 31 Oct 2012 04:55:52 -0700 (PDT)
Local: Wed, Oct 31 2012 7:55 am
Subject: Re: [sproutcore] Re: Slickgrid integration (Sproutcore 1.8)

Definitely not a css file. Try to move it out of the application directory
tree and see what happens.
If it works we'll then find a way to fix it once and for all.

HTH,
Umberto

Il giorno mercoledì 31 ottobre 2012 01:52:28 UTC+1, TheDude ha scritto:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
O I  
View profile  
 More options Jan 9, 10:59 pm
From: O I <ofu...@gmail.com>
Date: Wed, 9 Jan 2013 19:59:35 -0800 (PST)
Local: Wed, Jan 9 2013 10:59 pm
Subject: Re: [sproutcore] Re: Slickgrid integration (Sproutcore 1.8)

I'm having a similar error message. I downloaded sproutcore and got it up
and working on linux but tried to put it on my windows computer and came up
this error:

Errno::ENOENT at /todos_oneNo such file or directory -
./tmp/chance/C-/Ruby192/lib/ruby/gems/1-9-1/gems/sproutcore-1-9-1/lib/frame works/sproutcore/frameworks/yuireset
RubyC:/Ruby192/lib/ruby/1.9.1/fileutils.rb: in mkdir, line 243WebGET
localhost/todos_one

I tried downloading cygwin to install it 'the long way' but couldn't find
all the required cygwin packages, does it need to be updated?

Thanks in advance for any help you might be able to provide.

-.o.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »