User Profile & Activity

Glenn Layaar Support
Page
of 99
Posted: November 1, 2009 10:26 PM
Unfortunately, using the snippet you will have to use Load server side event in order to catch the event in the server side for further processing.
Posted: November 1, 2009 9:35 PM
This scenario should be similar to Disable edit/delete through LayoutSetting doesn't work right in a flypostback action WebGrid7.0

Besides setting the AllowEdit to No in the server side you will also need to set the WebGrid property in the client side. 
Posted: November 1, 2009 9:30 PM

I have created a sample in order to replicate the issue, however using the latest build of WebGrid and WebUI Framework, I could not replicate the issue.

Attached is the simple sample I created to test the scenario.

The sample is using northwind.mdb, in order to simulate the multi row data I inserted <br/> tag in Notes column after . 

Posted: October 30, 2009 5:00 AM
After further analysis, it seems this behavior is caused by a bug. A bug report has been submitted. We will inform you if there is any update regarding this issue. 
Posted: October 30, 2009 3:31 AM

WebScheduler has a javascript function to move to a selected date. Here is the snippet to move to a week from the currently selected date:

function MoveSchedulerByCalendar() {
    var sched = ISGetObject("WebScheduler1");
    sched.Calendar.MoveDayBy(7);
    sched.RefreshAll(true);
}
function MoveSchedulerBySelectedDate() {
    var sched = ISGetObject("WebScheduler1");
    
    var currentDate = sched.ViewSettings.SelectedDate;
    currentDate.setDate(currentDate.getDate() + 7);
    sched.RefreshAll(true);
}

The first snippet will be applicable if the Calendar object is loaded, if the Calendar is not loaded you could use the second snippet. 

Regarding the lack of documentation for WebScheduler, I will inform this to our documentation team for consideration. 

Posted: October 30, 2009 12:23 AM
This issue has been reported by another customer and a bug report has been submitted for the developer. If there is any update regarding this issue, we will inform you.
Posted: October 29, 2009 3:07 AM

The behavior is by design, during DayEvents-OnClick the selected value has not been applied to the WebInput. In order to determine the WebInput that triggered the event and the currently selected date, you could use the event parameter. Here is the snippet:

function UpdateDates(ctrlId, selectedDay, selectedMonth, selectedYear) 
{
    var currentInput = ISGetObject(ctrlId);
    
    var dataCaptureDate = ISGetObject("wiCaptureDate");
    var webInput1 = ISGetObject("WebInput1");
    var webInput2 = ISGetObject("WebInput2");
    var strMessage = "";
    var selectedDate = new Date();
    selectedDate.setFullYear(selectedYear, selectedMonth - 1, selectedDay);
    strMessage += "Current input:" + selectedDate.toDateString() + "\r\n";   
    if (ctrlId != "wiCaptureDate")
        strMessage += "Data Capture Date:" + dataCaptureDate.GetValueData() + "\r\n";
    if (ctrlId != "WebInput1")
        strMessage += "Web Input1:" + webInput1.GetValueData() + "\r\n";
    if (ctrlId != "WebInput2")
        strMessage += "Web Input2:" + webInput2.GetValueData() + "\r\n";
    alert(strMessage);
}

 

Posted: October 29, 2009 1:51 AM
I have confirmed the issue with our developer and this is currently a limitation in WebScheduler 2. The behavior will be enhanced in WebScheduler 3 so it will be treated similar to Month View behavior with more link for a day with high number of events.

WebScheduler 3 is scheduled to be release on November 2009 
Posted: October 29, 2009 12:03 AM

The text file issue occurs because there is a , character in the Address column while we are using ,  as a column separator. In order to remedy this issue you could enclosed the Address data in a " "  during Export server side event in order to set the data as a single column data. Here is the snippet:

protected void WebGrid1_Export(object sender, ISNet.WebUI.WebGrid.ExportEventArgs e){
    foreach (WebGridRow wgRow in e.Table.Rows)
    {
        wgRow.Cells.GetNamedItem("Address").Value = "\"" + wgRow.Cells.GetNamedItem("Address").Value + "\"";
        wgRow.Cells.GetNamedItem("Address").Text = "\"" + wgRow.Cells.GetNamedItem("Address").Text + "\"";
    }
}

 

Posted: October 29, 2009 12:03 AM

The text file issue occurs because there is a , character in the Address column while we are using ,  as a column separator. In order to remedy this issue you could enclosed the Address data in a " "  during Export server side event in order to set the data as a single column data. Here is the snippet:

protected void WebGrid1_Export(object sender, ISNet.WebUI.WebGrid.ExportEventArgs e){
    foreach (WebGridRow wgRow in e.Table.Rows)
    {
        wgRow.Cells.GetNamedItem("Address").Value = "\"" + wgRow.Cells.GetNamedItem("Address").Value + "\"";
        wgRow.Cells.GetNamedItem("Address").Text = "\"" + wgRow.Cells.GetNamedItem("Address").Text + "\"";
    }
}

 

All times are GMT -5. The time now is 3:58 AM.
Previous Next