User Profile & Activity

xu guochun Member
Page
of 9

Hello Riendy,

    Firstly , thanks for your reply and help . I have tried to use the two methods you recommended ,but there is not any changes at all . when I select the checkbox of the column header , all checkboxs of this column will be selected , but the icon colors of accepting all changes or undoing all changes in the footer of the webgrid  is gray . I think this indicate I did not make any changes in this webgrid .

   In the attachment file , there is a simple example based on the live example of Intersoft Solutions . So can you help me to solve this problem ? I will be very grateful !

 

Hi Riendy,

the attachment files are the code and the sql server 2005 database.Thanks for your help!

 

Regards,

gavin

Posted: July 26, 2011 10:11 PM

Hi Martin,

Thank you for your kind reply!

I had not found the System.Threading.Current.CultureInfo.CurrentCulture. I found a property called System.Threading.Thread.CurrentThread.CurrentCulture property, and I set it to new CultureInfo(“zh-CN”).

System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("zh-CN");
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN");

However, chinese sorting issue still exist.Where should the System.Threading.Current.CultureInfo.CurrentCulture should be set?

Thank you.

 

Regards,
-gavin-

Posted: July 9, 2011 1:39 AM

Hi Martin,

Thank you for your kind reply!

Actually we are using ISDS in our project! However, I had not found the CultureInfo.CurrentCulture. I found a property called Culture in the LayoutSettings property, and I set the culture in IntializeLayout(Please see the attached sample).

protected void WebGrid1_OnInitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e)
{
    CultureInfo culture = new CultureInfo("zh-CN");
    this.WebGrid1.LayoutSettings.Culture = culture;
    this.WebGrid1.LayoutSettings.TextSettings.Language = LanguageMode.UseCulture;
    this.WebGrid1.LayoutSettings.TextSettings.UseLanguage = culture.ToString();
}

However, chinese sorting issue still exist.Where should the WebGrid's CultureInfo.CurrentCulture should be set?

Thank you.

 

Regards,
-gavin-

Posted: July 6, 2011 3:22 AM

Hi Martin,

Thank you for your kind reply!

Is there any feedback from your developer team?

We need to fix this soon, kindly help

Thank you.

 

Regards,
-gavin-

Posted: June 28, 2011 1:10 AM

Hi Martin,

Thank you for your kind reply!

However, in the large amount of data and flexibility,it is not enough for us to use LinqDataSource or ISLinqDataSource.Such as our queries is not sure sometime, we have many ready-made "GetData" methods , we need to handle large amount of data and so on.
Is there any way to solve the chinese sorting issue when we use ISDataSource having our own sorting method? Or do you have an indirect solution to solve this problem?

We need to fix this soon, kindly help

Thank you.

 

Regards,
-gavin-

Posted: June 24, 2011 9:04 AM

Hi Martin,

You can find "BeiZhu" column in the attached sample.

Our own sorting method "GetData" return the correct sorting value in the attached sample when we are using a grid with Classic Paging and Custom Paging Load .But the sorting value display incorrectly.(see the attach picture)

I  sort in the grid without enabling paging, the sorting value still display incorrectly.

 

Thank you.

 

Regards,
-gavin-

Posted: June 23, 2011 9:58 AM

Hi Martin,

the attachment files are the code and the sql server 2005 database.Thanks for your help!

 

Regards,

gavin

Posted: June 1, 2011 9:31 AM

In my sample,NavigateUri property is setted to UxMenuItem,but it still can't work. By the way,i really need you enhance this in UXMenuBar level.

Thank you a lot!

Posted: May 31, 2011 9:44 AM

I have made a lightweight sample,see the attachment.

All times are GMT -5. The time now is 1:55 AM.
Previous Next