How to dynamically load rows in enyo when using the Repeater kind? - enyo

I was able to add a load more section on the bottom row and successfully have a load more working using setCount. Except it reloads everything (as its suppose to) with no way of maintaining the state of where you were before load more was clicked. So I tried using renderRow, but that does not work because it only refreshes rows that already exists (in my case the rows to be loaded have not been loaded into memory yet). I don't see anything immediately useful in the docs. Anyone encountered this problem or have an idea of how to solve it. Thanks.

I'll try to update this answer with something more complete but what you need to do is find the index of the topmost row before you add your new content and then scroll that row back into view after you update. Something like that should do what you want. I think there were some discussions back on the old developer.palm.com forums from Enyo 1 days that discuss the technique. Should still be applicable to Enyo 2.

Related

How to apply any style to FullCalendar cells

great people from Stack!
I'm having some issues working with Full Calendar I would like to get some help with.
First of all, Full Calendar is an amazing tool. Everything I have had any doubt with has been solved in a breeze just by taking a look at the docs or googling five minutes. However, there is a problem I'm dealing with and can't find (I'm starting to suspect it is virtually impossible, or at least it is for me to imagine how to do it) the way to get it solved.
I'm implementing this library in a project which is meant to be something like an appointments manager, among other things. A (simple) functionality I wanted to add is to open a modal when a calendar cell (agenda week would be the main view) is clicked with a form, allowing to create an appointment for the selected cell. To improve usability, I thought it would be nice if the cells had some kind of hover effect, so that you can feel there is 'something' behind clicking this element. The thing is, the calendar is composed by something like 2 separated overlapping tables, one with rows and the other with columns, that form the grid. The modal system is done and working, dayClick made the trick. Any way to do anything similar to what I am talking about, the hover stuff? (my idea was to make some kind of (+) button appear when hovering, but anything would work.
Thank you!
Seth
Edit: I noticed there is a 'selectable' directive which, given only to the AgendaWeek view, allows me to select cells. The selection is made by the JS code, adding an element just above the cell, with its dimensions. Wouldn't it be any way to call this from hovering a cell instead of just clicking it? I wonder that highlight cell is rendered from the position of the mouse at the time of the click and wouldn't be very efficient to check that all the time...

Wordpress Contact Form Jittering & Not Submitting

I don't understand what's going on - used several different contact form plugins and it's the same problem every time. Whenever the form is filled out and I click submit, the page acts all jittery and freezey and then keeps popping back to the top. Anyone have any advice on how to troubleshoot this problem? Don't really know how to debug and such....
http://www.adivineweddingmadeeasy.com/contact/
I spent a minute looking at it but have not found a definitive answer yet, but it seems like something is up with your form control, particularly as it is defined within each field. I was able to get the form to behave when removing all of the wcpf7 form control classes. Then again, simply removing them would not fix your problem because the form would not function as designed.
In case you want to try checking it out yourself, try right-clicking and selecting 'inspect element' or 'inspect' from the drop down menu. It won't mean much to you unless you understand HTML but it is a start in terms of troubleshooting.
You easiest solution is trying a different form application to see if it works.

Obout Grid Control

I'm having issues using the Obout grid control after changing pages on the grid. For example, testing one of their examples available for download from their site (aspnet_grouping_initial.aspx) if you change pages on the grid you can no longer expand/collapse the groupings.
The same issue exists in all their grid examples if you try to perform any action after changing a page.
Has anyone figured out how to fix this?
Note it does work on their website but not in the code samples you can download.
I have already emailed their support without a response.
Thanks
I'm not able to reproduce this issue. The "aspnet_grouping_initial.aspx" sample works without problems and if you change the page or the page size you can still expand/collapse groups or perform other actions (sorting, etc.). Nobody else reported such problem, so this might be caused from something from your end. What browser are you testing in? Do you get any errors on the client-side after navigating to a different page in the Grid? Are all the resources (scripts, stylesheets, images) loading properly in the browser?

How to use jQuery to show a different page in ASP.NET

I am trying to set up functionality similar to Netflix. Where if you mouseover a movie - you are presented with a window of movie details (all client-side).
At high level, can someone in this forum help by telling me how this should be implemented? I.E., one or more .aspx pages, what would go in code-behind, and .js file, css, etc. Just trying to get an idea on how this would be set up to work.
Basically, when I hover over an item, I need to query for details that belongs for that record being moused-over and display it in the window or div. I also need to have some functionality in that window (i.e. a textbox and button which will end up needing to get saved in a database).
Thanks for any tips and suggestions -
You would want to add an AJAX call to the hover event of the image, that pulls from a webservice/web method.
Here is a good example, you would change some things. However, it should get you started.
http://www.mikesdotnetting.com/Article/96/Handling-JSON-Arrays-returned-from-ASP.NET-Web-Services-with-jQuery
If I understood your question correctly, you should try this excelent jQuery plugin:
http://www.sohtanaka.com/web-design/css-on-hover-image-captions/
Look at the demo here:
http://www.sohtanaka.com/web-design/examples/image-hover/
easy to install and configure and very slick!
Good luck
EDIT: sorry wrong lik the first time
There are certainly many jQuery plugins that will do this for you. jQuery UI may also be of benefit.
Here is one that appears to do something like you are describing:
http://plugins.jquery.com/project/VisualLightbox

Automatic GridView Controls

In my project i have several GridViews, all of which have somehow automatically put in edit, cancel and paging functionality that i have been able to add to if i wished. However on one of them none of the buttons link up. always comes out with a Not Handled Exception.
I sorted this out earlier in the week, but due to source control it reverted back and is now not recoverable. I can't remember what i changed to get it working and have had no joy in finding out from google etc, so thought i'd post it and try and find out if anyone else knows.
Thanks in advance for any help anyone can offer.
Have you checked to make sure that the CellContentClick event is being handled on that grid?

Resources