Forum Post: Re: New Ui - Link Lookup/main Lookup And Disabling Field

  • Thread starter Thread starter Sri Harsha
  • Start date Start date
Status
Not open for further replies.
S

Sri Harsha

Guest
Ok. No issues. You can try the following snippet to disbale/enable the look up controls. (assuming Rxyzab' is the integration name of the dependent lookup field. ) You can get hold of the controls like below... // textbox of the lookup control. var lookup_textBox = $("select[name=Rxyzab]").data('kendoMultiSelect'); // search btn of the lookup control var lookup_searchBtn = $($("#rbi_F_Rxyzab").find(".k-button")[0]).data('kendoButton'); // plus btn of the loopkup control. var lookup_addBtn = $($("#rbi_F_Rxyzab").find(".k-button")[1]).data('kendoButton'); Now you can use lookup_textBox.enable(false); lookup_searchBtn.enable(false); lookup_addBtn.enable(false); to disable them. And upon requirement you can re-enable them by lookup_textBox.enable(); lookup_searchBtn.enable(); lookup_addBtn.enable(); So, by adding disabling login on page load and re-enabling logic on foucs/change event of the main-lookup, you should be able to achive what you are looking for. Hope this helps. Please let us know if you need anything else. Regards, Harsha.

Continue reading...
 
Status
Not open for further replies.
Back
Top