User Profile & Activity

Bernard Xiang Member
Page
of 52
Posted: October 9, 2013 9:49 PM

Hi Alex,

Sorry for this inconvenience. I have reuploaded the file. Please let me know if you can use this file. Hope this helps.

Regards,
Bernard

Posted: October 9, 2013 1:19 AM

Hi Alex,

This method is same like your method to apply the css inside WebScheduler. But if you're using your method, you should set all style in your css to replace our style that you defined in WebScheduler.css (you couldn't set background color only or etc). Although, with this method the style couldn't be read in our server side.

To resolve this issue, you could change some of the style in style tag. With this method, our exporting API could read the css for its default style. Regarding to your sample, here's the class name that you should override:

SchedulerViewHeaderStyleNormal: WSB1_VH-N
SchedulerFrameStyle: WSB1_SchedulerFrameStyle
SchedulerMonthInBoundDateHeaderStyleNormal: WSB1_MIDH-N
SchedulerMonthOutboundDateHeaderStyle: WSB1_MODH-N
SchedulerContentCell: WSB1_TimelineContentCellStyle
SchedulerCalendarFrameStyle: WSB1_CalendarFrameStyle
SchedulerCalendarHeaderStyle: WSB1_CalendarHeaderStyle
SchedulerCalendarTableStyle: WSB1_CalendarTableStyle
SchedulerCalendarSelectedCellStyle: WSB1_CalendarSelectedCellStyle

Hope this helps.

Regards,
Bernard

Posted: October 9, 2013 12:22 AM

Hi Alex,

I can replicate your issue here. Probably, this issue happen because there was an error in our installer. We will fix this in our next installer. To resolve this matter, you could use SmartWebResources so our WebScheduler will find the image from our resources assembly or you can put these images in your CommonLibrary folder. We are really sorry for this inconvenience. Hope this helps.

Regards,
Bernard

Posted: October 6, 2013 10:45 PM

Hi Joseph,

I can replicate your issue here. This issue has been handled in our Work Item #1564. I will let you know any news regarding this work item. Thank your for your valuable feedback.

Regards,
Bernard

Posted: October 6, 2013 10:10 PM

Hi Alex,

Maybe if you want to keep your style in your project. You could override the CSS that WebScheduler using important css. For example, you could change month font color by using this css:

.WSB1_MIDH-N
{
    color: red !important;
    font-size: 14px !important;
}

Also by using this method, it won't bother our API to export WebScheduler into PDF. Hope this helps.

Regards,
Bernard

Posted: October 2, 2013 11:53 PM

Hi Alex,

Sorry for our late responses. I have found where all those issue comes from.

For your first issue, it says that value of FontSize is out of range. This problem happen because when reporting our WebScheduler use 3rd party assembly to export WebScheduler. So it has limited capability to change the style in WebScheduler. However, you can resolve this by comment these line in SigmaScheduler.cs

this.ViewHeaderStyle.Normal.CssClass = "SchedulerViewHeaderStyleNormal";
this.SchedulerFrameStyle.CssClass = "SchedulerFrameStyle";
this.MonthInboundDateHeaderStyle.Normal.CssClass = "SchedulerMonthInBoundDateHeaderStyleNormal";
this.MonthOutboundDateHeaderStyle.Normal.CssClass = "SchedulerMonthOutboundDateHeaderStyle";
this.TimelineContentCellStyle.CssClass = "SchedulerContentCell";
this.CalendarFrameStyle.CssClass = "SchedulerCalendarFrameStyle";
this.CalendarHeaderStyle.CssClass = "SchedulerCalendarHeaderStyle";
this.CalendarTableStyle.CssClass = "SchedulerCalendarTableStyle";
this.CalendarSelectedCellStyle.CssClass = "SchedulerCalendarSelectedCellStyle";

For the second issue, this issue happen because WebScheduler_Year.js couldn't be load because you couldn't show Year view in your scheduler. You could load the js or enable year view in scheduler. But it will be better to enable Year View so it won't make error in our API.

For the third issue, actually, we can replicate this issue in our local end and we consider this as bug. We will fix it soon and add this as Hotfix. In while, you could put ISDataSource runtime license key in your project to resolve this issue.

Hope this helps.

Regards,
Bernard

Posted: September 30, 2013 5:00 AM

Hi Alex,

For the first scenario, you can put your javascript in specific IFrame by using OnInitialize client-side event. In WebTextEditor OnInitialize client-side event, WebTextEditor had been built so the content won't be changed during this event. You can also get the IFrame ID and attach a javascript to handle specific iframe's body which you couldn't get in Server-side. However, you shouldn't change the element inside WebTextEditor because it will cause error in our API.

For the second scenario, after you attach onkeydown event on specific iframe's body, you can put a variable that indicate the section that you pressed had been changed. You can also compare the HTML content inside this javascript but you should save the HTML content when OnInitialize client-side event is triggered. So it won't need any HiddenField to save the state of WebTextEditor's section.

I attach my sample here. Could you look in my sample and please let me know if this sample doesn't meet your requirement? You can also tell me step by step of scenario that you want to achieve by using WebTextEditor. I'll gladly help you further. Hope this helps.

Regards,
Bernard

Posted: September 26, 2013 11:24 PM

Hi Alexandre Liard,

Actually, you couldn't get the IFrame's ID inside WebTextEditor because it will be created by our API in client-side. Although, you could bind the content to iframe in your server side by using this function:

WebTextEditor1.LoadContentFromFile(Server.MapPath("./SampleHtml/Product Overview.html"), true);

You can see the sample in here http://live.intersoftpt.com/cs/WebTextEditor/WebTextEditor/SaveAndLoadContentToFile.aspx?noframe=1&path=/WebTextEditor/Rich%20Text%20Editor/Advanced%20Client-side%20and%20Server-side%20Programmability

Or you can populate the data from server side and send it to client side, then client side will set the value regarding its iframe ID. You can set the text using this SetValue function. See the sample here:

http://live.intersoftpt.com/cs/WebTextEditor/WebTextEditor/SetValueFromClientSide.aspx?noframe=1&path=/WebTextEditor/Rich%20Text%20Editor/Advanced%20Client-side%20and%20Server-side%20Programmability

If this matter doesn't resolve your problem, could you explain me the scenario that you want to achieve with WebTextEditor? Maybe with your scenario I can figure out some method to achieve your scenario. Look forward to hear any feedback from you so I can help you further.

Regards,
Bernard

Posted: September 25, 2013 11:25 PM
Hi Alexandre Liard,

You can access all HTML element with its ID in server side if you set runat property to Server value. However, when you're using IFrame you couldn't access the HiddenField or IFrame from server side which placed in different aspx. Altough there's a way you can access these element. You can access this element client side using javascript that you used right know. To access the IFrame you can use, window.frames function from javascript. Hope this helps.

Regards,
Bernard
Posted: September 19, 2013 12:22 AM

Hi Alexandre, 

I tried to replicate your issue in our sample. Unfortunately, I couldn't replicate this issue in our local end. As you can see in our sample (Exporting_ServerSide.aspx), it using the same method that you mentioned before except the SelectedViewMode changing. But when I applied that code in our sample, exporting executed perfectly. Is there any steps of configuration that you used to replicate this issue in your local? Maybe some steps or sample will help us to determine where this problem comes from. Look forward to hear any feedback from you so I can help you further.

Regards,
Bernard

All times are GMT -5. The time now is 5:08 PM.
Previous Next