User Profile & Activity

xu guochun Member
Page
of 9
Posted: October 10, 2011 4:52 AM

Hello Hendrik ,

  I am so sorry for my mistake . I have reattached my sample ! Thank you for your help !

Hello Handy ,

   Thank you for your method . I have used this method to get the total number . However , I hope sincerely you can provide the interface (or the attribute or the method ) to get the total number of WebGrid in the next version . Then we can work more easier .

 Hello Handy ,

   Thank you very much for your reply and sample . I have known how to set the total number in the StatusBar in the InitalizeDataSource . However , If I use the ISDataSource , how can I get the ReturnValue of SelectCount method . Because the ReturnValue of this method is the total number of WebGrid .

  Thanks a lot !

Hello Handy ,

   I find the WebGrid can display the total number When I set  PagingMode="VirtualLoad" in LayoutSettings . You can see the result from the picture in attachment file . Why ? How the WebGrid get the total number from database ?  Did you tell me there is no way to get the total number ??

  Besides , When I use IsDataSource , I must write the method of SelectCount in the Bizlogic file . This method return the total number of items of WebGrid . What is the function of this method ?

Hello,

       It seems that the way you give me is feasible ,but now I can only obtain the total of current page(look at the lower right corner of picture1).My boss did not agree with this method.My purpose is obtaining the total of all!I think you can make the total of all  show in the status bar in my sample and send it back to me,please! Thank you!

 I want to get the sum of the items of webgrid and I want it to show in the status bar in this simple sample . I believe it's easy for you .Really looking forward to your great help .

Posted: September 26, 2011 9:57 PM

 

 I have used PagingDataRetrievalMode="ReturnPartialRows"

 I use "iframe" . WebTreeViewis on the left and WebGrid is on the right. When I click the nodes of the tree , the WebGrid on the right should be changed ! it work smoothly in the IE .

<%@ Page Language="C#" MasterPageFile="~/WebMaster/MainpageWithTree_NoAJax.Master" AutoEventWireup="true"
    CodeBehind="OU_Frame.aspx.cs" Inherits="EpointNetoffice7.Pages.SubUserManage.OU_Frame"
    Title="OU" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <iframe width="100%" height="100%" name="left" scrolling="auto" frameborder="0" src="OU_LeftTree.aspx">
    </iframe>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <iframe height="100%" name="main1" scrolling="auto" src="OU_List.aspx" frameborder="0" width="100%">
    </iframe>
</asp:Content>






    <ISWebTreeView:WebTreeView ID="TreeViewOU" runat="server" EnableLoadOnDemand="true"
        AllowExpandNodeOnSelect="true" AutoSelectOnNodeExpandCollapse="true" OnInitializeChildNodes="WebTreeView2_InitializeChildNodes"
        AllowAddNode="True" AllowDeleteNode="True" LineImageHeight="-1" LineImageWidth="-1"
        Height="300px">
        <ClientSideEvents OnNodeExpand="TreeView_NodeExpand_Common" OnInitialize="TreeView_Initialize"
            OnNodeSelect="TreeView_NodeSelect" />
        <LoadingStyle CssClass="TreeViewLoading">
        </LoadingStyle>
        <FrameStyle CssClass="TreeViewFrame" BackColor="Transparent" BorderWidth="0">
        </FrameStyle>
        <NodeStyle>
            <Normal CssClass="TreeViewNode_N">
            </Normal>
            <Over CssClass="TreeViewNode_O">
            </Over>
            <Active CssClass="TreeViewNode_A">
            </Active>
        </NodeStyle>
    </ISWebTreeView:WebTreeView>

Hello Yudi ,

   Thank you for your sample and help . The sample you provided worked smoothly . But I think I do not explain my problem clearly .

    In my project , if I create the columns of WebGrid in the foreground program , the problem I said will not appear . However , if I dynamically create the columns in the method named "WG1_InitializeDataSource" , there will be some problems . After invoking the OnBatchUpdate server-side event , it will invoke the method named "WG1_InitializeDataSource" again . Then the misaligned column will occur .

  Can you help me to solve this problem ? Thanks a lot !

Hello Handy ,

   Thank you for your reply . I have tried the method you provided , however , when my program execute this command , a javascript error appear . It said "childNodes is null or childNodes is not a object" . I also tried GetElement(WG40.STATUSBAR,WG40.HTMLCELL) , GetElement(WG40.STATUSBAR,WG40.HTMLROW) , GetElement(WG40.STATUSBAR,WG40.HTMLTABLE) . But the error also appeared . The picture in attachment file is the statusbar in my project . Can you help me ? Thanks a lot !

All times are GMT -5. The time now is 12:51 AM.
Previous Next