Hi,
I've developed a windowsform application where the user build a filter using autocompletebox components.
This webform is called by the showdialog function. It works fine, but, when I reopen the form, the autocompletebox brings 2 values when I've set just one. It duplicates the value, and then I have 1 TokenizedTextItem and 1 text, as you can see on the prinscreens.
The first print is my selection on first time, and the second print, is when I reopen the form.
I've developed a windowsform application where the user build a filter using autocompletebox components.
This webform is called by the showdialog function. It works fine, but, when I reopen the form, the autocompletebox brings 2 values when I've set just one. It duplicates the value, and then I have 1 TokenizedTextItem and 1 text, as you can see on the prinscreens.
The first print is my selection on first time, and the second print, is when I reopen the form.
7 Answers, 1 is accepted
0
Hello Rafael,
Thank you for contacting us.
Can you please elaborate you current case? I tried to reproduce the problem locally but I am not sure that I tried correctly. Can you explain in details what steps I need to take in order to be able to see this effect on my end and more specifically how do you reopen the form? I tried with:
Looking forward to your reply.
Regards,
George
Telerik
Thank you for contacting us.
Can you please elaborate you current case? I tried to reproduce the problem locally but I am not sure that I tried correctly. Can you explain in details what steps I need to take in order to be able to see this effect on my end and more specifically how do you reopen the form? I tried with:
void
Button_Click(
object
sender, EventArgs e)
{
this
.Hide();
this
.Show();
}
Looking forward to your reply.
Regards,
George
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
Rafael
Top achievements
Rank 1
answered on 10 Apr 2014, 07:28 PM
Something like that:
1.
Private
Sub
btnSearch_Click(sender
As
Object
, e
As
EventArgs)
Handles
btnSearch.Click
2.
frmBuscaAvancada.ShowDialog(
True
)
3.
End
sub
0
Rafael
Top achievements
Rank 1
answered on 10 Apr 2014, 08:24 PM
I use it on a showDialog, then, on the first time it works fine, but, after closing and opening again like as showDialog, It brings the past value duplicated, like in the printscreens.
0
Robert Schoen
Top achievements
Rank 1
answered on 10 Apr 2014, 11:53 PM
Normally after I used a dialog I destroy it. Can you create your dialog box just prior to showing it then set it to null once you have your input values?
1.Private Sub btnSearch_Click(sender As Object, e As EventArgs) Handles btnSearch.Click
frmBuscaAvancada = new MyDialogForm
2. frmBuscaAvancada.ShowDialog(True);
myval = frmBuscaAvancada.val;
frmBuscaAvancada = null;
3.End sub
1.Private Sub btnSearch_Click(sender As Object, e As EventArgs) Handles btnSearch.Click
frmBuscaAvancada = new MyDialogForm
2. frmBuscaAvancada.ShowDialog(True);
myval = frmBuscaAvancada.val;
frmBuscaAvancada = null;
3.End sub
0
Rafael
Top achievements
Rank 1
answered on 11 Apr 2014, 11:01 AM
But, I realy need to keep the previously values on there....
1.
Public
Class
frmSchool
2.
Dim
pesquisa
As
New
frmBuscaAvancada
3.
Private
Sub
btnSearch_Click(sender
As
Object
, e
As
EventArgs)
Handles
btnSearch.Click
4.
Dim
queryAvancada
As
String
= pesquisa.ShowDialog(
True
)
5.
End
Sub
6.
End
Class
0
Hi Guys,
Thank you for you replies.
Rafael, I am still not able to reproduce the described behavior on my end. Can you please provide me with a sample project where the problem is reproducible? Additionally I have attached a project which I used for my tests. You can modify it and send it back.
Looking forward to your reply.
Regards,
George
Telerik
Thank you for you replies.
Rafael, I am still not able to reproduce the described behavior on my end. Can you please provide me with a sample project where the problem is reproducible? Additionally I have attached a project which I used for my tests. You can modify it and send it back.
Looking forward to your reply.
Regards,
George
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
Rafael
Top achievements
Rank 1
answered on 22 Apr 2014, 11:37 AM
It's working now.
I had some events on autocomplet textbox that was causing the problem.
After test with your project I could identify and fix my code.
Thanx, and sorry about that.
I had some events on autocomplet textbox that was causing the problem.
After test with your project I could identify and fix my code.
Thanx, and sorry about that.