Jump to content

SertanSoylu

uniGUI Subscriber
  • Posts

    19
  • Joined

  • Last visited

Posts posted by SertanSoylu

  1. Thanks for your reply Hayri, I found a solution for column display with CSS

    x-boundlist-list-ct x-unselectable x-scroller {
    column-count: 3
    }

    Looking forward for multi-select mode without any key combination.

  2. Hi,

    I need to do 2 or 3 columns diplay in ListBox (as delphi's primitive ListBox), do I have any chance if you now,

    and the other thing is,

    How can I use list selecting always in multi-select mode?

    Thanks.

  3. Hi,

     

    I'm using uniHTMLFrame in uniFrame,

     

    I should take real height of the containerPanel after alignment complete, so I can set the js component height. (highChart, devExtreme, etc.)

     

    However, I can not get the actual height, 

     

    I use, uniSession.Syncronize or onAfterShow...

     

    This is important for not to use uniHTMLFrame's scrolling, because if I make it true, js component looses its functionality.

     

     

    Another thing is, I can handle resize event, but I don't know how to send new height to the js Component.

     

    Thanks.

  4. Delphi Developer thank you very much, 
     
    Actually I want to understand how do you know to send last parameter false in ajaxRequest, because I googled about ajaxRequest,
     
    couldn't find any info (Documentation or webSite), this information is more helpful for the possible feature questions :)
     
    What do you think about for Q2, this is the second main point for this third party component.
     

    Problem is in attached file.

    post-6199-0-28654200-1521294698_thumb.jpg

  5. Hi,

     

    Q1, I have a problem on ajax events that I can't find any source to resolve the problem.

     

    I use DevExtreme grid/pivotGrid (for column filter checkbox with data...) in uniHTMLFrame, with ajaxRequest, I need to load data in JSON format.

    I can see the XHR data is sent to browser correctly from chromeDeveloperTools, however when I look at result from console, i see only result = "true" and no data displayed in grid.

    if I use JSON String directly, no problem...

     

    I tried many way to handle the respone but i couldn't handle...

     

    Q2, if I use uniHTMLFrame in a Modal Form, devexpress filter column popup appears on mainForm, popup goes out from htmlFrame,

    I couldn't find any solution without putting uniHTMLFrame in to main form.

     

    What am I doing wrong, thanks.

     

    <div class="demo-container">
       <div id="gridContainer"></div>
    </div>
    <script>
    $(function(){
       var GetCustomers = function(e) {
          var deferred = $.Deferred();
          result=ajaxRequest(MainForm.UniHTMLFrame1,e,[]);
          <!-- result=[{"ID":1,"CompanyName":"Premier Buy"}]  THIS IS OK-->
          console.log(result);
          deferred.resolve(result);
          return deferred.promise(); 
       }
     
        $("#gridContainer").dxDataGrid({
            dataSource: GetCustomers('load'),
            columns: ["ID","CompanyName"]
        }).dxDataGrid("instance");
    });    
    </script>
     
     
    procedure TMainForm.UniHTMLFrame1AjaxEvent(Sender: TComponent;
      EventName: string; Params: TUniStrings);
    var s:string;
    begin
      if EventName = 'load' then
      begin
        s:='['+
        '{"ID":1,"CompanyName":"Premier Buy"},'+
        '{"ID":2,"CompanyName":"ElectrixMax"},'+
        '{"ID":3,"CompanyName":"Video Emporium"}+
        ']';
     
        //unisession.JSONDirect(s);
        //unisession.Response := s;
        unisession.SendResponse(s,true);
      end;
    end;
     
    Platform:
    Delphi Tokyo,
    uniGui 1.0.0.1424 (licensed)
     
     
     
×
×
  • Create New...