Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
Hi,

I use custom templates to display folders and files in the Treeview of the RadFileExplorer. I load 2 different templates, the first one is for root folder and the second one for the rest of the folders arborescence. My templates are added on the event TemplateNeed.
By the way, my RadFileExplorer use a custom content provider. When the RadFileExplorer is entirely load, I notice a problem on the displayed data in the treeview and the data in the grid. It's only valable for the first record. Here is an exemple:

  • rootNode1
    • folder1
      • folder21
    • folder2
      • folder11
      • folder12
    • folder3
  • rootNode2
    • folder1
      • folder11
      • folder12
    • folder2
      • folder21
    • folder3

When the treeview is loaded, the folderXX aren't displayed yet. If I click on the "folder1" of "rootNode1" -> I get the values of the "folder2". If I remove my custom templates, it works perfectly.

Do you have any idea where does that come from?

Dobromir
Telerik team
 answered on 29 Feb 2012
2 answers
86 views
Hi All...
i have installed on my machine the new version of RadControlAjax 2012.1.215.40

after the installation, my the solution still working fine...but in the visual studio, when i oen the web form in the design part, and whenever i use RadComboBox i have the following error

There was an error rendering the control Unable to cast object of type 'Telerik.Web.UI.RadComboBox' to type 'Telerik.Web.UI.ControlItemContainer'

but when i drag any new radcombobox thereis no error....

i don't know how to solve this? and it is not a good solution to drag new Radcombobox controls on all form in my project to solve this...

any help will be great...
thanks

Asa'ad....
Asa'ad
Top achievements
Rank 1
 answered on 29 Feb 2012
4 answers
145 views
Hi Team,

I want to remove RadPanelBar icon. Please see the my requirement in image and suggest me the solution.

<telerik:RadPanelBar runat="server" ID="Rad" Width="100%" ExpandMode="MultipleExpandedItems">
            <Items>
                <telerik:RadPanelItem Expanded="True" Height="23px">
                    <Items>
                        <telerik:RadPanelItem Value="0">
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
                <telerik:RadPanelItem Expanded="True" Height="23px">
                    <Items>
                        <telerik:RadPanelItem Value="1">
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
                <telerik:RadPanelItem Expanded="True" Height="23px">
                    <Items>
                        <telerik:RadPanelItem Value="2">
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelBar>


Many Many Thanks in Advance.

Regards,
Reyaz
Reyaz
Top achievements
Rank 1
 answered on 29 Feb 2012
3 answers
751 views
Hi,
I am using radstrip and radgrid. Inside radstrip there are 3 tabs, on click of each tab i will be displaying data using radgrid.
radgrid contains GridTemplateColumn where i have placed 2 asp : button, for the first tab i will assign default text with respect to data
displayed on click of first tab. On click of second tab. i want to change the text of that button inside GridTemplateColumn as data in grid
changes with respect 2 tab.. How can i accomplish this ?? Help me out ?

code is as below.


<telerik:RadTabStrip ID="rdStrip" runat="server" SelectedIndex="0"
     OnTabClick="rdStrip_TabClick" Skin="Outlook" Width="100%" Height="27px">
            <Tabs>
                <telerik:RadTab Text="abc" Selected="true" Width="150Px"></telerik:RadTab>
                <telerik:RadTab Text="def" Width="150Px"></telerik:RadTab>
                <telerik:RadTab Text="ghi" Width="150Px"></telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>

  <telerik:RadGrid ID="rdgrd" runat="server" AllowPaging="true"
            AutoGenerateColumns="false" PageSize="20" GridLines="None"
            CssClass="radgrid" AllowFilteringByColumn="true" Width="100%"
            Skin="Office2007">
            <ExportSettings ExportOnlyData ="true" HideStructureColumns ="false"></ExportSettings>
            <PagerStyle Mode="NextPrevAndNumeric" />
            <MasterTableView AllowPaging="true" AllowFilteringByColumn="true"
                CommandItemDisplay="Top">
                <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"/>
                <CommandItemSettings ExportToExcelText="Export To Excel" ShowExportToExcelButton="true"
                    ShowAddNewRecordButton="false" ShowRefreshButton="false" />
                <Columns>
                    <telerik:GridBoundColumn HeaderText="SchoolLevel" DataField="schooldsc" UniqueName="SchoolLevelDesc">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="School" DataField="schooldscd" UniqueName="School">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn Visible="true">
                    <ItemTemplate>
                    <asp:Button ID="btnFirst" runat="server" Text="Cancel" OnClick="btnFirstOnClick" />
                    </ItemTemplate>
                    </telerik:GridTemplateColumn>
                     <telerik:GridTemplateColumn Visible="true">
                    <ItemTemplate>
                    <asp:Button ID="btnSecond" runat="server" Text="Insert" OnClick="btnSecondOnClick" />
                    </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">
                <Resizing EnableRealTimeResize="true"  />
            </ClientSettings>
        </telerik:RadGrid>

Regards,
Akki
Veli
Telerik team
 answered on 29 Feb 2012
1 answer
78 views
hellow dears . 
i added Radmenu in my project. but there is the same problems :
1.when i click on items to build items i see this error  : "Font arial does not support style bold"
i changed the font and test with many fonts. but when i changed the font and want to remake itmes still i see font arial not supprted :O
2.when i right click on Radmeno az choose Build radmenu , i see this error : "exception has been thrown by the target of an invocation"

i`m really really sry for my simple Question.
thanks guys.

Peter
Telerik team
 answered on 29 Feb 2012
2 answers
73 views
I've created a chart with two series, almost each item is clickable including the series names on the right.  I would like to add a tooltip to the name itself, not the series items.  So that the use knows the expected behavior when clicked.

I've added the tool tip in the markup as such.

<telerik:ChartSeries Name="Pending Reviews" Type="StackedBar" ActiveRegionToolTip="Click to see pending reviews" DataYColumn="Modality" DataXColumn="Pending Reviews">

That doesn't seem to work.  

Any suggestions?
Javier
Top achievements
Rank 1
 answered on 29 Feb 2012
1 answer
570 views
I've been banging my head against this for a couple of days, I hope somebody can help me.

I have my RadAjaxManager defined on a master page.  On a page that uses the master page, I have defined a RadAjaxManagerProxy, 3 divs with runat="server" and an asp:Panel.  I've used divs with runat="server" before with success.  Here is the code for everything:

On the master page:

<telerik:RadAjaxManager ID="ajaxManager" runat="server" DefaultLoadingPanelID="ajaxLoadingPanel" >
</telerik:RadAjaxManager>
  
<telerik:RadAjaxLoadingPanel ID="ajaxLoadingPanel" runat="server" Skin="" Transparency="20" InitialDelayTime="100" MinDisplayTime="500">
<div style="background-position: center center; background: url('../Images/loading.gif') no-repeat center center; background-color: #F0F0F0; height:100%; width:100%;"></div>
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxLoadingPanel ID="ajaxLoadingPanel_blank" runat="server" Skin="" Transparency="20" InitialDelayTime="100" MinDisplayTime="500">
<div></div>
</telerik:RadAjaxLoadingPanel>

On the child page:

    <telerik:RadAjaxManagerProxy ID="ajaxManagerProxy" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="divHomeControls">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="divHomeControls" LoadingPanelID="ajaxLoadingPanel_blank" />
                <telerik:AjaxUpdatedControl ControlID="divPrevNext" />
                <telerik:AjaxUpdatedControl ControlID="pnlGrid" />
                <telerik:AjaxUpdatedControl ControlID="divHistory" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="divPrevNext">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlGrid" />
                <telerik:AjaxUpdatedControl ControlID="divHistory" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="pnlGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="divHistory" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<table border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td valign="top" colspan="2">
            <div id="divHomeControls" style="float:left;text-align:center;vertical-align:middle;padding:4px 0px 0px 0px" runat="server">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <span style="padding-right:10px;">Current Product File:</span>
                            <span style="padding-right:10px;"><asp:Label ID="lblHomePIL" runat="server" CssClass="SearchControl"></asp:Label>
                            </span>
                            <span style="text-align:right;padding-right:10px;">Issue Date:</span>
                        </td>
                        <td>
                            <span style="text-align:left;padding-right:10px;">
                               <telerik:RadDatePicker ID="dateChooserIssueDate" runat="server" AutoPostBack="True" onselecteddatechanged="dateChooserIssueDate_SelectedDateChanged" 
                                Width="100px" Culture="English (United States)" Visible="True" Skin="Outlook">
                                <DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" AutoPostBack="True" Width="100%" CssClass="SearchControl"></DateInput>
                                <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="Hello" Width="200px"></Calendar>
                                <DatePopupButton ImageUrl="" HoverImageUrl="" Visible="True"></DatePopupButton>
                                </telerik:RadDatePicker>
                            </span>
                        </td>
                        <td align="right"><span style="text-align:right;padding-right:10px;">Issue #:</span></td>
                        <td align="left"><span style="text-align:right;padding-right:10px;"><asp:Literal ID="litIssueNumber" runat="server"></asp:Literal></span></td>
                    </tr>
                </table>
            </div>
        </td>
    </tr>
    <tr>
        <td valign="top" colspan="2">
        <div id="divPrevNext" runat="server" style="margin:10px 0px 0px 0px; padding:10px; background:#f8fcff; border:1px solid #ccc;" >
            <table border="0" cellpadding="0" cellspacing="0"><tr>
            <td width="20px"><asp:Literal runat="server" ID="btnPrevItem"/></td>
            <td width="100%" style="text-align:center;vertical-align:middle;padding:4px 0px 4px 0px"><asp:Literal ID="litTitle" runat="server"></asp:Literal></td>
            <td width="20px" align="right"><asp:Literal runat="server" ID="btnNextItem"/></td>
            </tr></table>
        </div>
        </td>
    </tr>
    <tr>
        <td>
        <table>
        <tr>
        <td valign="top">
            <asp:Panel id="pnlGrid" runat="server">
                <span style="display:inline;"><asp:Label ID="lblUpdateStatus" runat="server" EnableViewState="False"></asp:Label></span>
                <edf:EdfItemDetailsGrid ID="edfItemDetailsGrid" runat="server"></edf:EdfItemDetailsGrid>
            </asp:Panel>
        </td>
        <td valign="top">
        <div id="divHistory" runat="server" style="margin:36px 0px 0px 20px;padding:0px 0px 0px 20px;position:fixed;top:300px;border:solid 1px red;" >
            <asp:Literal ID="litHistoryTable" runat="server"></asp:Literal>
        </div>
        </td>
        </tr>
        </table>
        </td>
    </tr>
</table>
<telerik:RadScriptBlock ID="scriptBlock" runat="server">
    <script type="text/javascript">
        // Prevent MS Ajax from changing scroll position after ajax postback.
        function scrollTo(x,y) {}
        function EdfGrid_InitializeLayoutHandler(gridName)
        {   
            //If the page is redirecting as a result of an ajax event, no need to set the UI.
            if(itemViewEx2Redirecting == true) return;
        }
          
        function EdfGrid_ColumnResizeHandler(oGrid, eventArgs)
        {   
            Refresh('<%=pnlGrid.UniqueID%>', "ColumnResize$"+eventArgs.get_gridColumn().get_element().offsetWidth+"$"+eventArgs.get_gridColumn().get_uniqueName());
        }    
  
        function Refresh(target, arg)
        {
            var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
            if (ajaxManager) {
                if (target == null) {
                    ajaxManager.ajaxRequest(arg);
                }
                else {
                    ajaxManager.ajaxRequestWithTarget(target, arg);
                }
            }
        }
  
        function GetItem(direction) {
            Refresh('<%=divPrevNext.UniqueID%>', direction);
        }
    </script>
</telerik:RadScriptBlock>

The literals btnPrevItem and btnNextItem are merely anchors that are set in the code-behind to call the javascript function GetItem() with a direction of 'prev' or 'next'.  The literal litTitle merely displays the item number of the currently selected item.  edfItemDetailsGrid inside pnlGrid is a user control that contains a RadGrid.  The grid displays current and previous values for the currently selected item, such as UPC, description, price, etc.  The rows represent each of the item's data fields, and there are 4 columns: field name, current value, most-recent previous value, and date-of-change.  The litHistoryTable literal will show a table of all previous values for the selected row of the grid (i.e. the selected data field of the item).

Almost all of this works beautifully.  If I update any of the controls in divHomeControls, it updates the controls in divNextPrev, pnlGrid, and divHistory.  If I click on any row in the grid defined inside pnlGrid, it updates the literal control in divHistory correctly.  However, if I click on the next or previous buttons inside divNextPrev, it updates the grid inside pnlGrid correctly, but it does not update the literal control in divHistory.  Inside my Visual Studio debugging session, I can open the rendered page and see the correct, updated html for the rendered page, but in the browser, I see the previous contents of the literal control.

I have tried several different things to fix this, without any success.

I have tried changing divHistory to a asp:Panel.  I've tried changing it to a telerik:RadAjaxPanel.

I've tried removing divHistory altogether, and putting my literal control inside pnlGrid.

I've tried manually deleting the contents of divHistory just before doing the ajax call, by changing my client-side GetItem() function to look like this:

function GetItem(direction) { 
    var divHistory = document.getElementById("<%= divHistory.ClientID %>"); 
    if (divHistory) 
    {   
        divHistory.innerHtml = ""; 
        divHistory.innerText = ""; 
        divHistory.textContent = ""; 
    
    Refresh('<%=divPrevNext.UniqueID%>', direction); 

In the above function, I've tried changing the
 Refresh('<%=divPrevNext.UniqueID%>', direction); 
to:
Refresh('<%=divHomeControls.UniqueID%>', direction); 

Nothing works.  In each case, when I look at the html for the rendered page in the visual studio debugging session, I see the correct html:

<div id="ctl00_ContentPlaceHolderMain_divHistory" style="margin:36px 0px 0px 20px;padding:0px 0px 0px 20px;position:fixed;top:300px;border:solid 1px red;left:584px;">
<table border="0" cellpadding="4" cellspacing="4">
<thead>
<th align="center" colspan="3">UCC Change History</th></thead>
<thead><th align="center" >Date of Change</th>
<th align="center" >Active Value</th><th align="center" >Previous Value</th>
</thead>
<tbody>
<tr>
<td colspan="3" align="center" >There is no history for this field.</td>
</tr>
</tbody>
</table>
</div>

But in the browser window, I see the data from the previous rendering.

Can anybody tell me what is going on and how I can fix this?

Thanks and regards,
Steve
Steve
Top achievements
Rank 1
 answered on 29 Feb 2012
1 answer
95 views
I have a Context Menu attached to my RadGrid.
When I click on an Item in the Context Menu , It should navigate me to another page.

On first click it does not work , on subsequent clicks it does work.
Is there a solution to this?


Kate
Telerik team
 answered on 29 Feb 2012
7 answers
686 views
Hi
I have an aspx page with two datetimepickers. Wehn I select the calendar icon in Safari Mobile the popups do not appear at all. They appear in every other browser. Is there somewhere obvious I should be doing for Safari Mobile that I don't know about
cheers
Michael
Rumen
Telerik team
 answered on 29 Feb 2012
1 answer
100 views
I have used example of grid virtual scrolling with client-side binding from this website. My RadGrid is disappearing for sometime whenever I pull the scroll down but come back to normal in 1 or 2 secs. Rest of the behaviour is fine except my grid disappears to fetch the data.

Below is my aspx page:
<%@ Page Title="" Language="C#" MasterPageFile="~/Secure/Secure.Master" AutoEventWireup="true"CodeBehind="~/App_code/CSCode/DueForDispose.aspx.cs" Inherits="CSAuctionUI.Units.DueForDispose" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true">
    </telerik:RadScriptManager>
  <telerik:RadAjaxLoadingPanel ID="LoadingPanel" runat="server"></telerik:RadAjaxLoadingPanel>
      
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
  
        <script type="text/javascript">
        //<![CDATA[
  
            function pageLoad(sender, args) {
                toggleLoadingPanel("<%= RadGrid1.ClientID %>", true);
            }
  
            function showLoadingPanel(sender, args) {
                toggleLoadingPanel(sender.get_id(), true);
            }
  
            function hideLoadingPanel(sender, args) {
                toggleLoadingPanel(sender.get_id(), false);
            }
  
            function toggleLoadingPanel(elementId, show) {
                var loadingPanel = $find("<%=LoadingPanel.ClientID %>");
                if (show) {
                    loadingPanel.show(elementId);
                }
                else {
                    loadingPanel.hide(elementId);
                }
            }
  
            function handleScrolling(sender, args) {
                //check if the items are scrolled to bottom and get additional items
                if (args.get_isOnBottom()) {
                    var master = sender.get_masterTableView();
                    if (master.get_pageSize() < master.get_virtualItemCount()) {
                        //changing page size causes automatic rebind
                        master.set_pageSize(master.get_pageSize() + 20);
                    }
                }
            }
            //]]>
  
        </script>
  
    </telerik:RadCodeBlock>
  
  
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" PageSize="20" 
        CellSpacing="0" GridLines="None" Skin="Office2007">
        <PagerStyle Visible="false" />
        <MasterTableView TableLayout="Fixed">
            <Columns>
                <telerik:GridBoundColumn DataField="Sno" />
                <telerik:GridBoundColumn DataField="Unit_gkey" />
                <telerik:GridBoundColumn DataField="Unit_nbr"  />
                <telerik:GridBoundColumn DataField="Pkey"/>
                <telerik:GridBoundColumn DataField="Last_notice_sent" DataFormatString="{0:d}" />
                <telerik:GridBoundColumn DataField="Last_notice_id_sent" />
                <telerik:GridBoundColumn DataField="Category"/>
                <telerik:GridBoundColumn DataField="Bl_nbr" />
                <telerik:GridBoundColumn DataField="Ib_carrier"/>
            </Columns>
        </MasterTableView>
        <ClientSettings>
            <Scrolling AllowScroll="true" UseStaticHeaders="true"/>
            <ClientEvents 
                OnScroll="handleScrolling" 
                OnCommand="showLoadingPanel"
                OnDataBound="hideLoadingPanel" />
            <DataBinding Location="DueForDispose.aspx" SelectMethod="GetBl" SelectCountMethod="GetBlCount"
                StartRowIndexParameterName="startRowIndex" MaximumRowsParameterName="maxRows" />
        </ClientSettings>
    </telerik:RadGrid>
      
       
  
    <telerik:RadAjaxManager OnAjaxRequest="RadAjaxManager1_AjaxRequest" DefaultLoadingPanelID="LoadingPanel" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" 
                        LoadingPanelID="LoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
      
       
  
</asp:Content>

Below is my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using Telerik.Web;
using System.Web.Services;
using Oracle.DataAccess.Client;
using PICT.Auction.DAL;
using System.Data;
  
namespace CSAuctionUI.Units
{
    public partial class DueForDispose : System.Web.UI.Page
    {
  
       
        protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
        {
            if (e.Argument == "Rebind")
            {
                RadGrid1.MasterTableView.SortExpressions.Clear();
                RadGrid1.MasterTableView.GroupByExpressions.Clear();
                Response.Redirect(@"~/Secure/CustomerSupport/Auction/Units/DueForDispose.aspx");
                  
            }
        }
         
       
        [WebMethod]
        public static int GetBlCount()
        {
            return 200;
        
  
          
        [WebMethod]
        public static IEnumerable<Unit> GetBl(int startRowIndex, int maxRows)
        {
            string select = @"SELECT * FROM ( SELECT ROW_NUMBER() OVER (ORDER BY PKEY) AS ROW_NUMBER, auc.UNIT_GKEY,U.ID UNIT_NBR, AUC.PKEY, 
  
auc.LAST_NOTICE_SENT,AUC.LAST_NOTICE_ID_SENT ,DECODE(U.CATEGORY,'IMPRT','IMPORT') CATEGORY ,U.BL_NBR,U.IB_CARRIER FROM PACCS.CS_AUC_DES_UNITS 
  
auc,PACCS.VUE_AUC_DES_UNITS U where AUC.UNIT_GKEY = U.GKEY and AUC.DISPOSE_STATE ='DUE' and U.BL_NBR is not null ) foo WHERE ROW_NUMBER > :StartIndex AND 
  
ROW_NUMBER <= :EndIndex";
  
            Dictionary<string, object> parameters = new Dictionary<string, object>();
            parameters["StartIndex"] = Math.Max(startRowIndex, 0);
            parameters["EndIndex"] = Math.Max(startRowIndex + maxRows, maxRows);
            DBCommand cmd = new DBCommand();
  
            DataTable data = ExecuteSelect(select, parameters, cmd.ConnSettings.ConnectionString);
  
            foreach (DataRow row in data.Rows)
            {
                Unit u = new Unit();
                u.Sno = long.Parse(row["ROW_NUMBER"].ToString());
                u.Unit_gkey =long.Parse(row["UNIT_GKEY"].ToString()) ;
                u.Unit_nbr = row["UNIT_NBR"].ToString();
                u.Pkey = long.Parse(row["PKEY"].ToString());
                if(!string.IsNullOrEmpty(row["LAST_NOTICE_SENT"].ToString()))
                u.Last_notice_sent = DateTime.Parse(row["LAST_NOTICE_SENT"].ToString());
                u.Last_notice_id_sent = row["LAST_NOTICE_ID_SENT"].ToString();
                u.Category = row["CATEGORY"].ToString();
                u.Bl_nbr = row["BL_NBR"].ToString();
                u.Ib_carrier = row["IB_CARRIER"].ToString();
                yield return u;
            }
        }
  
        private static  DataTable ExecuteSelect(string selectCommand, Dictionary<string, object> parameters, string connectionString)
        {
            OracleConnection MyOraConnection = new OracleConnection(connectionString);
            OracleDataAdapter MyOraDataAdapter = new OracleDataAdapter();
  
            MyOraDataAdapter.SelectCommand = new OracleCommand(selectCommand, MyOraConnection);
              
            foreach (KeyValuePair<string, object> pair in parameters)
            {
                MyOraDataAdapter.SelectCommand.Parameters.Add(new OracleParameter(pair.Key, pair.Value));
            }
  
            DataTable data = new DataTable();
            MyOraConnection.Open();
  
            try
            {
                MyOraDataAdapter.Fill(data);
            }
  
            finally
            {
                MyOraConnection.Close();
            }
  
            return data;
        }
    public class Unit
    {
        private long sno;
        private long unit_gkey;
        private string unit_nbr ;
        private long pkey ;
        private DateTime last_notice_sent ;
        private string last_notice_id_sent ;
        private  string category ;
        private string bl_nbr ;
        private string ib_carrier;
  
        public long Sno
        {
            get { return sno; }
            set { sno = value; }
        }
        public long Unit_gkey
        {
            get { return unit_gkey; }
            set { unit_gkey = value; }
        }
        public string Unit_nbr
        {
            get { return unit_nbr; }
            set { unit_nbr = value; }
        }
        public long Pkey
        {
            get { return pkey; }
            set { pkey = value; }
        }
        public DateTime Last_notice_sent
        {
            get { return last_notice_sent; }
            set { last_notice_sent = value; }
        }
        public string Last_notice_id_sent
        {
            get { return last_notice_id_sent; }
            set { last_notice_id_sent = value; }
        }
        public string Category
        {
            get {return category; }
            set { category = value; }
        }
        public string Bl_nbr
        {
            get {return bl_nbr; }
            set { bl_nbr = value; }
        }
        public string Ib_carrier
        {
            get { return ib_carrier; }
            set { ib_carrier = value; }
        }
          
    }
  
    }
}

Thanks for reading my question.
Radoslav
Telerik team
 answered on 29 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?