Nov 11, 2014, 8:04 PM
[CLOSED] Change Badge on Tabpanel in code behind
Hello again ;-)
I want to show a badge with the number of records on my tab of the tabpanel.
I had the badge implemented in the Plugins collection of the TabConfig of the panel (a grid panel in this case).
I have given the badge an ID.
Now I would like to change the Badges Text in the Refresh function of my store (server side), by using:
badgeCompanies.Text = totalNumberOfRows.ToString();
This gives me an error that I need to set the widgets ID before calling its functions. But it is set...
I tried via X.Msg.Badge("mygridpanel", totalNumberOfRows.ToString()).Show(), but that shows the badge at the full right of the panel and not on the tab on top.
I tried also via X.GetCmp<Ext.Net.Badge>("badgeCompanies").Text... , but that gave the same error in regards to the widget ID issue.
How can that text of that badge be changed server side?
Kind regards,
Reno
I want to show a badge with the number of records on my tab of the tabpanel.
I had the badge implemented in the Plugins collection of the TabConfig of the panel (a grid panel in this case).
I have given the badge an ID.
Now I would like to change the Badges Text in the Refresh function of my store (server side), by using:
badgeCompanies.Text = totalNumberOfRows.ToString();
This gives me an error that I need to set the widgets ID before calling its functions. But it is set...
I tried via X.Msg.Badge("mygridpanel", totalNumberOfRows.ToString()).Show(), but that shows the badge at the full right of the panel and not on the tab on top.
I tried also via X.GetCmp<Ext.Net.Badge>("badgeCompanies").Text... , but that gave the same error in regards to the widget ID issue.
How can that text of that badge be changed server side?
Kind regards,
Reno
Last edited by Daniil; Nov 17, 2014 at 2:34 PM.
Reason: [CLOSED]