本文介绍了Re:Gridview中的预填充项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在网格视图中遇到问题。

例如我在网格中有2列,其中一列是Itemname和Rate。

项目名称是我列出具有自动填充功能的数据库的项目列表。

如果我从项目自动完成中选择一个项目。

(以相同的方式,每个项目有一个Rate率)我必须填入第二列。



我是javaScript的新手你可以帮助任何人.....



谢谢...... ........

Hi,
I have a problem in Grid view.
For example i have 2 columns in grid one is Itemname and Rate.
Item name is list of items i am listing items from DB with Autocomplete.
If i select an item from the Item autocomplete.
(In the same way each item have one Rate that Rate) I have to populate in second column.

I am the new for javaScript can u please help any one .....

Thanks...........

推荐答案

<select>
  <option value="1,1200">Volvo</option>
  <option value="2,1450">Saab</option>
  <option value="3,1000">Mercedes</option>
  <option value="4,1750">Audi</option>
</select>



现在您可以从下拉菜单中获取价值用(,)分割来获得价格。这是我在此基于此演示的示例,您必须编写逻辑



谢谢,

Imdadhusen


Now you can get value from dropdown and then apply split with (,) to get price. This is sample i have demonstrated over here based on this you have to write logic

Thanks,
Imdadhusen


这篇关于Re:Gridview中的预填充项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 21:53