Showing posts with label remove. Show all posts
Showing posts with label remove. Show all posts

Friday, August 29, 2014

How to use regular expression in ZK textbox Which not allowed spaces ?

I have a requirement for ZK TextBox


1- Not Allow any space when nothing entered in textbox
2- Not allow space before and after the string.
3- Allow Space in between two keyword like Ram Singh should be valid
4- Only Ram Should be also valid

for above these requirements which not allow trailing/white spaces you can below textbox with regular expression






Friday, August 16, 2013

ZK Listbox MouseOver CSS Overriding or Remove Hover

See the below code for this.

Monday, August 5, 2013

How to replace to ZScript code from Production Ready code from JavaScript :ZK

Today i am going to discuss about a very good think how we can replace Zscript use from production server , as it is my personal experience when i have any issue in zk and i asked something in ZK forum or Stackoverflow i found many times people answer with Zscript may be because its easy to write and run very easily .
But what will happen when we have Zscript disable in our Zk project something like this in zk.xml file
Also in somewhere in Zk Document, i already read that Zscript not for production server its only for testing purpose so never use ZScript in production code.
Let me explain the issue and solution in briefly few week back i have wrote about ZK+RapidSpell Checker integration but that example not working when zul have parent-child relationship like if zul is part of tabs and tabs are part of index.zul so index.zul is parent of all the zul
So i have to ask this question in Stackoverflow and as expected i got the help from two guys @benbai and @Jim but i saw solution was on Zscript again its a problem for me because as i already mentioned above i can not use Zscript so what the solution how to ignore Zscript code ?
Here is the Zscript code with solution

And i have to use this code and it replaces Zscript code with JavaScript

So this is one way to do this and ignore using Zscript.

Thursday, July 18, 2013

How to avoid to load ZK Powered Logo?

As we know when any page load zk powered logo shown and if i am making any website or product for any individual client its not look good to me as well as client.

Now everyone know these design,look and feel and images are manage by CSS classes ,but sometime its hard to know which CSS used by ZK,for this above issue you can override some css class and css class which you have to override .
This Css used by ZK



Now you can change image or no any image

background-image:none

For more information you can check this question , i am using ZK EE may be because in my case above thing working .

Monday, February 25, 2013

ZK pass values in ViewModel Without removing focus from textbox

I was facing some issue like i have a textbox and when user will enter some values in textbox and doubleclick inside textbox then the same time value o send value to ViewModel ....