Billy McCafferty

Sponsors

The Lounge

Wicked Cool Jobs

Syndication

S#arp Scaffolding with Ext JS

I have uploaded a CRUD scaffolding project for S#arp Architecture projects - let's call it S#arp Scaffolding for some cheesy marketing spice - to  http://www.tinyurl.com/dl7c42...

This S#arp Scaffolding example includes the following capabilities:

  • Includes an Ext JS grid on the index page (compatible with Ext JS 2.2.1 from http://extjs.com/products/extjs/download.php),
  • Creates an associated ViewScripts folder for the model and puts the JavaScript for the index page into it,
  • Includes form HTML which is compliant with Wufoo table-less form styling (http://wufoo.com/)
  • Assumes use of the new SharpModelBinder available on the trunk (and in the VS project template on the trunk),
  • Should easily work with just about any Site.Master file.

To use:

  1. Add the ext-2.2.1 folder (that you can download from extjs.com) into YourProject.Web/Scripts/
  2. Unzip the S#arp Scaffolding package to any temp folder
  3. Add the two files found within /ExtExtensions (from the S#arp Scaffolding zip) to YourProject.Web/Scripts/Model/Ext.ux/*
  4. Add Ext JS references to your Site.Master; e.g.,
    <link type="text/css" href="<%= ResolveUrl("~") %>Scripts/ext-2.2.1/resources/css/ext-all.css" rel="stylesheet" />
    <!-- Optional styling -->
    <link type="text/css" href="<%= ResolveUrl("~") %>Scripts/ext-2.2.1/resources/css/xtheme-gray.css" rel="stylesheet" />
    <% string rootPath = ResolveUrl("~"); %>
    <!-- ExtJS related JavaScript -->
    <script type="text/javascript" src="<%= rootPath %>Scripts/ext-2.2.1/adapter/jquery/ext-jquery-adapter.js"></script>
    <script type="text/javascript" src="<%= rootPath %>Scripts/ext-2.2.1/adapter/ext-base.js"></script>
    <script type="text/javascript" src="<%= rootPath %>Scripts/ext-2.2.1/ext-all-debug.js"></script>
    <!-- Custom ExtJS JavaScript -->
    <script type="text/javascript" src="<%= rootPath %>Scripts/Model/Ext.ux/Ext.ux.grid.Search.js"></script>
    <script type="text/javascript" src="<%= rootPath %>Scripts/Model/Ext.ux/Ext.ux.grid.GroupingSummary.js"></script>
    <script language="javascript" type="text/javascript">
        <!-- Create a generic namespace to be used by custom JavaScript objects and variables -->
        Ext.namespace('SharpJs');
        SharpJs.RootUrl = '<%= rootPath %>';
        Ext.BLANK_IMAGE_URL = SharpJs.RootUrl + 'Scripts/ext-2.2.1/resources/images/default/s.gif';
        <!-- Used by generated index pages - makes it easy to modify grid width globally -->
        Ext.GRID_WIDTH = 1186;
    </script>
  5. Add a folder called ViewScripts under YourProject.Web/Scripts
  6. Move the S#arp Scaffolding project folder from the unzipped location to YourProject/tools/CrudScaffoldingWithExtJs
  7. Via VS, add CrudScaffoldingWithExtJs.csproj to your "Code Generation" folder
  8. Via VS, open CrudScaffoldingWithExtJs/ScaffoldingGeneratorCommand.tt and change the reference to YourProject (and the path at the
    bottom) to the appropriate values
  9. Use as you'd use the default CRUD scaffolding project.

For some recent S#arp Architecture info around the web:

I hope you find this helpful.

Billy McCafferty

 


Posted 04-29-2009 10:10 AM by Billy McCafferty
Filed under:

[Advertisement]

Comments

Marco wrote re: S#arp Scaffolding with Ext JS
on 04-29-2009 5:05 PM

Thanks! is it correct that the wufoo css / stylesheets are missing?

Billy McCafferty wrote re: S#arp Scaffolding with Ext JS
on 04-29-2009 5:17 PM

That's correct...you'll need to add those in yourself under YourProject.Web/Content and refer to them from Site.Master.

DotNetShoutout wrote S#arp Scaffolding with Ext JS - Billy McCafferty - Devlicio.us
on 04-29-2009 7:57 PM

Thank you for submitting this cool story - Trackback from DotNetShoutout

Josh wrote re: S#arp Scaffolding with Ext JS
on 04-30-2009 2:45 PM

Don't forget this Virtual Alt.Net session on S#arp

www.viddler.com/.../25

Ern wrote re: S#arp Scaffolding with Ext JS
on 08-12-2009 6:55 PM

Hi Bill, Got the following error while testing the generator and my configuration, any idea what I'm missing?

Error 1 Running transformation: System.IO.FileNotFoundException: Could not find file 'C:\Projects\SharpTesto\tools\CrudScaffoldingWithExtJs\BrewTests.cs'.

File name: 'C:\Projects\SharpTesto\tools\CrudScaffoldingWithExtJs\BrewTests.cs'

  at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

  at System.IO.File.Move(String sourceFileName, String destFileName)

  at Microsoft.VisualStudio.TextTemplating5F67677E7D7FBB5C109A5728A5FD442F.GeneratedTextTransformation.ScaffoldingGenerator.GenerateDomainObjectAndTests() in c:\Projects\SharpTesto\tools\CrudScaffoldingWithExtJs\Templates\ScaffoldingGenerator.tt:line 127

  at Microsoft.VisualStudio.TextTemplating5F67677E7D7FBB5C109A5728A5FD442F.GeneratedTextTransformation.ScaffoldingGenerator.RunCore() in c:\Projects\SharpTesto\tools\CrudScaffoldingWithExtJs\Templates\ScaffoldingGenerator.tt:line 39

  at T4Toolbox.Generator.Run()

  at Microsoft.VisualStudio.TextTemplating5F67677E7D7FBB5C109A5728A5FD442F.GeneratedTextTransformation.TransformText() in c:\Projects\SharpTesto\tools\CrudScaffoldingWithExtJs\ScaffoldingGeneratorCommand.tt:line 36 C:\Projects\SharpTesto\tools\CrudScaffoldingWithExtJs\ScaffoldingGeneratorCommand.tt 1 1

gpangrango wrote re: S#arp Scaffolding with Ext JS
on 09-08-2009 12:24 AM

yes...i'm got that error too...what i'm missing..???

thanks for sharing...

jainabarah wrote re: S#arp Scaffolding with Ext JS
on 10-21-2009 2:54 PM

decadal high ars business

hugimccut wrote re: S#arp Scaffolding with Ext JS
on 12-09-2009 1:47 PM

others contributed sunlight year cap

jenaikelle wrote re: S#arp Scaffolding with Ext JS
on 04-04-2010 5:27 AM

partners frequency confirmation 2001 forcings program economy average

Suprashoesweb wrote re: S#arp Scaffolding with Ext JS
on 10-17-2010 12:55 PM

fafagdagadgadg agfdafga

supra skytop wrote re: S#arp Scaffolding with Ext JS
on 12-01-2010 8:41 PM

In doing we learn.

shoes wholesale wrote re: S#arp Scaffolding with Ext JS
on 01-18-2011 8:26 PM

This is a very good idea! Just want to say thank you for the information, you have to share. Just continue to write such a position. I will be your faithful reader. Thank you again.

nba shoes wrote re: S#arp Scaffolding with Ext JS
on 04-03-2011 3:32 AM

Just want to say thank you for the information

Small Claims wrote re: S#arp Scaffolding with Ext JS
on 07-15-2011 12:39 PM

Lately I came to your website and have Been reading along. I thought I would leave my initial comment. Keep writing, cause your posts are impressive!

Satchels wrote re: S#arp Scaffolding with Ext JS
on 07-18-2011 11:37 PM

         <a href="www.chinaamanda.com/.../">Wholesale sexy quinceanera wedding dresses</a> A variety of foreshadowing autumn hair have been shown to speculative pork at the right time. On the market of pork was reduced so there is no need to

MBT NEDERLAND wrote re: S#arp Scaffolding with Ext JS
on 07-25-2011 11:32 PM

dank u voor uw delen. een mooie dag verder.

hd cables wrote re: S#arp Scaffolding with Ext JS
on 07-28-2011 12:29 PM

Many thanks for providing such useful information.This particular code snippets are incredibly useful. I truly value your professional approach. I would really like to thank you for the efforts you made in writing this specific post. I am hoping the same from you in the future as well.I know this is kind of off topic but I was wondering if you knew where I could locate a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having difficulty finding one? Thanks a lot!..

canon digital camera wrote re: S#arp Scaffolding with Ext JS
on 08-01-2011 8:19 AM

I want to show my admiration of your writing skill and ability to make audience, browse the whole thing to the end. I'd really like to read more of your blogs and to talk about my views with you. I'll be your frequent website visitor, that’s for sure.

Tantric Massage London wrote re: S#arp Scaffolding with Ext JS
on 08-09-2011 5:21 AM

Interesting articles are published here. By reading it I acquired great deal of knowledge on various subject. Thank you for sharing with us.

Szkoła Jezykowa W Anglii wrote re: S#arp Scaffolding with Ext JS
on 08-19-2011 11:45 PM

Pretty cool post. It’s really very nice and useful post.Thanks for sharing this with us!it’s my first visit.

Out Call Massage London wrote re: S#arp Scaffolding with Ext JS
on 08-28-2011 9:22 AM

This is such a Great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It’s the old what goes around comes around routine.

Sexual Massage London wrote re: S#arp Scaffolding with Ext JS
on 09-01-2011 5:08 AM

Pretty cool post. It’s really very nice and useful post.Thanks for sharing this with us!it’s my first visit.

LttYVGI wrote re: S#arp Scaffolding with Ext JS
on 09-03-2011 12:16 AM

eZucgkFW

My Own Handbags wrote re: S#arp Scaffolding with Ext JS
on 09-25-2011 1:30 PM

This is very good for me!

sticker printing wrote re: S#arp Scaffolding with Ext JS
on 09-26-2011 3:36 AM

I was just thinking the same thing. I am happy that you brought that up. its been pretty funny

sticker printing wrote re: S#arp Scaffolding with Ext JS
on 10-17-2011 7:03 PM

this is nice thing, i really like this post, and also bookmark it

fjxvnl wrote re: S#arp Scaffolding with Ext JS
on 10-28-2011 12:03 PM

zdcqgyjj

Generic Viagra wrote re: S#arp Scaffolding with Ext JS
on 11-02-2011 3:36 AM

I’ll be back soon on your site again so please continue sharing your great tips.

timberland winter boots women wrote re: S#arp Scaffolding with Ext JS
on 11-21-2011 9:54 PM

He followed his man to the Gorbeau house, and got "the old woman" to talking, which was no difficult matter. The old woman confirmed the fact regarding the coat lined with millions, and narrated to timberland roll top womens black him the episode of the thousand-franc bill. ZHC

timberland roll top boot wrote re: S#arp Scaffolding with Ext JS
on 12-01-2011 8:56 PM

Everything, it said, was against the travellers, every obstacle imposed alike by man Men's Timberland Splitrock Boots and by nature. A miraculous agreement of the times of departure and arrival, which was impossible, was absolutely necessary to his success.Dami

http://www.timberland163.com/

timberland roll top boot wrote re: S#arp Scaffolding with Ext JS
on 12-01-2011 9:02 PM

Everything, it said, was against the travellers, every obstacle imposed alike by man Men's Timberland Splitrock Boots and by nature. A miraculous agreement of the times of departure and arrival, which was impossible, was absolutely necessary to his success.Dami

http://www.timberland163.com/

uggbootsukclearance wrote re: S#arp Scaffolding with Ext JS
on 12-04-2011 10:14 PM

We've said we'll have dinner together, agreed who should get him which classic tall UGG Boots on Sale present.In preparation for the big day, I bring out the stalwart Women's Weekly cheap UGG Boots online cake book and canvass his opinion. www.uggbootsukclearance.com.  LJP

keygen wrote re: S#arp Scaffolding with Ext JS
on 12-06-2011 12:47 PM

I respect his voice! such a deep and do not forget! it's cool caress your ears and you want obovsem forget! <a href="http://appzguru.com">warez download</a>

louis vuitton uk outlet wrote re: S#arp Scaffolding with Ext JS
on 12-07-2011 4:47 AM

In other times, I could stand here and give this kind of exposition on the beliefs of the Democratic Party and that would be enough. But today that timberland boots men is not enough. People want more. That is not sufficient reason for the majority of the people of this designer handbags outlet uk to decide to vote Democratic. www.lvoutletwholesale.co.uk

ralph lauren polo outlet wrote re: S#arp Scaffolding with Ext JS
on 12-23-2011 2:08 AM

Ralph Lauren Polo is strictly between the third aspect of life and entertainment, which you will step interrupted and lively and you play, or disturbing the grave of the seriousness of the situation; Polo jackets for men is the new definition of the lives of young people, creating wealth and have fun, what we want is wonderful! Today, we could do deny not: product of the culture of leisure can also be a classic. Includes polos-youth of spirit it will make the early goal, fashion. Our cheap polo ralph lauren hoodie will make love to wear. Shirts must be the best choice for you. We will wait for your requests!  www.ralphlaurenpolosus.com

Gundosjdb wrote re: S#arp Scaffolding with Ext JS
on 01-05-2012 10:03 AM

Aloha!fxeh! http://eghboo.com qcpak hbmnb

Gundosxuy wrote re: S#arp Scaffolding with Ext JS
on 01-25-2012 4:47 PM

Aloha!xlfb! http://jujemk.com xdato cptqe

Gundosgsf wrote re: S#arp Scaffolding with Ext JS
on 01-25-2012 4:48 PM

Aloha! xuw

Pharme73 wrote re: S#arp Scaffolding with Ext JS
on 02-05-2012 12:35 AM

Hello! bkbdgde interesting bkbdgde site! I'm really like it! Very, very bkbdgde good!

Tim Tebow Broncos blue jersey cheap wrote re: S#arp Scaffolding with Ext JS
on 02-08-2012 10:36 PM

Thanks to post that wonderful articles and it's the value experiences which have tried by you.

sticker printing wrote re: S#arp Scaffolding with Ext JS
on 02-22-2012 1:11 PM

This is really nice site.... Thanks for sharing your post with us.

Pharma127 wrote re: S#arp Scaffolding with Ext JS
on 03-09-2012 6:26 PM

Hello! bdfdbdf interesting bdfdbdf site! I'm really like it! Very, very bdfdbdf good!

tafpnimlgl wrote re: S#arp Scaffolding with Ext JS
on 03-14-2012 4:12 PM
znmqjmjybf wrote re: S#arp Scaffolding with Ext JS
on 03-14-2012 5:03 PM
qsnctjuxwi wrote re: S#arp Scaffolding with Ext JS
on 03-14-2012 5:38 PM
bblxebywxt wrote re: S#arp Scaffolding with Ext JS
on 03-14-2012 6:21 PM

merdaefwmjdjp, http://www.xlnkgbgpil.com zpyaqaumbl

qrszczysxb wrote re: S#arp Scaffolding with Ext JS
on 03-14-2012 7:12 PM

mtescefwmjdjpvt, http://www.byahppwwdg.com xnkathfjkh

ftyuepmduq wrote re: S#arp Scaffolding with Ext JS
on 03-14-2012 7:47 PM

fzkcbefwmjdjp, http://www.ueepwvpxyw.com aahseemlwj

ckbafqhtsh wrote re: S#arp Scaffolding with Ext JS
on 03-14-2012 8:44 PM

aimqfefwmjdjpvt, http://www.rwcvmeuqtc.com yclvgqcwaw

qfdfnjmwjl wrote re: S#arp Scaffolding with Ext JS
on 03-14-2012 9:22 PM

ihwcmefwmjdjp, http://www.cppchrlkjx.com gpvxshaypc

Pharmb403 wrote re: S#arp Scaffolding with Ext JS
on 04-07-2012 8:47 AM

Hello! acfefae interesting acfefae site! I'm really like it! Very, very acfefae good!

Pharmg161 wrote re: S#arp Scaffolding with Ext JS
on 04-14-2012 6:48 PM

Hello! kfgfgee interesting kfgfgee site! I'm really like it! Very, very kfgfgee good!

Pharmk310 wrote re: S#arp Scaffolding with Ext JS
on 04-15-2012 12:11 PM

Hello! bcgdege interesting bcgdege site! I'm really like it! Very, very bcgdege good!

buy prilosec online wrote re: S#arp Scaffolding with Ext JS
on 04-16-2012 6:27 AM

I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own blog.

Pharmg86 wrote re: S#arp Scaffolding with Ext JS
on 04-28-2012 3:32 PM

Hello! ffcfeda interesting ffcfeda site! I'm really like it! Very, very ffcfeda good!

Pharmb645 wrote re: S#arp Scaffolding with Ext JS
on 05-07-2012 3:17 AM

Hello! dbffbed interesting dbffbed site! I'm really like it! Very, very dbffbed good!

Pharmf378 wrote re: S#arp Scaffolding with Ext JS
on 05-23-2012 12:38 PM

Hello! gcfbcbg interesting gcfbcbg site! I'm really like it! Very, very gcfbcbg good!

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco <-- NEW Friend!
NServiceBus <-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)