Thursday, November 21, 2013

Get the records Count of RADGRID using Jquery


<script type="text/javascript">
function RowCount()
{
    var grid = $find("<%=RadGrid1.ClientID %>");
    var MasterTable = grid.get_masterTableView();
    var Rows = MasterTable.get_dataItems();
    alert(Rows.length);
}
</script>

Show selected div on radiobutton list selection using Jquery

<label><input id="rdb1" type="radio" name="toggler" value="1" />Money</label>
<label><input id="rdb2" type="radio" name="toggler" value="2" />Interest</label>

<div id="blk-1" class="toHide" style="display:none">
    First Div
</div>
<div id="blk-2" class="toHide" style="display:none">
    Second Div
</div>

$(function() {
    $("[name=toggler]").click(function(){
            $('.toHide').hide();
            $("#blk-"+$(this).val()).show('slow');
    });
 });

Friday, November 8, 2013

Default location for storing the .SqlLite DB file on MAC

Default Location:
~/Library/Application Support/iPhone Simulator/[SDK version]/Applications/[App GUID]/Documents

To find the path at Finder (Hint):
Right Click on Finder -> Select Go to Folder -> Enter the following 
~/Library/Application Support/iPhone Simulator/