jQWidgets Forums
jQuery UI Widgets › Forums › Scheduler › jqxScheduler Read Only Container
Tagged: jqxScheduler Container Read Only
This topic contains 7 replies, has 2 voices, and was last updated by jqwidgetsdev 9 years, 7 months ago.
-
Author
-
Hello.
I cannot find a way to make any of the containers read only.
This leads me to believe this feature is not yet available which is understandable since this is a brand new component.
If supported, kindly show me how to do this.
If not supported may I please request this feature be added in the next release?Thank you.
Hi jqwidgetsdev,
There is API for disabling dragging, editing and resizing appointments and there is online demo for that – http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxscheduler/scheduler-appointment-restrictions.htm?arctic
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHello Peter.
Yes, this is good but my question is more on when in edit mode. I was not clear enough.
Example is that I want the Description container to appear read only.Is this supported?
Thanks & regards.
Hello Peter.
I was hoping perhaps the following would work
fields.descriptionContainer.readOnly();
Am I doing anything wrong?
Thank you.
Hi jqwidgetsdev,
You may visit: http://www.w3schools.com/tags/att_input_readonly.asp. The page shows how to make HTML Input fields readonly.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHello Peter.
I think I doing something desperately wrong.
I am getting Uncaught Error: Invalid Selector – #jqxInputDescription! Please, check whether the used ID or CSS Class name is correct.
fields.descriptionContainer.html('<input type="text" name="jqxInputDescription" value="test" readonly>'); $("#jqxInputDescription").jqxInput({placeHolder: "Enter a Country", height: 25, width: 200, minLength: 1 });
Please do bear with me. I am not getting it. Can you please point me in the right direction?
Thank you.
Hi jqwidgetsdev,
I would suggest you to read: http://www.w3schools.com/jquery/jquery_ref_selectors.asp to learn how to use jQuery framework and then start using jQWidgets which is built on top of jQuery. In general, you do not have ID attribute in your code. Also why do you replace the Input’s HTML element when you can set its Attribute using jQuery.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThanks Peter for teaching me. I see where I had my wires crossed.
For the benefit of others here is the example to make the description attribute readonly.
fields.description.prop(“readonly”,true);
Best regards.
-
AuthorPosts
You must be logged in to reply to this topic.