jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 59 total)
  • Author
    Posts

  • EricK
    Participant

    Gat,
    Thank you for your answer. I finally figured that one out, but was not sure if it would cause issues.
    Glad that others offer assistance and recognize those minor details.

    Hope the JQW team will render a solution on the next update.

    Thanks again,
    Eric


    EricK
    Participant

    Stanislav,
    I would expect the window to resize both width and height with one click on the button.
    If I code the window to resize it. I would think it should resize with one line of code.
    So, I have to call the resize twice to get my results?

    Is there a way to get the window to resize with one line of code?

    Eric


    EricK
    Participant

    Hello,
    Let me share a simple approach with jquery.
    Add this line bellow the editor configuration.

    $(‘#editor’).contents().find(‘iframe’).contents().find(‘body’).css(‘padding’,’5px’);

    This should resolve your issue.

    Eric

    in reply to: change cell color by renderer change cell color by renderer #96299

    EricK
    Participant

    Stanilav,
    Thank you for the quick feedback.
    I have seen those examples and they do not render the entire background color of the cell.
    I can only assume this can not be done by way of the renderer function.
    The first example colors the background of the editor, not the cell when edit is complete.
    The second example uses css that are predefined.

    var colorrenderer = function (row, datafield, value, defaultHTML) {
    if(value!=”){
    return ??????
    }
    }
    Anyone out there have any suggestions?

    in reply to: Grid data adapter issue Grid data adapter issue #96183

    EricK
    Participant

    Peter,
    Shared
    https://www.jseditor.io/?key=grid-dataadapter-issue

    I use php to access the database….
    So this is method I use.

    in reply to: Grid data adapter issue Grid data adapter issue #96180

    EricK
    Participant

    Peter,
    We may be viewing this in two different directions.
    I am not saying the grid is updating the adapter.

    Please look a the example again. It is a very basic setup.

    Run the example.
    Select the view button which will show one record in the adapter.
    Select the add button which will add a record to the grid and adapter.
    Select the new item added to the grid.
    Select the view button again and the adapter now has 2 records.

    The example should show that the adapter is getting updated.
    Now when did the adapter add the new data record?

    in reply to: Grid data adapter issue Grid data adapter issue #96154

    EricK
    Participant

    Peter

    Thank you for the clarification. I am aware of the relationship between the adapter and the grid.

    I thought this part of the code updates the data adapter and the commit applies it to the grid.

    localdata: data,
        addrow: function (rowID, rowData, position, commit) {
           commit(true,keyid);
           $('#f1').val('');
           $('#f2').val('');
        }
    

    (This only happens when the data adapter is empty, works fine if data exists in the adapter)
    The issue I am illustrating is that if you have a empty data adapter and add a record.
    I am then checking the data adapter for data. (no data)
    Example: https://www.jseditor.io/?key=grid-dataadapter-issue

    What am I missing?

    in reply to: Reformatting HTML Reformatting HTML #94404

    EricK
    Participant

    Simple enough,
    I would have thought the editor could maintain the raw html code pasted into the source view. This is not the case with this editor.
    It converts the code to character encoding and strips parts of the html.

    The editor can only use the editor for coding and displaying of any html entered.
    If I wanted to create a simple email document that was html this editor is unable to export the correct html code to complete the email.
    Not sure why the editor can not keep the raw code pasted. I had to use the jqxAreaText to accomplish the the email scenario.
    That’s to bad the editor can not work in this way, because it is truly an awesome module.
    Thanks
    Eric

    in reply to: Reformatting HTML Reformatting HTML #94371

    EricK
    Participant

    Clarification on one thing.
    When pasting html code into the editor should the mode be in the default or should it be in the source view.

    Thanks again
    Eric

    in reply to: Reformatting HTML Reformatting HTML #94314

    EricK
    Participant

    I you open the example and then click the view source the window locks.

    in reply to: Reformatting HTML Reformatting HTML #94312

    EricK
    Participant

    Try pasting this into the editor. I am using the Chrome browser if that matters.

    <!DOCTYPE HTML>
    <html>
    <head>
    	<meta http-equiv="content-type" content="text/html" />
    	<title>Test</title>
    </head>
    <body>
        <p>Hello World</p>
    </body>
    </html>

    The editor will freeze
    When I pull the val() from the editor it is not the same identical code that I pasted.
    <a href="https://www.jseditor.io/?key=jqxeditor-pull-value"></a>

    in reply to: Edit Dialog Demo Edit Dialog Demo #93347

    EricK
    Participant

    The simplest way to correct is to change the line of code.
    current: fields.repeatContainer.hide();
    to: fields.repeatContainer.remove();

    This works better.


    EricK
    Participant

    Please check source if this line actually works?
    If it does please give me an example.

    $(‘#scheduler’).jqxScheduler(‘setAppointmentProperty’, appointment.id, ‘id’, new key value);

    Do you have another way of setting the appointment id? Other than changing the jqxdataadapter.

    Any help would be appreciated.
    Thanks,
    Eric


    EricK
    Participant

    The sample is now shared with everyone.

    Eric King


    EricK
    Participant

    Thank you Hriso for the response.
    I tried the *case(add new appointment) method.

    $(‘#scheduler’).jqxScheduler(‘setAppointmentProperty’, appointment.id, ‘id’, new key value);

    I have added a sample to the js editor. Please add a new appointment and move your mouse over the new appointment.

    https://www.jseditor.io/?key=jqxscheduler-change-appointment-id

Viewing 15 posts - 16 through 30 (of 59 total)