.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Thanks. But the problem is that dropdown SelectedIndexChanged is not firing.
I had created UserControl. Under that listview is placed. Inside ListView Item Template, I had defined DropdownList. Wondering What can be the reason that dropdown SelectedIndexChanged is not firing?
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Yes. Still It was not firing, so I had applied logic on ItemDataBound event and using Jquery. Now, the only prob. is that dropdown changed value is displayed on 2nd postback?
Yes. Still It was not firing, so I had applied logic on ItemDataBound event and using Jquery. Now, the only prob. is that dropdown changed value is displayed on 2nd postback?
According to your description, i can't reproduce your question.
I need detailed code to reproduce your problem, So please post your aspx and aspx.cs code.
and this is new question, please post your question in new thread.
Best regards,
Sam
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Solved the problem by calling dropdown SelectedIndex changed method forcefully. In Jquery, I had set a variable IsDDClicked=1 and in ListView Bind method, checked if Dropdown is clicked ie if IsDDClicked=1, then fired dropdown Selected index like: dlFndEqu_SelectedIndexChanged(null,
null);
Member
85 Points
380 Posts
Listview with dropdown and doing edit delete
Oct 03, 2019 03:00 PM|geetasks|LINK
What's the best way to display dropdown in itemtemplate and doing CRUD operation?
Contributor
3370 Points
1409 Posts
Re: Listview with dropdown and doing edit delete
Oct 04, 2019 07:37 AM|samwu|LINK
Hi geetasks,
I don't think there is a best way, only the best way for you, this depends on your own requirement.
and I made demo for your as a reference:
The result:
Best regards,
Sam
Member
85 Points
380 Posts
Re: Listview with dropdown and doing edit delete
Oct 07, 2019 09:43 AM|geetasks|LINK
Thanks. But the problem is that dropdown SelectedIndexChanged is not firing.
I had created UserControl. Under that listview is placed. Inside ListView Item Template, I had defined DropdownList. Wondering What can be the reason that dropdown SelectedIndexChanged is not firing?
Contributor
3370 Points
1409 Posts
Re: Listview with dropdown and doing edit delete
Oct 08, 2019 10:25 AM|samwu|LINK
Hi geetaska,
Do you set AutoPostBack="true"?
The result:
Best regards,
Sam
Member
85 Points
380 Posts
Re: Listview with dropdown and doing edit delete
Oct 15, 2019 06:49 AM|geetasks|LINK
Yes. Still It was not firing, so I had applied logic on ItemDataBound event and using Jquery. Now, the only prob. is that dropdown changed value is displayed on 2nd postback?
Contributor
3370 Points
1409 Posts
Re: Listview with dropdown and doing edit delete
Oct 15, 2019 07:51 AM|samwu|LINK
Hi geetasks,
According to your description, i can't reproduce your question.
I need detailed code to reproduce your problem, So please post your aspx and aspx.cs code.
and this is new question, please post your question in new thread.
Best regards,
Sam
Member
85 Points
380 Posts
Re: Listview with dropdown and doing edit delete
Oct 15, 2019 11:24 AM|geetasks|LINK
Solved the problem by calling dropdown SelectedIndex changed method forcefully. In Jquery, I had set a variable IsDDClicked=1 and in ListView Bind method, checked if Dropdown is clicked ie if IsDDClicked=1, then fired dropdown Selected index like: dlFndEqu_SelectedIndexChanged(null, null);