gpaulino Posted September 18, 2014 Share Posted September 18, 2014 now presented me these messages [dcc32 Error] E1026 File not found: 'BMUiniDbGrid.res'[dcc32 Error] E1026 File not found: 'BMUiniDbGrid.otares' Quote Link to comment Share on other sites More sharing options...
gpaulino Posted September 18, 2014 Share Posted September 18, 2014 ready, throw away the package and ready Error Thanks! Quote Link to comment Share on other sites More sharing options...
Anthoni Posted September 21, 2014 Share Posted September 21, 2014 This won't install for the 64Bit edition. It installs perfectly for the 32Bit, but refuses on 64bit. Any ideas what's going on ? Delphi XE5 Regards Anthoni Quote Link to comment Share on other sites More sharing options...
ganzqgy Posted September 21, 2014 Share Posted September 21, 2014 in extjs4.2.1144, not work! Quote Link to comment Share on other sites More sharing options...
ganzqgy Posted September 21, 2014 Share Posted September 21, 2014 ok!!! Quote Link to comment Share on other sites More sharing options...
rullomare Posted September 21, 2014 Author Share Posted September 21, 2014 Hi ganzqgy, With the original version posted works correctly. You should only recompilare. Anyway thanks for the tip! JSObjects.JSClasses['pagingBar'] := 'Ext.toolbar.Paging'; ?? Problem. Salvatore Marullo Quote Link to comment Share on other sites More sharing options...
rullomare Posted September 21, 2014 Author Share Posted September 21, 2014 Hi Anthoni , what error you receive? Salvatore Marullo Quote Link to comment Share on other sites More sharing options...
Jean-Marc Kiener Posted September 22, 2014 Share Posted September 22, 2014 Hi, i saw that i do not have a pagecount/pagenavigation under my grid anymore. has this to do with this? JSObjects.JSClasses['pagingBar'] := 'Ext.toolbar.Paging'; ?? Problem. If yes, where and how i must set this? Quote Link to comment Share on other sites More sharing options...
ganzqgy Posted September 22, 2014 Share Posted September 22, 2014 procedure TBMUniDBGrid.LoadCompleted;var Obj : TExtFunction; objCols : TExtFunction; i : integer ; Cols : string ;begin if FactionColumnEvent = '' then FactionColumnEvent := 'ColsActionEvent' ; if FCheckBoxSelect then begin self.Options := self.Options + [dgRowSelect]; self.Options := self.Options + [dgMultiSelect]; end else begin self.Options := self.Options - [dgRowSelect]; self.Options := self.Options - [dgMultiSelect]; end; if FActionButtons.Count > 0 then begin Cols :=' eColumn = new Ext.grid.column.Action( {'+ 'xtype : ''actioncolumn'','+ 'width : ' + inttostr(FactionColumnWidth) + ', sortable : false , menuDisabled : true ,'+ 'items : [' ; for i := 0 to FActionButtons.Count - 1 do begin Cols := Cols + ' { icon: ' + quotedstr( StringReplace(FActionButtons.Items.FIconFilename,'\','/',[RfReplaceAll])) + ',' + 'tooltip: ' + quotedstr(FActionButtons.Items.ToolTip) + ',' + 'handler: function (grid , rowIndex, colIndex) {'+ 'grid.getSelectionModel().select(rowIndex);'+ 'ajaxRequest(' + self.jsname +',' + quotedstr(FActionColumnEvent) + ',["Buttons=" + "' +FActionButtons.Items.ButtonName+ '"]);'+ '}},'; end; if FActionColumnPos = Last then Cols := copy(Cols,1,length(Cols) - 1) + ' ]} ); columns.push(eColumn) ;' else Cols := copy(Cols,1,length(Cols) - 1) + ' ]} ); columns.unshift(eColumn) ;' ; objCols := JsFunction('sender, store, columns, oldStore, the, eOpts', Cols) ; Self.jsgridpanel.on('beforereconfigure',Objcols); Objcols.free(); end; Self.ClientEvents.UniEvents.add('pagingBar.beforeInit=function(sender, config){' +'sender.displayInfo= true;' +'var pbp=Ext.create("Ext.ux.ProgressBarPager", {width:200});' +'var ptr=Ext.create("Ext.ux.PagingToolbarResizer",{displayText:" 分页行数:",options:[1,5,10,15,20,25,50,100,2000]});' +'sender.plugins=[pbp,ptr]' + '}'); Obj := JSFunction('sender, selected, eOpts', 'var ArrayOfIndex = []; for (var i in selected){ArrayOfIndex.push(selected.index);}' + ' ajaxRequest(sender, "selectionchange", ["ArrayOfIndex="+Ext.encode(ArrayOfIndex)]);') ; Self.jsgridpanel.on('selectionchange',Obj); Obj.Free(); inherited;end; JSObjects.JSClasses['pagingBar'] := 'Ext.toolbar.Paging'; Paging control,No paging can not use Quote Link to comment Share on other sites More sharing options...
Anthoni Posted September 23, 2014 Share Posted September 23, 2014 Hi Anthoni , what error you receive? Salvatore Marullo When I try and load the package into Delphi, the IDE itself crashes with delphicore.bpl Access Violation. However when I then try and create a new package with just the Pascal file and then build under 64 I get :- [dcc64 Fatal Error] BMUniDBGrid64.dpk(33): E2202 Required package 'designide' not found Any ideas ? Quote Link to comment Share on other sites More sharing options...
Anthoni Posted September 23, 2014 Share Posted September 23, 2014 Never mind, got it Just removed the designide from the package and it worked fine. Built 64Bit first then compiled and installed under 32bit. Quote Link to comment Share on other sites More sharing options...
rullomare Posted September 23, 2014 Author Share Posted September 23, 2014 Hi Kiener , Let's see if I can explain. If you use my BMUnidbgrid component has the ability to add PagingToolbarResizerer posted by Mr. Delphi Developer. Please set Property PagingToolbarResizer to true . See: OK! in truth I did not foresee the possibility of using the original unigui PagingToobar, also because the one posted by Mr. Delphi Developer seems to me more nice. I hope I was clear. Best Regards Salvatore Marullo Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 23, 2014 Administrators Share Posted September 23, 2014 in extjs4.2.1144, not work! Hi ganzqgy, What is your uniGUI version? Quote Link to comment Share on other sites More sharing options...
ganzqgy Posted September 23, 2014 Share Posted September 23, 2014 in all extjs4.2, work! good! Self.ClientEvents.UniEvents.add('pagingBar.beforeInit=function(sender, config){' +'sender.displayInfo= true;' +'var pbp=Ext.create("Ext.ux.ProgressBarPager", {width:200});' +'var ptr=Ext.create("Ext.ux.PagingToolbarResizer",{displayText:" 分页行数:",options:[1,5,10,15,20,25,50,100,2000]});' +'sender.plugins=[pbp,ptr]' + '}'); but: sender.plugins=[Ext.create("Ext.ux.ProgressBarPager", {width:200}),ptr];--------------------------not work! Quote Link to comment Share on other sites More sharing options...
rullomare Posted September 24, 2014 Author Share Posted September 24, 2014 hi, I think we've created a bit of confusion with the new release of Unigui and ExtJS (0.97 and ext-4.2.2.1144), especially with Plugins (PageSize e ProgressBar Extension) posted by Delphi Developer. It seems to me that everything works as before. I made some small changes to the TBMUniDBGrid and this is the result, without writing a line of code from the client site. If anyone is interested, I can post the changes. Best Regards . Quote Link to comment Share on other sites More sharing options...
billyChou Posted September 25, 2014 Share Posted September 25, 2014 Thanks Quote Link to comment Share on other sites More sharing options...
Jean-Marc Kiener Posted September 25, 2014 Share Posted September 25, 2014 Hi rullamore, That works for me.. procedure TBMUniDBGrid.ConfigJSClasses(ALoading: Boolean); begin JSObjects.DefaultJSClassName := 'Ext.grid.Panel'; JSObjects.JSClasses['cellModel'] := 'Ext.selection.CellModel'; JSObjects.JSClasses['rowModel'] := 'Ext.selection.CheckboxModel' ; JSObjects.JSClasses['store'] := 'Ext.data.Store'; JSObjects.JSClasses['pagingBar'] := 'Ext.toolbar.Paging'; <-- that adds the standard toolbar end; However, i did not find the "PagingToolbarResizer" Property in my object inspector. Maybe i has to install first PagingToolbarResizerer posted by Mr. Delphi Developer, then the property is shown. i will try.. Quote Link to comment Share on other sites More sharing options...
rullomare Posted September 26, 2014 Author Share Posted September 26, 2014 Hi Kiener, Updated Version of TBMUniDBDGrid see : http://forums.unigui.com/index.php?app=core&module=attach§ion=attach&attach_rel_module=post&attach_id=2264 NewTBMUniDBDGrid.zip let me know. Regards Quote Link to comment Share on other sites More sharing options...
Jean-Marc Kiener Posted September 26, 2014 Share Posted September 26, 2014 Hi rullamore, It works perfect until i set the property "PagingToolbarResizer" to "True". if i set it to "false", i can see the original grid toolbar. If i set it to "True", see the attached pictures. Maybe it has to do that i have to install the "PagingToolbarResizer". But that seems to me a bit complicated. Can you give me al little help? Quote Link to comment Share on other sites More sharing options...
rullomare Posted September 26, 2014 Author Share Posted September 26, 2014 Hi Kiener, check the LOG file for messages. Have you tried the demo? Regards Quote Link to comment Share on other sites More sharing options...
Jean-Marc Kiener Posted October 1, 2014 Share Posted October 1, 2014 HI rullamore, The demo works. i had to remove UniZDBGrid from the uses list to compile it. Attached the log file. It seems that i miss some js-file. A2014-09-26.txt Quote Link to comment Share on other sites More sharing options...
rullomare Posted October 1, 2014 Author Share Posted October 1, 2014 Hi Kiener, Define in ServerModule -> CustomFiles files/PagingToolbarResizer.js files/ProgressBarPager.js please uses the files that I have attached to "Files" folder of demo program : I made some small changes to avoid the message you received . I hope this will solve your problems. P.Š. you do not need UniZDBGrid , sorry. regards. Quote Link to comment Share on other sites More sharing options...
Jean-Marc Kiener Posted October 1, 2014 Share Posted October 1, 2014 Hi rullamore, Thanks again, it works fine now. I'm just wondering. For what is ProgressBarPager.js needed? regards. Quote Link to comment Share on other sites More sharing options...
rullomare Posted October 1, 2014 Author Share Posted October 1, 2014 Hi Kiener, Fine ! Honestly, I do not know. it is nice to see, especially if you are not using PagingToolbarResizer and you can see graphically how many records you've already displayed in grid . Set the property ProgressBarPager to true, and you can see the result. see : http://forums.unigui.com/index.php?app=core&module=attach§ion=attach&attach_rel_module=post&attach_id=2264 Regards Quote Link to comment Share on other sites More sharing options...
robinson Posted November 1, 2014 Share Posted November 1, 2014 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.