stop popup ajax calendar extender on demand
How do I disable ajax calender extender when textbox is set to readonly=true
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khargesh RajputPosted Mar 28, 2015, 2:36 AM
where you dont want calender on textbox in code behind
another solution may be you can use two panels with different textbox
but use calender for only one textbox
and when you want to show calender visible true for first panel else visible true for second panel
Azaad AbbasPosted Mar 28, 2015, 2:31 AM
Azaad AbbasPosted Mar 28, 2015, 2:24 AM
Khargesh RajputPosted Mar 28, 2015, 2:17 AM
set
txtcheckdate.Attributes.Add("readonly", "readonly");
where you want to disable calender
Azaad AbbasPosted Mar 28, 2015, 2:14 AM
Cannot implicitly convert type 'System.Web.UI.WebControls.Button' to 'string'
and also with hidden button not working.
Khargesh RajputPosted Mar 27, 2015, 10:25 AM
Try input tag or button with visible false instead of label to popupbuttonid
Azaad AbbasPosted Mar 27, 2015, 8:31 AM
Khargesh RajputPosted Mar 27, 2015, 7:55 AM
in code behind when you type
CalendarExtender1. it will show
PopupButtonID
If throw error then add new dll 4.5 of ajxcontrol
Azaad AbbasPosted Mar 27, 2015, 7:39 AM
Khargesh RajputPosted Mar 27, 2015, 7:30 AM
we are setting PopupButtonid for calender by defalut to use on textbox
here we can change it from code behind based on condition as for hiddenfield