any idea or sample code?
Thank you in advanced!
Not quite sure what you want to do here. To add something to the
grid, try:
symbols.push("MY_NEW_SYMBOL");
int rowIndex = symbols.length;
$("#grid").addRowData(rowIndex, {
Symbol: "MY_NEW_SYMBOL"
});
hub.subscribe("MY_NEW_SYMBOL");
To remove something from the grid, try the folowing:
int rowIndex = indexOf("MY_NEW_SYMBOL", symbols) + 1;
removeFromArray("MY_NEW_SYMBOL", symbols); // code not provided -
google is a good bet e.g. http://ejohn.org/blog/javascript-array-remove/
hub.unsubscribe("MY_NEW_SYMBOL");
$("#grid").delRowData(rowIndex);
Hope this helps,
The StreamHub Team
as above, we want to push this 30 records changing every event ,but
only push server see table record inserted/updated.
Point is how to control changing symbol list with push server ,or any
other method.
On 1월31일, 오후11시12분, StreamHub Team <streamhubt...@googlemail.com>
wrote:
> Hi park,
>
> Not quite sure what you want to do here. To add something to the
> grid, try:
>
> symbols.push("MY_NEW_SYMBOL");
> int rowIndex = symbols.length;
> $("#grid").addRowData(rowIndex, {
> Symbol: "MY_NEW_SYMBOL"});
>
> hub.subscribe("MY_NEW_SYMBOL");
>
> To remove something from the grid, try the folowing:
>
> int rowIndex = indexOf("MY_NEW_SYMBOL", symbols) + 1;
> removeFromArray("MY_NEW_SYMBOL", symbols); // code not provided -
> google is a good bet e.g.http://ejohn.org/blog/javascript-array-remove/