XAF之Servermode注意

本文探讨了ListView在使用GridControl并处于Server模式时的LoadOnNeed策略,解释了这种模式下无法遍历全部数据的原因,并提出了只允许遍历当前可见数据的解决方案。

                当ListView使用GridControl,且工作在Server模式下时,执行的是一种Load on need策略,故无法对ListView的数据进行遍历,因为ListView当前仅加载了可见的这部分数据,若遍历数据如浏览listView.CollectionSource.List时,会抛出NotSupportedException。

               此时只能进行局部遍历,利用GridView浏览可见的这部分数据项。

              另外,目前XAF的servermode暂时不支持ChartListView。

>> sf erase customer _spi_flash_erase: addr 0xaf0000, len 0x500000 Erasing at 0xff0000 -- 100% complete.(cost 68 ms) SF: 5242880 bytes @ 0xaf0000 Erased: OK >> tftp 0x21000000 customer.jffs2 Using sstar_emac device TFTP from server 192.168.137.1; our IP address is 192.168.137.2 Filename 'customer.jffs2'. Load address: 0x21000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################# 6.1 MiB/s done Bytes transferred = 5242880 (500000 hex) >> sf write 0x21000000 customer ${filesize} device 0 offset 0xaf0000, size 0x500000 _spi_flash_write to 0xaf0000, len 0x500000 from 0x21000000 Writing at 0xff0000 -- 100% complete.(cost 2303 ms) SF: 5242880 bytes @ 0xaf0000 Written: OK show speed: 2213 KiB/s >> estar scripts/set_config Using sstar_emac device TFTP from server 192.168.137.1; our IP address is 192.168.137.2 Filename 'scripts/set_config'. Load address: 0x21000000 Loading: # 6.8 KiB/s done Bytes transferred = 424 (1a8 hex) >> setenv bootargs console=ttyS0,115200n8r root=/dev/mtdblock3 ro init=/linuxrc LX_MEM=0x8000000 mma_heap=mma_heap_name0,miu=0,sz=0x4000000 mma_memblock_remove=1 cma=2M mtdparts=${mtdparts} nohz=off >> setenv bootcmd ' dcache on; sf probe 0; loados nor 0x22000000 KERNEL by_header; bootm 0x22000000; >> setenv overdrive 3 >> saveenv Saving Environment to SPIFlash... Erasing SPI flash..._spi_flash_erase: addr 0x4f000, len 0x1000 Erasing at 0x50000 -- 100% complete.(cost 3 ms) Writing to SPI flash..._spi_flash_write to 0x4f000, len 0x1000 from 0x27639ad8 Writing at 0x50000 -- 100% complete.(cost 51 ms) done OK >> reset resetting ... E:CD IPL g0815cea D-0 BIST-128MB: OK IPL_CUST g0815cea D-0 U-Boot 2021.10 (Aug 29 2025 - 11:49:41 +0800) SoC: SigmaStar iford Model: IFORD Version: I###g7a33163 DRAM: 126 MiB WDT: Not found! Flash: SPI 54M [FLASH] Device id is 0xa1 0x40 0x18 [SPINOR] ReadData = 0x6b [SPINOR] Dummy = 0x8 [SPINOR] pageProgram = 0x2 [FLASH] BDMA mode [SPINOR] complement = 0x0 [SPINOR] top/buttom = 0x0 [SPINOR] blocks = 0x0 [SPINOR] SRP0 = 0x0 [SPINOR] SRP1 = 0x0 [FLASH] End flash init. spi clk already initialized mtd .name = nor0, .size = 0x01000000 (16MiB) .erasesize = 0x00001000 . Detected nor0 with total size 16 MiB 16 MiB estar完成了吗
最新发布
09-23
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值