Vote count: 0 I've a requirement where in ag-grid, I need to open a menu to add/edit/delete that row data. I'm using angular material menu component as cell template url. but when click on that menu item, it does not trigger onCellClicked event in ag-grid to get reference to clicked row data however If I click pixels away from menu item then event is fired. Need help to figure out, how can I get row data on menu click. my ag-grid code goes here: var columnDefs = [ {headerName: "", field: "icon", width:65}, {headerName: "Categories",field:"category_name", width:1025, cellRenderer:function(params){ // my cell renderer code goes here }, onCellClicked:function(params){ console.log("Cell is still...
ادامه مطلبVote count: 0 i'm developing wp plugin in which when user enter id to get post against that id. that is working fine on admin side. i followed example to get data by ajax call http://dobsondev.com/2015/06/12/wordpress-ajax-example/ but now i'm trying to do on customer side where anyone can enter id and get result. I removed function which was using to create page on admin side. rest of that i have 4 function named hello_word() , ajax_script(), ajax_handler() i tried to use following add_Action to register but it was not working add_action( 'admin_footer', 'ajax_script' ); then i tried following to register ajax_script add_action( 'wp_ajax_my_action', 'ajax_script' ); add_action( 'wp_ajax_nop...
ادامه مطلبVote count: 0 What I would like to do is change the icon of my program when it runs. Code I've found is: try { String imagePath = "res/Image.png"; InputStream imgStream = this.getClass().getResourceAsStream(imagePath ); BufferedImage myImg; myImg = ImageIO.read(imgStream); this.setIconImage(myImg); } catch (IOException e) { e.printStackTrace(); } My question is: where do I put my image and how do I get its path? End result would be to have an .exe (or worst case a .jar) that I would just have to transfer, so I'd like to have the icon inside the exe. asked 2 mins agoZezombye This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's s...
ادامه مطلبVote count: 0 I'm trying to create a simple Node.js console app using TypeScript ECMAScript6 using Visual Studio 2015 community edition and not able to use a class defined inside a module in app.ts. Visual studio does however displays the module "DataModels" as namespace and also the class in intellisence, but it throws an error while initializing it in app.ts Error: ReferenceError: DataModels is not defined Tried VS project settings using AMD and CommonJs as module system but no luck. Folder structure / app.ts DataModels.ts Scripts Typings (dir) Node (dir) node.d.ts app.ts /// var user: IUser = new DataModels.User(); user.Name = 'user1'; console.log(user.Name); DataModels.ts interface IUser...
ادامه مطلبVote count: 0 Here is the code - http://vince.netau.net Currently when you click on a marker, a clickable get directions link comes up along with title and address. I would instead like the get directions link instead to appear on the sidebar. I tried to move from here: html: locations[i][0]+""+locations[i][1]+"Get Directions" to here: outputDiv.ierHTML += "" + results[i].title + '' + results[i].address + "" + results[i].distance.text + ' approximately ' + results[i].duration.text + "Get Directions" I'm able to have the get directions link appear in the sidebar, however the directions don't match up to correct title and address like they do from the marker. Anyone know how to fix this? Thank...
ادامه مطلبVote count: 0 I got a weired behaviour using pyside's QFileDialog.getSaveFileName. I'd like to save a pdf using this code snipet: fileName = QFileDialog.getSaveFileName(self, "export project information", "/Users/s/Desktop", "PDF Files (*.pdf)") print fileName When I execute the code I get the Dialog window in which I can enter the name of the file to be saved. However if I print the path the entered filename itself doesn't get retued. It always retus "(u'/Desktop', u'PDF Files (*.pdf)')". Even if I change the location and the name the output stays always the same. What do I wrong? Also when I run the function the dialog displays the default name "Untitled.pdf". Can I change that? I already ...
ادامه مطلبVote count: 0 I have an RDD that contains a set of tuples of type (String,String) and since they aren't unique I want to get a look at how many times each string string combination occurs so I use countByValue like so val PairCount = Pairs.countByVlaue() which gives me a tuple as output like this ((String,String),Long) where long is the number of times that the (String, String) tuple appeared the Strings can repeat in different combinations and I essentially want to run word count on this PairCount variable so I tried something like this to start: val PairCount.map(x => (x._1._1, x._2)) but the output the this spits out is String1->1, String2->1, String3->1. How to I output a key value pair ...
ادامه مطلبVote count: 0 I want to show app intro indicator in this form Image I have created layout as:...
ادامه مطلبVote count: 0 Can I view a table within a table in Razor Ex: @model IEnumerable @Html.DisplayNameFor(model => model.Name) @foreach (var item in Model) { @Html.DisplayFor(modelItem => item.Name) foreach (var item in Model) { //I want to put here last table } }asked 1 min agoسلطان اليامي This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 I am making a webpage which has a fixed header and then three columns below. I am using columns of the bootstrap grid. I am giving each column a background image and a couple of lines of text. What I want is for the page to be broken into three even sections under the header, which stretch to the bottom of the page, filling it but not causing a scrollbar. I would like the background images to scale (not crop) when the window is resized, and for text to remain horizontally and vertically centered in its column. When the window is made narrow, or on a mobile device, I would like the three columns to stack on top of each other, with heights that together fill the screen. I made a ...
ادامه مطلبVote count: 0 Is it possibe to get the id slug inside of the get_form_class? Any advice? class Create(Merchant_Services_Editor_Mixin, CreateView): template_name = 'secure/shared/editor.html' def get_form_class(self): if (self.request.GET.get("id") == 1): retu _Merchant_Services_Form.StripeEditor else: retu _Merchant_Services_Form.BraintreeEditor asked 34 secs agoJeremy Lewallen This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 I have a kendo UI grid inside that I have to display a drop down.Drop down value is static one like one,two,three.From the service I am getting "one"but How to select that value in dropdownlist inside Grid. Any relevant links for such requirement. asked 3 mins agoF11 This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 well I'm trying to use svgs for the QTreeView widget. I'm doing this with a simple stylesheet and was wondering if it is supported after i found nothing on the inteet. QTreeView::branch:open:has-children:!has-siblings, QTreeView::branch:open:has-children:has-siblings { border-image: none; image: url(C:/..../folder.svg); width: 19px; height: 16px; margin: 2px 0px 2px 4px; } Problem is the svg is not showing. asked 43 secs agosemic This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 I'm trying to include openssl framework into the swift framework I'm building (I created it with cocoapods - pod lib create) . When I go to default umbrella header and import some header form openssl framework I get Include of non-modular header inside framework module.I tried everything to fix this (checked questions form stackoverflow), including solution with allow non-modular includes.I was using openssl framwork in normal swift projects by importing it inside bridging header, and I had no problems like this. asked 1 min agoBranko This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ a...
ادامه مطلبVote count: 0 I'm trying to vertical-align center a div inside another div, but for some reason it's not working properly. What am I doing wrong? #wrapper { border: 1px solid red; width: 500px; height: 500px; } #block { border: 1px solid blue; width: 500px; height: 250px; vertical-align: middle; } I'm Block PS: This is just an example, so no, I don't actually know the actual width and height of the divs, as they are dynamic, according to their contents, so please no margin-top: 125px, or padding-top: 125px answers, or answers like that. asked 1 min agojessica This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please rea...
ادامه مطلب