iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi
I am having a problem opeing the zip file - I have used winzip and 7zip but I get errors (Unsupported compression.......)
Can you please resend.
thanks, but this does not do what I need.
Your code simply re-opens a new instance of the pop-up dialog box if the user decides they don't want to cancel. This means any data entry stuff in the Dialog is lost as a new instance of the pop up occurs.
It also seems that this code places the business logic in the calling page - I would want to business logic to reside within the dialog pop up.
Maybe if I explain further the exact scenario. It is to manage (add, amend , delete) lookup/drop down list items used in my application e.g. Languages, countries, gender, age ranges, etc
1) I have a page that displays a list box with 'lookup' items
2) The use will select one and dialog will be popped up listing in a listbox for example a list of languages.
3) The user can then add new item, amend and delete items in the list - this is done in memory.
4) When the user clicks the Save button the in memory changes are uploaded to the database - if the user click Cancel I want to popup a message box asking for confirmation. Ok - amendments care cancelled - Cancel the user return to the dialog box and can then click save and upload amendments to the database.
The problem I see with IsCancel="True" (and your code) on the Cancel button is that the dialog is closed first (and any field/in memory data).
Simply put
1) Click Cancel
2) Ask user for confirmation
3) Do a 'dialog.close' piece of code if user accecpt cancel or simply leave Dialog open as it was before.
I've attached some screenshots
Richard
Can I have an update please - this is still not resolved, thanks
I think I may not have explained properly...yes your code is valid in that this is the code used in the calling screen ie. to popup the dialog box.
Then when the dialog box is closed (DialogResult.OK or DialogResult.Cancel) the calling code can use the logic.
This code I understand runs when the popped up window is closed - I don't want that - I want to prevent the popped up window closing if the user answers 'No' to my MessageBoxServiceProvider.Show(....) message box.
Logic.....
Window1 pops up Window2 using code as you offer above.
Window2 has two buttons - Save and Cancel
Save (mvvm code) saves data and closes Window2 using DialogBoxServiceProvider.CloseCurrentWindow() - this works.
Cancel (mvvm code) display Messagebox asking confirmation from user for Cancel Action.
If user says 'No Cancel' then return to Window2 (works)
If user says 'Yes - Cancel' then this code does not now work <DialogBoxServiceProvider.CloseCurrentWindow();> - it's as if the DialogBoxServiceProvider.CloseCurrentWindow(); is closing the MessageBox and not the Window2.
can you please ensure supplying client side parameters to filter the data in a report is an easy process to program. Thanks
Is there a date we can expect this development?
using System; namespace SLDevExpressReports.Web { public partial class XtraReport6 : DevExpress.XtraReports.UI.XtraReport { public XtraReport6() { InitializeComponent(); } private void Detail_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { //DetailBand detail = (DetailBand)sender; //double dblValue; //string strTemp; this.Report.GetCurrentRow(); string objValue = GetCurrentColumnValue("ClassNumber").ToString(); Int32 ClassNum; bool parsed = Int32.TryParse(objValue.Substring(0, 3), out ClassNum); if (parsed) { if (ClassNum >= 0 && ClassNum < 100) xrPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(10)))), ((int)(((byte)(100))))); else if (ClassNum >= 100 && ClassNum < 200) xrPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(50)))), ((int)(((byte)(200))))); else if (ClassNum >= 200 && ClassNum < 300) xrPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(100)))), ((int)(((byte)(250))))); else if (ClassNum >= 300 && ClassNum < 400) xrPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(150)))), ((int)(((byte)(100))))); else if (ClassNum >= 400 && ClassNum < 500) xrPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(120)))), ((int)(((byte)(200))))); else if (ClassNum >= 500 && ClassNum < 600) xrPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(050)))), ((int)(((byte)(164)))), ((int)(((byte)(250))))); else if (ClassNum >= 600 && ClassNum < 700) xrPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(200)))), ((int)(((byte)(100))))); else if (ClassNum >= 700 && ClassNum < 800) xrPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(45)))), ((int)(((byte)(210))))); else if (ClassNum >= 800 && ClassNum < 900) xrPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(14)))), ((int)(((byte)(253))))); else xrPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(14)))), ((int)(((byte)(10))))); } } } }
As you can see there is an opportunity to change the report e.g. value or display before the line is printed/previewed.
So we have an event the fires before the line is rendered .. private void Detail_BeforePrint
Here I can depending on a vlaue in the dataset/record chage the background colour of the label.
I have also attached some screen shots from DevExpress label report wizard.
2. Will you be able to program at detail/row e.g change the background color of the details/fields based on some logic.
Can you share with us a little about your scenario? Currently, user can change the style in designer. But in order to answer about your requirement, it would best if you tell us the detail of your scenario.
In typical report designer you have access to events within the report - e.g. detail line. This is where you can write code to affect the detail line in the report -e.g. you may wan to hide a field control depending on its value or change its colour.
not I want to achieve something like attached screenshot
just what I was looking for - thanks. Is this in the documentation - have I overlooked?
thanks for the reply - not sure this will give me what I need. I have had another look and found a property called CommandParameter. This I believe is what I'm looking for. I can have 26 buttons on my view each with a different CommandParameter - the viewmodel command delegate process receives an object parameter and I can then apply logic to it - so no need to have 26 command delegates in the VM.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname