dataProvider is an Object. You have to check its data type,if it is an Array or ArrayCollection or GroupingCollection to get its size then do the following eg:
if(dataprovider is Array) then Dataprovider.length if(dataprovider is ArrayCollection) then Dataprovider.length jadhavpradip wrote: > > Hello All, > > I want to develop custom component from flex datagrid, which is having > built in facility of pagination. > > And want to use datagrid's default property say 'dataProvider'. > > What i want to do i want to get data, which is set to custom datagrid > as dataProvider. Then want to apply pagination and then i want to > apply paginated data as dataProvider to super class. > > My problem is that while overriding dataprovider's set method, i am > not able to get count of data which is set as dataProvider to > component. > > Does anybody give me idea how to get count of dataProvider or the way > i am going that is wrong. > > Or is there any alternative solution to create custom component of > datagrid? > > Regards, > Pradip Jadhav > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > > -- View this message in context: http://old.nabble.com/-flex_india%3A30481--Creating-custom-component-of-FLEX-Datagrid-tp28979971p28992155.html Sent from the Flex India mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

