Time of Update: 2018-12-07
重寫combo的setValueJs代碼Ext.override(Ext.form.ComboBox, { setValue : function(node) { if (typeof node == "object") { // 當node為object對象時 this.lastSelectionText = node.text;
Time of Update: 2018-12-07
// Build the intent //Uri number = Uri.parse("tel:5551234"); //Intent callIntent = new Intent(Intent.ACTION_DIAL, number); Intent intent = new Intent(Intent.ACTION_SEND); // Always use string resources for UI
Time of Update: 2018-12-07
參考了許多文章,覺得寫得挺好,但是總是不能簡化說明。 比如右鍵菜單,我們最關心的是如何屏蔽掉預設的菜單, 如何在右擊某個控制項的時候顯示對應的右鍵菜單。 如何構造產生右鍵菜單,如何響應右鍵菜單的事件。 這些問題寥寥幾句代碼就能說明問題了,但是高手都沒有直說。 當然這些文章包含了許多其他的知識點,值得以後參考。 以下是我的簡單實現: <UserControl
Time of Update: 2018-12-07
前段時間在自己的筆記本上(開發環境是VS2008)測試用ExtJs+ASP.NET做一個資訊系統架構,一切OK; 在項目遷到公司電腦(VS2005)上之後發現問題了,webService返回的結果都是XML 格式的。弄了很久沒有解決,後來乾脆都用aspx做後台輸出資料 今天偶然看到人家用Response.Write 在後台webService輸出資料,果然可以。 測試代碼如下: <%@ WebService Language="C#"
Time of Update: 2018-12-07
附上代碼 View Code package com.yarin.android.Examples_04_04;import android.app.Activity;import android.database.Cursor;import android.graphics.Color;import android.os.Bundle;import android.provider.ContactsContract;import
Time of Update: 2018-12-07
直接上代碼 代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->insert #t select 1,'三'union all select 2,'乙'union all select 3,'二'union all select 4,'一'union all select 5,'十'select * from #t order by name
Time of Update: 2018-12-07
Toolkit Samples中的樣本是將ContextMenu添加到ListBox的ItemTemplate中而DataGrid由於沒有ItemTemplate,所以稍有不同<UserControl
Time of Update: 2018-12-07
1.對查詢進行最佳化,應盡量避免全表掃描,首先應考慮在 where 及 order by 涉及的列上建立索引。2.應盡量避免在 where 子句中對欄位進行 null 值判斷,否則將導致引擎放棄使用索引而進行全表掃描,如: select id from t where num is null 可以在num上設定預設值0,確保表中num列沒有null值,然後這樣查詢: select id from t where num=03.應盡量避免在 where
Time of Update: 2018-12-07
發現cnblogs的代碼插入功能真的比較垃圾! cnblogs有兩種代碼插入方式: 和 以前沒怎麼瞭解過,都是習慣性的用第一種方式,原因是樣式比較好看,哪知,拷貝的代碼是不分行的,全部擠在一起,超鬱悶,而且如果你發布的時候是選擇加入行號的,會把行號都一起拷貝。 因此俺研究了第二種代碼插入方式,還行,可以快捷複製到剪下板,代碼格式也都沒有問題,可是真的好醜。這麼好的娘,生出來的孩子這麼醜,cnblogs,你說得過去嗎?!
Time of Update: 2018-12-07
按理說在表單(或者說自訂控制項)的loaded事件中對內部某一可編輯控制項進行Focus()設定,程式運行後,該控制項就應該獲得焦點。在ie下測試是沒有問題的,但是在chrome瀏覽器下不成功,查看了一些例子後發現,有2中方式可以嘗試解決該問題:1、在合適的地方(如loaded事件)加入如下代碼HtmlPage.Plugin.Focus();2、在承載sl外掛程式的檔案中增加javascript代碼控制獲得焦點;寫一個javascript方法以備調用function
Time of Update: 2018-12-07
1.對查詢進行最佳化,應盡量避免全表掃描,首先應考慮在 where 及 order by 涉及的列上建立索引。2.應盡量避免在 where 子句中對欄位進行 null 值判斷,否則將導致引擎放棄使用索引而進行全表掃描,如: select id from t where num is null 可以在num上設定預設值0,確保表中num列沒有null值,然後這樣查詢: select id from t where num=03.應盡量避免在 where
Time of Update: 2018-12-07
(說明:該文轉自javaeye)不少令人振奮的新功能1.form裡面的複合組件---寫過extjs的人都知道,form+column layout是一件多麼讓人鬱悶的事...http://www.extjs.com/deploy/ext-3.2.0/examples/form/composite-field.html 看了下源碼,用hbox排版的,才那麼幾行代碼,寫的很巧妙. 2.對store的filter和sorter的改進,可以用多個了.
Time of Update: 2018-12-07
代碼如下:Ext.onReady(function() {var form1=new Ext.form.FormPanel({//title:"表單初始化-使用者手冊",id:"form1",width:300,autoHeight:true,frame:true,//renderTo:"a",labelWidth:65,labelAlign:"right",defaultType:"textfield",bodyStyle: 'padding:2px 0 0 0;' , //上-右-下-
Time of Update: 2018-12-07
1、直接在控制項(表單)中定義 <UserControl.Resources> <SolidColorBrush x:Key="TextBoxBackgroundColor" Color="LemonChiffon"/> </UserControl.Resources> <TextBox Background="{StaticResource TextBoxBackgroundColor}"/>
Time of Update: 2018-12-07
ExtJs學習系列之 GridPanel:Ext.grid.ColumnModel 列配置屬性說明 配置選項名 類型 作用header String 列頭文字說明dataIndex String 記錄結構中的name屬性值width Number 列的寬度sortable Boolean 是否排序fixed Boolean
Time of Update: 2018-12-07
從2002年發布.NET 1.0,曆經8年發展,.NET發展到了4.0,已經成為一個龐大而複雜的軟體開發與運行平台,其架構日益複雜,其應用領域也在不斷地擴充,包容了“一堆”的子技術領域。在.NET 4.0即將發布之際,回顧一下發行的各項.NET技術,看看哪些技術用得很火,哪些被打入冷宮,再猜猜.NET 4.0中可能會有哪些技術會得到“青睞”,是件有意思的事。1 傳統型應用程式開發技術( Windows Form和WPF)。 在.NET傳統型應用程式開發領域,Windows Form是“前輩”,
Time of Update: 2018-12-07
今天下定決心好好研究Coolit,當然首先就是在部落格園裡開闢一塊地區專門用來存放學習的經驗、心得。Coolite Toolkit 簡介 Coolite Toolkit 是一個支援ASP.NET AJAX的Web控制項。 Coolite Toolkit是基於跨瀏覽器的ExtJS 庫開發而來的,並且簡化了開發步驟,並且包含有豐富的Ajax運用。 Coolite Toolkit和ExtJS 都是開源的。 官方首頁:http://coolite.com
Time of Update: 2018-12-07
周末對ext布局進行了研究,發現以前覺得比較麻煩的東西,現在看來十分簡單。ext的使用不是特別困難,但是如何才可以保證ext可以滿足各種變態的頁面需求的同時又可以使開發人員不去接觸一堆一堆的js呢?這個問題肯定是個難題。
Time of Update: 2018-12-07
(聲明:此文轉自 http://www.cnblogs.com/fujinliang/archive/2012/08/28/2660883.html)timestamp 這種資料類型表現自動產生的位元,確保這些數在資料庫中是唯一的。timestamp 一般用作給表行加版本戳的機制。儲存大小為 8 位元組。 一個表只能有一個 timestamp 列。每次插入或更新包含 timestamp 列的行時,timestamp 列中的值均會更新。這一屬性使 timestamp 列不適合作為鍵使用,
Time of Update: 2018-12-07
main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" >