Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
176 views
hi,

I have a grid that gets it's data from oracle table, using stored procedures.

protected function fixdate(byref dt as datatable) as datatable
for each myrow in dt.rows
  try
    myrow("send_date") = cdate(myow("send_date")).tostring("dd/MM/yyyy")
catch ex as exception
...
end try
next
return dt

when I debug - everything works fine, but when I open the grid in my server application (at run time)  - the date change format to "mm/dd/yyyy"


that's the grid code:

<telerik:RadGrid Skin="innovation" EnableEmbeddedSkins="false" ID="RadGrid1" 
              dir="rtl" HeaderStyle-ForeColor="White" AllowFilteringByColumn="True"  
    AllowSorting="True" AllowPaging="True"  BorderColor="#74ABAE" BackColor="White"
    BorderWidth="2px" runat="server" HeaderStyle-Font-Size="Small"  ItemStyle-Font-Size="Small"
    AlternatingItemStyle-Font-Size="Small" ItemStyle-BackColor="White" ItemStyle-ForeColor="Black"
     PageSize="7" AutoGenerateColumns="False" PagerStyle-Font-Size="Small" 
     AlternatingItemStyle-ForeColor="Black"
   Culture="Hebrew" GridLines="Vertical" Width="666px" 
      style="margin-right: 30px"
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Black"
    </HeaderContextMenu
        <ItemStyle BackColor="White" Font-Size="Small" ForeColor="Black" /> 
    <PagerStyle mode="NumericPages" ShowPagerText="false"></PagerStyle
    <MasterTableView
    <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings
           <Columns
                 <telerik:GridBoundColumn CurrentFilterFunction="Contains"
                     DataField="IDEA_CODE" UniqueName="IDEA_CODE" HeaderText="ideanum"
                      AutoPostBackOnFilter="true" DataType="System.Int32">  
                    </telerik:GridBoundColumn
                   <telerik:GridBoundColumn UniqueName="LINK" DataField="LINK" HeaderText="" 
                    DataType="System.String" Display="false">  
                    </telerik:GridBoundColumn
                 <telerik:GridBoundColumn DataField="ROWNUM" HeaderText="#" Visible="false"
                 AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                    DataType="System.Int32"
                </telerik:GridBoundColumn
                <telerik:GridBoundColumn DataField="SENDER_ID" HeaderText="id"
                UniqueName="SENDER_ID" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                    DataType="System.String"
                </telerik:GridBoundColumn
                <telerik:GridBoundColumn DataField="FULLNAME" HeaderText="namef"
                AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                    DataType="System.String"
                </telerik:GridBoundColumn
                <telerik:GridBoundColumn DataField="SUBJECT" HeaderText="sub"
                AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                    DataType="System.String"
                </telerik:GridBoundColumn
                 <telerik:GridBoundColumn DataField="DESCRIPTION" HeaderText="status"
                 AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                    DataType="System.String"
                </telerik:GridBoundColumn
                <telerik:GridBoundColumn DataField="SEND_DATE" HeaderText="sdate"
                AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                    DataType="System.DateTime" DataFormatString="{0:dd/MM/yy}"
                </telerik:GridBoundColumn>                  
                  <telerik:GridImageColumn HeaderText="comments" UniqueName="FBIMG"
                </telerik:GridImageColumn>     
           
     </Columns
........

can you tell me what causing that problem?

kind regards, Dana

 

 

DANA
Top achievements
Rank 1
Veteran
 answered on 01 Feb 2012
2 answers
124 views
Hi
I've found a problem while using RadAjaxManager, a RadButton registered in its ajax setting to update an always visible asp.net  panel containing an asp.net placeholder aimed to dinamically load an.ascx control (pnlItemDetails):

This is in a Content page:

<telerik:AjaxSetting AjaxControlID="BtnSelectItem">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="pnlProjectDetails" />
        <telerik:AjaxUpdatedControl ControlID="PnlLocalMenu" />
        <telerik:AjaxUpdatedControl ControlID="pnlItemDetails" />
        <telerik:AjaxUpdatedControl ControlID="navBarFader" />
    </UpdatedControls>
</telerik:AjaxSetting>

the panel with the place holder

<asp:Panel ID="pnlSelectedItem" runat="server">
    <asp:Panel ID="pnlItemDetails" CssClass="ProjectDetails" runat="server">
        <asp:PlaceHolder ID="phItemDetails" runat="server"></asp:PlaceHolder>
    </asp:Panel>
</asp:Panel>

All things works as expected until a browser refresh is invoked (by F5 or the 'File Download warning' bar of Internet Explorer).
After the page refresh, if the button is clicked, all server events are executed  but at the client side, after the rendering phase, the following javascript error is triggered:

Sys.InvalidOperationException: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ctl00_MainContent_pnlItemDetailsPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

 Now, I know that this problem is often related to the update of conditionally visible controls, but I have a container asp.net Panel that is always visible and this behaviour is only present after F5 refresh triggering.

It'seems that the F5 refresh fail somehow to get the full DOM and update panels to refresh

Please, I need some help in finding the source of this issue.

Thank You in advance,
Federico
Abdullah
Top achievements
Rank 1
 answered on 01 Feb 2012
1 answer
94 views
Hi, 

We're having issues with a ComboBox that won't fire its SelectedIndexChanged event. 

So I started doing some tests by first creating a new dummy page with nothing on it and confirming that the ComboBox does in fact fire it's SelectedIndexChanged event, which it does. This is a page with a RadComboBox, RadGrid, both of which make use of ObjectDataSources to populate their data. The RadGrid relies on a selection in the RadComboBox to populate. 

My project page on the other makes use of nested master pages, with a script manager located in the Base.master. 
The page itself has a number of controls including the RadComboBox and RadGrid. 

Here are the results, which are disturbing to say the least: 
1. Running my test page directly using IIS 7 works fine
2. Running my test page in the Asp.net Development Server (in VS2010) works fine. 
3. Running my project page in the Asp.net Development server works fine. 
4. Running my project page in IIS7 fails. No event firing for SelectedIndexChanged event. 

How on earth is this even remotely possible? 

Regards,
Jacques
Dimitar Terziev
Telerik team
 answered on 01 Feb 2012
2 answers
219 views
Hi everyone,
                I want to add any control dynamically in panel or layout.Can any one told me in which panel or layout i can add control dynamically.
I tried to add checkbox in panel(RadXmlHttpPanel also).
protected void Page_Load(object sender, EventArgs e)
    {
 
    }
    protected void RadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
    {
        lblContent.Text = "u clicked " + e.Item.Text;
    }
    protected void RadToolBar1_ButtonClick(object sender, Telerik.Web.UI.RadToolBarEventArgs e)
    {
        lblContent.Text = "u clicked " + e.Item.Text;
    }
    protected void RadTabStrip1_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
    {
        lblContent.Text = "u clicked " + e.Tab.Text;
    }
    protected void RadButton_addControl_Click(object sender, EventArgs e)
    {
        int i;
        for (i = 0; i < 4; i++)
        {
            CheckBox ch = new CheckBox();
            ch.ID = "ch" + i.ToString();
            this.form1.Controls.Add(ch);
        }
    }
 
in xml
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <style type="text/css" media="screen">
        #content
        {
         
        height: 165px;
        width: 500px;
        margin-left: 75px;
        vertical-align: top;
        }
        #tabs
        {
        margin-left: 75px;
        width: 500px;
        vertical-align: bottom;
        }
    </style>
</head>
<body style="height: 437px">
    <form id="form1" runat="server">
    <asp:ScriptManager ID = "ScriptManager1" runat = "server"></asp:ScriptManager>
    <div>
    <telerik:RadMenu ID="RadMenu1" Runat="server" style="top: 0px; left: 0px"
        onitemclick="RadMenu1_ItemClick">
        <Items>
            <telerik:RadMenuItem runat="server" Text="Edit">
                <Items>
                    <telerik:RadMenuItem runat="server" Text="copy">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" Text="cut">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" Text="paste">
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" Text="print">
            </telerik:RadMenuItem>
        </Items>
    </telerik:RadMenu>
    </div>
    <br />
    <br />
    <div>
    <telerik:RadToolBar ID="RadToolBar1" Runat="server"
        onbuttonclick="RadToolBar1_ButtonClick" Orientation="Vertical" Width="70px">
        <Items>
            <telerik:RadToolBarDropDown runat="server" Text="edit">
                <Buttons>
                    <telerik:RadToolBarButton runat="server" Text="copy">
                    </telerik:RadToolBarButton>
                    <telerik:RadToolBarButton runat="server" Text="cut">
                    </telerik:RadToolBarButton>
                    <telerik:RadToolBarButton runat="server" Text="paste">
                    </telerik:RadToolBarButton>
                </Buttons>
            </telerik:RadToolBarDropDown>
            <telerik:RadToolBarSplitButton runat="server" Text="print">
            </telerik:RadToolBarSplitButton>
        </Items>
    </telerik:RadToolBar>
    </div>
     
    <br />
    <br />
    <div id="content" runat="server">
        <asp:Label ID="lblContent" runat="server" Text="Label"></asp:Label>
 
        <div id="tabs" runat="server">
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Orientation="HorizontalBottom"
                Skin="WebBlue" OnTabClick="RadTabStrip1_TabClick" SelectedIndex="0" Width="500px">
            </telerik:RadTabStrip>
        </div>
    </div>
    <telerik:RadButton ID="RadButton_addControl" runat="server"
            onclick="RadButton_addControl_Click" Text="AddControl">
          </telerik:RadButton>
    </form>
    </body>
</html>


This is working for first time but when i am trying do any other operation the check box is removed from the panel.
How i will add the control ?
Can any one give a simple example ?

thanks
bibhu
Bibhukalyana
Top achievements
Rank 1
 answered on 01 Feb 2012
2 answers
139 views
Hi

I want to popup another aspx page for appointment insertion and appointment updation instead of the template used for the purpose.
How can I acheive the requirement?

Thnks and Regards
Chinnu :)
chinnu
Top achievements
Rank 1
 answered on 01 Feb 2012
1 answer
115 views
I would like to use the RadSChedulerRecurrenceEditor control in an MVC view (ASPX). Is this possible? If so, are there any examples available?
Peter
Telerik team
 answered on 01 Feb 2012
1 answer
500 views
if you know both in c# and javascript please tell me its very urgent......
llike i have values in minute means like 15 in minutes  now i want to convert in to     00:15:00  time format

444444- convert it an to time format please do this for me....
44444 minutes int to 44:60:00
 i dnt know correct conversion of 44444 in to time format please consider this as example.....
Slav
Telerik team
 answered on 01 Feb 2012
0 answers
63 views
I am Useing .NET4.0 version

I had a page with rad controls like comboboxes,buttons and radGrid. i ajaxify these controls through AjaxManager. when i click edit in radGrid colum,the values should display in above comboboxes and textboxes with showing progressbar. but the problem is comboboxes are not populate values after showing progressbar so plz help me

thaks in advance
Chalam
Top achievements
Rank 1
 asked on 01 Feb 2012
1 answer
153 views
hi 
i have an ajaxified RadGrid Control, pop up edit template.

after each post back loading panel viewed on the RadGrid which is the expected behavior but in Google Chrome loading panel displayed in non accurate position, I've browsed the demos on Telerik web site and i get the same thing, is there any way to set the loading panel div in it's position in the case of Google Chrome browser ?? 

is it a browser issue ?

thank you 
rasheed samawi
Vasil
Telerik team
 answered on 01 Feb 2012
3 answers
127 views
hi 
i have an Ajaxified RadGrid control, every thing is cool, but the loading panel displays in wrong position just in Google chrome browser

thank you 
Vasil
Telerik team
 answered on 01 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?