Add a Data Driven Combobox to ExtJS Form

image.png

I’ve been enhancing the session editor for AngularU  (Written in ExtJS 4.2)  and I’ve recently had to add a couple data driven comboboxes.  One to specify which track the session is in and one to assign which track the session is in.  Having done it a couple times in a row, my muscle memory is pretty good so I thought I’d do it again but this time on my blog. This is what the result looks like: The basics of the relationship between the table data is that we have a Session Table and a Track Table as follows: For the sake of the controls, we actually have two rest feeds.  One Track and one Session.  You can see them both here: http://angularu.com/rest/track http://angularu.com/rest/session The track … Continue Reading

ReSharper Continues to Make My Life Easier as a Programmer

image.png

Again, it happened.  I was about go searching the web for the string format parameters to figure out how to format just the day of the week.  I type some code like this: [crayon-55e578065507d529988018/] And up pops up the below screen from JetBrains Resharper giving my choices for ToString(). Very nice! Just sayin... … Continue Reading

Publishing Just Your JavaScript Folder With Visual Studio

image.png

Who would have guessed.  With Visual Studio you can right click on any folder in your web project and say publish.  You can see me doing that right here below. For years, I’ve struggled with how to just get certain files to an IIS web site.  The things that I have used (that all have issues) are: Robocopy (only works if you can have a vpn network drive) rsync (causes permissions problems and various other nasties) ftp (has trouble syncing and the root folder is never where you want it Now, I can skip all that assuming I’m using visual studio (which I usually am). I get the nice success window quickly as follows And that is all there is to it. … Continue Reading

Name Collisions with Asp.Net Webapi and How to Avoid

I love the simplicity of using ASP.NET WebAPI for building simple web rest services.  No special calls to create JSON, simple REST conventions implemented with the methods GET,POST,PUT and DELETE and very straight forward interfaces. The thing that annoys me is the naming convention.  In my case, I’ve create a folder /rest on my web server and I put all my WebAPI controllers there.  An example of a controller looks as follows: [crayon-55e578065621a866324450/]   The problems comes up when you decide you want to have a different FAQ controller for different parts of the web site.  The obvious solution is to drop the REST services into sub directories.  Unfortunately, since the class name above does not … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: