I think to create a contact form created from five different HTML webpages:
Four HTML webpages would prompt the user for various kinds of data and the fifth webpage would include a submit button and a success message in case a submit process went well form JavaScript’s side at least — not involving possible problems in the backend (PHP) routing.
My problem is that I don’t know almost anything about Ajax:
Ajax CRUD operation codes always seemed to me very long and complicated; perhaps since EcmaScript 2021 Ajax CRUD operations could be much simpler.
I seek some guidance about how to generally do this, how to save data prompted from the user in each of the four HTML documents) and so forth.
Hi,
I am implementing an app using RadBook. I am using data templates to bind the data. When the data is more than the page height, i want to avoid the page scroll and port that overflown data in to the next page.
Attaching images to show how i want the data to be spilt in to two pages. Right now, entire data is shown up in a single page with a scrolling.
Is there a method available with Radbook to attain this? If not, what are the alternate solutions i can try to achieve this effect.
Thanks in advance
regards
P A Naidu
design a simple (no fancy/shining color change), comfortable, friendly (easy-to-use) user interface for a WPF desktop application (by MVVM pattern) by C# in VS2013 on win 7
I would like to
design a WPF desktop application by C# in VS2013 on win 7.
I need to design an
UI look like this attached example blow. I have checked the WPF toolbox in VS2013, I do
not find a layout template that can provide an UI like this.
In order to design a
simple, comfortable and friendly (easy-to-use) user interface, I have checked
the links :
prism http://compositewpf.codeplex.com/
http://stackoverflow.com/questions/2135092/creating-a-nice-gui-in-wpf>
http://ux.stackexchange.com/questions/10776/where-can-i-find-a-gallery-of-wpf-ui-examples
But, they are not a
good fit for my application.
I need a user
interface :
1. some tool menus on the top such as
"File", "Edit", "project", "tool" ,
"help", which look much like the most popular UI style in MS office
tools.
2. some shortcut icons for some hot uses
below the tool menu
3. The left panel are separated into 3 parts : left, middle, right
4. Each part size can be changed by holding the vertical separator
5 . Each part is separated into 2
vertical parts
6. In left-upper part, there some
tree-view buttons, when a button is clicked, a detailed subtree buttons are
shown at the left-lower part.
7. In the middle part, some data chart,
tables, curves are shown at the upper-part and the related detailed data are
shown at the lower-part.
8. In the middle part, I need multiple
tabs to show the data and charts
9. In the right-part, it holds some
animations related to the data shown in the middle part.
10. the color of the application should be
consistent, simple and flat (not much gradient change, e.g. ligth-gray is
fine), not so fancy like prism.
Are there some
templates similar like this ?
Any suggestions ?
Thanks !
Hi.
I want to use pdf integrated RadBook.
but this is important to having a ToolBar for Paging, zooming, Panning.
please tell me the best APIs, Controls, Senario, ......
Thanks.
Hi
I'm using RadBook and Pdf viewer as follow:
Xaml Code:
<
UserControl.Resources
>
<
DataTemplate
x:Key
=
"LeftPageTemplate"
>
<
Viewbox
>
<
Grid
>
<
UI:FixedDocumentSinglePagePresenter
Page
=
"{Binding}"
Width
=
"325"
Height
=
"447"
FlowDirection
=
"LeftToRight"
/>
<
hosts:DrawingCanvas
Width
=
"325"
Height
=
"447"
Margin
=
"15"
Background
=
"#00000000"
FlowDirection
=
"LeftToRight"
/>
</
Grid
>
</
Viewbox
>
</
DataTemplate
>
</
UserControl.Resources
>
<
telerik:RadBusyIndicator
x:Name
=
"BusyIndicator"
>
<
telerik:RadBook
x:Name
=
"book"
LeftPageTemplate
=
"{StaticResource LeftPageTemplate}"
RightPageTemplate
=
"{StaticResource LeftPageTemplate}"
IsVirtualizing
=
"True"
IsKeyboardNavigationEnabled
=
"True"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
FirstPagePosition
=
"Right"
HardPages
=
"None"
Margin
=
"10"
BorderThickness
=
"1"
BorderBrush
=
"{telerik:Windows8Resource ResourceKey=BasicBrush}"
/>
</
telerik:RadBusyIndicator
>
C# Code:
public
void
LoadFile(Stream stream)
{
BusyIndicator.IsBusy =
true
;
var UISyncContext = TaskScheduler.FromCurrentSynchronizationContext();
var task =
new
Task<RadFixedDocument>(() => LoadPdf(stream));
task.ContinueWith(t =>
{
book.ItemsSource = t.Result.Pages;
TotalPages = t.Result.Pages.Count;
BusyIndicator.IsBusy =
false
;
}, UISyncContext);
task.Start();
}
private
RadFixedDocument LoadPdf(Stream stream)
{
return
new
PdfFormatProvider(stream, FormatProviderSettings.ReadOnDemand).Import();
}
Everything seems to work fine!
But the problem is when I Load a file and start browsing pages, and monitor it on Task Manager, memory grows too high (i.e. more than 2GB)
Look at the attached files, one from Task manager and one from ANTS Memory Profiler!
What's wrong with my code? Should I do some extra work like releasing objects, pages, ... any thing!?
private
void
LoadFile(String filePath)
{
documentStream =
new
FileStream(filePath, FileMode.Open);
var doc =
new
PdfFormatProvider(documentStream, FormatProviderSettings.ReadOnDemand).Import();
book.ItemsSource = doc.Pages;
}
<
DataTemplate
x:Key
=
"PageTemplate"
>
<
Viewbox
>
<
Grid
>
<
ui:FixedDocumentSinglePagePresenter
Page
=
"{Binding}"
Width
=
"500"
Height
=
"500"
/>
<
hosts:DrawingCanvas
Width
=
"500"
Height
=
"500"
Margin
=
"15"
Background
=
"#00000000"
/>
</
Grid
>
</
Viewbox
>
</
DataTemplate
>
And when trying to use the RadBook.ItemContainerGenerator the problem is that myBook.ItemContainerGenerator.ContainerFromIndex(leftPageInd) returns null,
and I also tried to use the book.Items property, but my Items type are RadFixedPage (because I've set ItemsSource of book to PdfFormatProvider's Pages property) and I don't know how can I use it to get my DrawingCanvas.
Regards, Vahid