ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
What is the difference between Name and Bind in Grid?
Title:
B
I
{code}
?
I have been creating grids with Name but I notice in the latest demo, you use Bind instead of Name. What is the difference here?
Save Changes
Cancel
CuLacGionTan
asked at 14 Aug 2015
They are the same, right now Name is an alias for Bind. Bind was introduced to make it more obvious the purpose of this property, it makes more sense to write Bind = "Chef.FirstName,Chef.LastName" than Name = ...
at 14 Aug 2015
Omu
Thank a lot. Btw, Do you have a demo for binding two dropdownlists which one option in first dropdown is bound to one option to the second dropdown so the selected option of the second one will change based on the selected option of the first one? Notice: The content of the second dropdown doesnot change. So far as I see in the demo, when you select 1 option, the whole list of options in second dropdown get changed.
at 22 Aug 2015
CuLacGionTan
you mean when selecting a value in the first dropdown the value of the second will change (selected option = value) ? for that I think you could handle the js 'change' event on the first dropdown, and set the value on the second, but you will need to know the matching rules on the client
at 22 Aug 2015
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK