jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • sohailkhalid
    Participant

    I am just surprised that most of the reply by JQWidget team “Unfortunately, it is not possible ” while lot of things are possible 🙁
    below is one way we are using
    `function validateAppRoleGrid (gridObject)
    {
    var flag = true;
    var totalRows = gridObject.jqxGrid(‘getrows’).length;
    var rows = gridObject.jqxGrid(‘getrows’);
    for(i =0;i<totalRows;i++){
    $.each(appRoleColumns,function(index,element){
    var cellData = gridObject.jqxGrid(‘getcelltext’, i, element.name);
    var tableColumn = gridObject.jqxGrid(‘getcolumn’, element.name);
    //DO YOUR VALIDATION here
    if ((cellData == undefined || cellData == “”)&& element.name == ‘roleCode’)
    {
    flag = false;
    }
    else if ((cellData == undefined || cellData == “”)&& element.name == ‘narrative’)
    {
    flag = false;
    }
    else if ((cellData == undefined || cellData == “” || cellData == -1)&& element.name == ‘roleTypeId’)
    {
    flag = false;
    }
    else if ((cellData == undefined || cellData == “”)&& element.name == ‘startDate’)
    {
    flag = false;
    }
    });
    }
    return flag;
    }`
    before submit call this function

    in reply to: How to add a Tab dynamically? How to add a Tab dynamically? #80122

    sohailkhalid
    Participant

    I fixed this issue by using below trik
    $scope.tabInstance.addLast( “New tab”, ”);
    angular.element($(“#tabRnd”).find(‘div:nth-child(2)’).find(‘div:last-child’)).append(
    $compile(“<div> {{1+1}}</div> “)($scope));
    you can see example here
    http://plnkr.co/edit/JSCXoirBnhaME6ZsVYMw?p=preview

Viewing 2 posts - 1 through 2 (of 2 total)