-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yii2-widgets depDrop on update scenario #95
Comments
The dependent dropdown will be disabled only if it does not have a list of values (basically empty data source). Check the demo examples - there are dependent dropdowns with pre populated data and enabled for update. You have two options:
|
Thanx i have done this please close this issue.. |
Can you share the code for update . |
@akshaybande81 you could pass the param 'selected' in the url with your model->attribute value
|
please help me for depDrop on update scenario::--
When we call an updateAction() then second dropdown is blocked until we not select previous dropdown. But if first dropdown is selected then second should be load the previous selected value.
field($model, 'country_pk')->dropDownList($model->countryList, ['prompt' => '-Choose a Country-', 'id' => 'country_pk']) ?>onCreate() everything is OK..please help me how to enable the desable second dropdown if it have value why it bocked..
Thank you...
The text was updated successfully, but these errors were encountered: