找回密码
 立即注册

QQ登录

只需一步,快速开始

Syainn
初级会员   /  发表于:2015-4-7 16:54:00
11#
回复 10楼Alice的帖子

你好!请问长加载是指?
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2015-4-7 18:41:00
12#
回复 11楼Syainn的帖子

很抱歉,是我的笔误。
已经更改,“重新加载”。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
Syainn
初级会员   /  发表于:2015-4-7 19:31:00
13#
回复 12楼Alice的帖子

好的,谢谢。我前面发的那个Demo,不知道是否有结果了?
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2015-4-8 12:26:00
14#
回复 13楼Syainn的帖子

你好。
你提交的问题已经重现,现在提交到产品组进行确认。如果有反馈我会第一时间通知你。

谢谢你对我们产品的支持和反馈,稍后赠送300金币作为奖励。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2015-6-26 17:15:00
15#
回复 1楼Syainn的帖子

这是C1Calendar 和C1Schedule 之间的交互问题。
C1Calendar.SelectionChanged 事件由C1Schedle控件使用来导航。
同事应用的代码处理了事件和更新了C1Schedule。
方法混用。
建议改变LoadCalenderDataAccordingTimeSpan 方法。因此更新apppointments的时候会调用BeginInvoke(在C1Calendar和C1Schedule完成所有行为后执行),然后使用C1Schedule.BeginUpdate/EndUpdate方法避免额外的UI刷新操作。
代码参考:

  1. void LoadCalenderDataAccordingTimeSpan( DateTime[] Selection)

  2. {

  3. this.BeginInvoke((MethodInvoker)delegate() // delay appointments updates till Calendar and Scheduelr finish their navigation-related actions

  4. {

  5. c1Schedule1.BeginUpdate(); // suspend UI updates in Scheduler

  6. c1Schedule1.DataStorage.AppointmentStorage.Appointments.Clear();

  7. for (int i = 0; i < 3; i++)

  8. {

  9. Appointment ap = new Appointment();

  10. c1Schedule1.DataStorage.AppointmentStorage.Appointments.Add(ap);

  11. ap.Subject = "test";

  12. ap.Location = "testLocation";

  13. ap.Start = Convert.ToDateTime("2015-04-02");

  14. ap.End = Convert.ToDateTime("2015-04-03");

  15. ap.CustomData = "12345";

  16. ap.Links.Add(c1Schedule1.DataStorage.ContactStorage.Contacts[i]);

  17. }

  18. c1Schedule1.EndUpdate(); // resume Scheduler UI updates

  19. });

  20. }
复制代码
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
12
您需要登录后才可以回帖 登录 | 立即注册
返回顶部