Posts

c# - Data Lost from UserControl when I use RadGrid EditForm with UserControl -

Image
i use radgrid editform usercontrol sample telerik sample <telerik:radgrid id="persongrid" runat="server" autogeneratecolumns="false" oneditcommand="persongrid_editcommand" onupdatecommand="persongrid_updatecommand"> <mastertableview datakeynames="id" commanditemdisplay="top"> <editformsettings usercontrolname="personitemsuc.ascx" editformtype="webusercontrol"> </editformsettings> <columns> <telerik:gridboundcolumn uniquename="id" display="false" headertext="id" datafield="id"> </telerik:gridboundcolumn> <telerik:gridboundcolumn uniquename="name" headertext="name" datafield="name"> </telerik:gridboundcolumn> <telerik:gridboundcolumn uniquename=...

jquery - javascript input field get cleared when page postback -

i working vb asp.net , end sql in have choose date calendar used javascript calendar client side coding , other controls , when page postback lost calendar value selected have keep date till click save button here textbox input <input name="txtpodate" id="inputfield00" type="text" style="width:28px; font-family:segoe ui; font-size:14pt; height: 20pt; background-color: #3366ff;" onclick ="a();" /> i have used hidden field , onblur , onfocus events not working, the calendar function is <link rel="stylesheet" type="text/css" media="all" href="jsdatepick_ltr.min.css" /> <script type="text/javascript" src="jsdatepick.min.1.3.js" ></script> <script type="text/javascript" id ="calender"> function setcurrentdate() { var d = new date(); ...

javascript - Setting up onclick handlers into for -

this question has answer here: javascript closure inside loops – simple practical example 31 answers how generate event handlers loop in javascript? [duplicate] 3 answers i have array this.conds = ["addr", "acc"] example. have these dom objects in html tree. piece of code: for(cond in this.conds) { this.searchby[this.conds[cond]] = { "btn": $("#" + this.conds[cond] + "btn"), "fields": $("#" + this.conds[cond] + "fields"), "active": false }; // handlers __this = this; this.searchby[this.conds[cond]].btn.click(function() { __this.setallunactive(); __this.searchby[__this.conds[con...

ios - Controller not deallocated when popping it -

dealloc not called in controller b popped nav stack. ie (very normal) setup: nav controller has controller root , button tap pushes b on top. button in controller b unwinds controller a. made through storyboard interface in ib (i use custom segue class uses no animation on push). (when using xibs , non-arc) call dealloc in controller b popped. not, in case. normal behaviour of storyboards? or if not, made mistake somewhere, hanging onto controller b. fyi i'm using arc , not explicitly creating controller b anywhere in code. it alarming because noticed constructor of controller b called each push of (even after going b a). mean b controllers leak.

sql server ce - How to read & update data in the Sql ce database located in Windows phone app data folder? -

i have placed sql ce database file in installation folder of windows phone application.i want perform read , write operations on database saying access database file not allowed. please suggest me how can achieve this you need copy database isolated storage on first run, installation folder read-only. need change connection string: data source=isostore://mydb.sdf see more in blog post here: http://erikej.blogspot.dk/2013/04/generate-windows-phone-8-local-database.html

java - How to make session attribute threadsafe -

i have bean stored in session bean provides functionality. in order make functionality provided bean thread safe should develop bean in thread safe manner or session access bean should made thread safe? if object thread-safe, can have 100 places in code access object, , thread-safe every time. if object isn't thread-safe, you'll have make sure every 1 of 100 places access bean in common way guarantees thread-safety. i'd make object thread-safe.

android - How may i use the thread in my program? -

i want move image on screen using thread have tried not working fine due improper code of thread. able image , want move image on screen in code want move ovalshaped image , dont want must effect jerry image problem thread implementing on margenmaxx, margenxy maximum width , height public class animatedview extends imageview { public animatedview(context context) { super(context); resources res = context.getresources(); drawable = res.getdrawable(r.drawable.jerry); mdrawable = new shapedrawable(new ovalshape()); mdrawable.getpaint().setcolor(0xffffac23); } protected void ondraw(final canvas cc) { final context context = null; drawable.setbounds(x , y , x + width, y + height); drawable.draw(cc); invalidate(); thread thread = new thread() { @override public void...