Page tabs loads too slow - umbraco 6 - c#

I created some pages on umbraco and it works correctly. But i added some datagrids to main page and now, main page's tabs is loading too slow because umbraco is trying to load all data of page on tabs on first call.
So my question is can i load only selected tab on pages? Like lazy load? For example; If i click to first tab, load that data. After click second tab, load data of second tab. Because the standard load of data system is too slow.
Thanks!
ps: Im too newbie on umbraco. So i didnt create custom tabs...etc. Just i created from umbraco dashboard template settings.

As far as I'm aware, there's no way to lazy-load tabs on an Umbraco node. At least that's not provided as functionality.
We've often had a similar problem of a node/page having too much on it (a lot of rich text editors, with each of them loading TinyMCE), and the way around it for us was to pull this content out into child nodes.
By this, I mean that the main page content stays in the page node, but then you could create new document types that are created as children of the content node. You could then use XSLT/Razor to pull in the content stored in these child nodes to be published onto the main content page. By doing this, you'd still have all the content on the page, but it would be split up into multiple nodes, with each of them loading nice and quickly.

Related

Dynamic Forms Builder, CRUD Submissions, Multiple Files Upload Using ASP.NET MVC

In our current application there is a new requirement of our client.As they told that they need n numbers of forms at different stages of their business and those are changing time to time. Even a new forms can be added. Their requirement is once the product is delivered to them they will not come back to us again and again for each change and will create those form by their own.
Simply they want a user interface where they can create the form by drag and drop manner.
What they want :
In our application there will be a form building section where a non technical person can be able to create a form.
Mapping the controls with existing data of their existing database so that the form is populated with the corresponding data ( data will be inserted into the database using another user interface).
Once the data is populated they will take the print out of the filled up form and will proceed as per their business flow.
As they introduce new form time to time we can't provide any predefined template to them and they are not agree to design the form in HTML.
Is there any way of doing this in Asp.Net MVC (without using any CMS ).
there are a number of asp.net forms builders. And I been wanting to build my own for years. (you store the control, the location etc in a database, or even as xml, and then on page load, read the xml, and crank out the controls and layout into the page. We all built these for desktop, and you can do the same for the web.
The open source evolutility project has a FANTASTIC system for this, but it does NOT include the GUI part. But, it would be a good start. You would have to build the GUI part, but the rendering part, and save of the forms layout is all done for you. So, your forms builder would offer a set of controls to drop and move around in the form. When you save, you would have a corresponding "xml" markup bit that you save to the one "forms layout" file. On forms load, you read that xml file and produce the form (that's the part evolutility does for you). So, you need the part that has each control in a tool box (along with the xml for that control). you drop control into form, and add the xml to the "form layout in xml".
As I stated, evolutility has all the parts to render forms and layout and place controls on the final finished form for display - it just don't have a GUI for doing this part.
You can look at the project here:
http://evolutility.com/
there are others. But, it really depends on how complex of a form builder or content builder you wish to make.
But, a xml, or json based layout and definition of the controls placed on a page is a good start. You could store such "layout" information in a database. Heck have a classic master to child table, and thus save each control in evolutiity format, and simple append then all together, and then have evolutility render that xml into a working form for you.
I don't know of a open source project that combines both the "layout" and "define" of the controls AND ALSO has a GUI to build the forms. But, to be fair, the hard part (how to layout, and how to have each control defined in some json (or xml) is done for you.

Auto completion of multiple webpages

I want to create a program which will automatically fill in certain blank spaces in multiple HTML pages.
For instance I have to go through this kind of flow
Log in page where I used GetElementById("").InnerText to fill in the blanks and GetElementById("").InvokeMember("click") to progress to the next page.
Second page requires me to navigate to a different page hence I used webBrowser1.Nagivate("").
The whole program mainly revolves around these two processes, navigation and auto filling. Currently, I am stuck when the webform navigates to the next webpage but is unable to read ID for fields.
Is there any way to go about it? Or any links which might be helpful?

How to add new tab in CMS desk in kentico cms

How can I add new tab in CMSDesk -> content -> Page
position is showing in below image in red section.
I was trying to add this by adding new element in Development -> Modules -> user interface section.
but not getting module name for this section.
Any help is appreciate.
Thanks
I will presume you are using Kentico CMS v7. (The situation is different in v6.)
If I understand it correctly you want to add one more level of tabs UNDER Page tab. It is possible although I strongly don't recommend it. I would rather add a tab NEXT to Page, Design etc. by simply adding UI element CMSSitemanager->Development->Modules->Content->User Interface->Content->View mode->Edit. But if you want answer to you question I will provide you with it :) You will need to customize logic in
CMSDeskPage.GetDocumentPageUrlInternal(...)
The code file is located at CMSSolution\UIControls\Pages\CMSDesk\CMSDeskPage.cs
There is a switch with case "edit" - this is the place determining which page will be displayed under the Page tab. You will have to create one more layer of pages (frameset with tabs and content). You will also have to create JavaScript layer to ensure proper communication between frames. (Scripts I'm talking about are: tree.js, contenteditframeset.js, content.js, splitview.js).
Once again - use the UI Elements version mentioned above :)

The best way to display repeated data in ASP.Net?

I have an ASP.Net web page that displays various chunks of data based on a user's search string. In this web page I'm using a <Panel> tag because I need to have a vertical scrollbar that displays when needed to display all of the data.
I've thought about defining an HTML page (in code behind, with all the tags and data included), and displaying that inside a <div>, inside the <Panel>.
I've also explored the possibility of displaying an ASP.Net web page with the data/tags/etc. and placing each page in its own <Iframe> element. I'm afraid that this solution would be slow to load (as compaired to the HTML method described above) especially when there's 100's of individual pages to be loaded.
My question is what's the best way to display N number of individual pages of data and have a vertical scrollbar when there's a need?
Displaying various data pieces on ASP.NET pages is a big subject, I suppose, and many methods can be used, including the ones you've mentioned.
How about making use of Dynamic Data framework .NET v2,3,4. The most powerful is the latest one of course.
Then you don't need to create 100's of individual pages, just onthe fly redirect using metatable names used in your model/context. All you data will also be wonderfully linked where appropriate. Also need to carefully design you model based on however your data needs be presented. The controls for that could be GridView or other, but all done on server side.

Modal that opens an IFRAME (umbraco)

I'v got a problem when opening a Modal window that loads a JFrame.
The file loaded in the JFrame is a aspx file with a tag of /umbraco/controls/Tree/TreeControl.ascx. The modal loads and any text i put in is loaded but the TreeControl will not load. Iv used this ascx file in other places and it works greate if I load it via a normal page call. If you ar not familiar with umbraco Tree. It's basiclly a jquery tree that loads xml nodes.
Tried to copy code here. But couldnt get formatting to work.
Thx for any help
Best Regards
Marthin
This is no longer a problem for me with the new version of Umbraco 4.5

Categories

Resources