Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
150 views
Hello All ,

While assigning the DataField ( Date Time Object from Data Source ) how just i can format the date , it takes up the default style ( as store in database )

here is my code excerpt

                        oBoundColumn = new GridBoundColumn();
                        oBoundColumn.DataType = Type.GetType("System.DateTime");
                        oBoundColumn.UniqueName = "EndDate";
                        oBoundColumn.HeaderText = "End Date";
                        oBoundColumn.DataField = "EndDate";

Thanks
-Prince



Shinu
Top achievements
Rank 2
 answered on 29 Apr 2010
2 answers
118 views
I want to have a validator trigger an error when SOME (any) value exists in the panel.  If everything is good, the webservice just returns "";

How can I get that?  get_html(), get_value(), html() dont seem to work or be right, and the documentation is pretty gimped for the RadXmlHttpPanel.
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 29 Apr 2010
1 answer
480 views
i am trying to develop a custom tree view web part  using telerik Rad controls in visual studio 2008 and iam getting fallowing warnings


Warning   1   Could not resolve this reference. Could not locate the assembly "Telerik.Web.UI, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.   SFALibrary_DragnDrop

Warning   2   The referenced component 'Telerik.Web.UI' could not be found.    


in my assembly i hav differnt version of Telerik.Web.UI.

how can i replace the version?

any thoughts?

sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 29 Apr 2010
1 answer
133 views
I want to hide the textbox and button after a file is uploaded so that the only thing showing is the filename and remove link. This is going to be in every row of a table and the user can only upload one file per row. Is there a way to do this?
Paul
Top achievements
Rank 1
 answered on 29 Apr 2010
1 answer
198 views
Hi all.  I'm using the .NET 2.0 version of the 2010Q1 RadNumericTextBox (rendering with IE 8).  Functionally, it works great, but I want to completely remove theming from it so it matches my CSS file.  I've tried setting the EnableTheming property to false, but that didn't seem to have an effect.  It's still getting the RadInput_Windows7 and riTextBox classes assigned to it.  Any ideas?
Jamie
Top achievements
Rank 1
 answered on 28 Apr 2010
0 answers
84 views
I want to use the PanelBar in the Master Page in an update panel in order not to reload the panelBar on each postback

(as described for e.g. in http://www.asp.net/ajax/documentation/live/tutorials/UsingUpdatePanelMasterPages.aspx)
The panelbar is bound to a sitenodemap datasource with navigateurls.

(Note: I don't want to use the Splitter control or iFrames)

How can i do this?
kostas palamidaras
Top achievements
Rank 1
 asked on 28 Apr 2010
2 answers
132 views
Hi

I'm not sure this is possible but here's what I'm trying to do:

I would like to have the user enter 8 digits.  On the OnKeyUp event the value is sent to the db and brings back values for three other RadTextboxes.  I have done this with the ComboBox...just not sure where to start with the RadNumbericTextBox.  Also, I am using  an update panel but not a grid.

Thanks
Larry

It seems like the RadInput_TextChanged event will work for me.  Let me know if you think there's a better way.
Larry Stewart
Top achievements
Rank 1
 answered on 28 Apr 2010
1 answer
164 views
Hi Telerik experts,

I want to export my hierarchical radGrid to Excel and keep the expand/collpase functionalities (like group and outline )in the excel, which means after I export, when I open the excel file, I can expand/collpase the rows (masterTable in the radGrid). I searched a lot, haven't figured out a way to do it. Can you help me out? Thanks.
Daniel
Telerik team
 answered on 28 Apr 2010
4 answers
382 views

Hello;

I’ve tried to implement something similar on your demo sitefor radxmlhttp employee lookup as a webpart on sharepoint.

My problem is that once I run the "sort" or the "paging"  function(this is ajaxified, just like it is on the site), then the ClientEvents-OnRowSelected Doesn’t fire anymore. However as long as I dont use those functions, the event fires perfectly and calls the javascript method. This works perfectly if I deploythis as a web application, but as a webpart in sharepoint I’m having thisissue.  Are there any known cases of thishappening? 

Here is the code


<%@ Control Language="C#" AutoEventWireup="true" Codebehind="lookup2.ascx.cs" Inherits="namespace1.lookup2, namespace1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=55fefdf725d04c54" %> 
<%@ Register Assembly="Telerik.Web.UI, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> 
    
     
    <script type="text/javascript"> 
            function rowSelected(sender, args) 
            { 
            
                var key = args.getDataKeyValue("Loginname");                 
                var panel = $find("<%=RadXmlHttpPanel1.ClientID %>"); 
                panel.set_value(key); 
            } 
    </script> 
</telerik:RadScriptBlock> 
<style type="text/css"> 
        .divContainer 
        { 
            background: url('_layouts\images\snps\main_back.png') no-repeat; 
            width: 100%; 
            height: 400px; 
            position: relative; 
        } 
        .divGrid, .divXmlHttpPanel 
        { 
            position: absolute; 
            top: 86px; 
        } 
        .divXmlHttpPanel 
        { 
            top: 132px; 
            left: 390px; 
        } 
        .rgInfoPart 
        { 
            display: none !important; 
        } 
        .title 
        { 
            font-size: 12px; 
            color: #606060; 
        } 
        .info 
        { 
            color: black; 
            font-size: 12px; 
        } 
        .BODY { 
            FONT-SIZE: 62.5%;    
             
                FONT-FAMILY: "segoe ui",arial,sans-serif} 
    </style> 
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Hay" /> 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
            <AjaxSettings> 
                <telerik:AjaxSetting  AjaxControlID="RadGrid1"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl  ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadAjaxLoadingPanel  ID="RadAjaxLoadingPanel1" runat="server" Skin="Hay"> 
        </telerik:RadAjaxLoadingPanel> 
<table> 
    <tr> 
        <td> 
            Search by first name: 
        </td> 
        <td> 
            <telerik:RadTextBox ID="RadTextBox1" runat="server"> 
            </telerik:RadTextBox> 
        </td> 
        <td> 
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Text="Button" /> 
        </td> 
    </tr> 
    <tr> 
        <td> 
            Search by last name: 
        </td> 
        <td> 
            <telerik:RadTextBox ID="RadTextBox2" runat="server"> 
            </telerik:RadTextBox> 
        </td> 
        <td> 
            <asp:Button ID="Button2" runat="server" Text="Button" OnClick="Button2_Click" /> 
        </td> 
    </tr> 
    <tr> 
        <td> 
            Search by login name: 
        </td> 
        <td> 
            <telerik:RadTextBox ID="RadTextBox3" runat="server"> 
            </telerik:RadTextBox> 
        </td> 
        <td> 
            <asp:Button ID="Button3" runat="server" Text="Button" OnClick="Button3_Click" /> 
        </td> 
    </tr> 
</table> 
<div class="divContainer"> 
    <div class="divGrid">         
                <telerik:RadGrid ID="RadGrid1" Skin="Hay" OnNeedDataSource="RadGrid1_NeedDataSource" 
                    Width="370px" AllowPaging="true"  PageSize="10" AllowSorting="True" runat="server" 
                    AutoGenerateColumns="false" GridLines="None"> 
                    <MasterTableView ClientDataKeyNames="Loginname" Width="100%" Summary="RadGrid table"> 
                        <Columns> 
                            <telerik:GridBoundColumn DataField="Loginname" Visible="false"> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn HeaderText="FirstName" DataField="FirstName" UniqueName="FirstName"> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn HeaderText="LastName" DataField="LastName" UniqueName="LastName"> 
                            </telerik:GridBoundColumn> 
                        </Columns> 
                    </MasterTableView> 
                    <PagerStyle Mode="NumericPages" />                    
                    <ClientSettings EnableRowHoverStyle="true" Selecting-AllowRowSelect="true" ClientEvents-OnRowSelected="rowSelected"> 
                    </ClientSettings> 
                </telerik:RadGrid>                
    </div> 
    <div class="divXmlHttpPanel"> 
        <telerik:RadXmlHttpPanel  ID="RadXmlHttpPanel1" runat="server" OnServiceRequest="XmlHttpPanel_ServiceRequest" 
            RenderMode="Block"> 
            <asp:Repeater ID="Repeater1" runat="server"> 
                <ItemTemplate> 
                    <div style="float: left; border: 1px solid #999999; margin-right: 15px; width: 180px; 
                        height: 220px; background-position: center; background-repeat: no-repeat; background-image: url('<%# Eval("Loginname", "http://lookup/CCMCIP/moc/photograb2.cgi?userid={0}") %>');"> 
                    </div> 
                    <div style="float: left;"> 
                        <br /> 
                        <br /> 
                        <br /> 
                        <div style="text-align: center;"> 
                            <asp:Label CssClass="info" ID="Name" runat="server" Style="font-size: x-large;"> 
                                    <%# Eval("FirstName")%>&nbsp;<%# Eval("LastName")%></asp:Label><br /> 
                            <asp:Label CssClass="info" ID="Label1" runat="server"><%# Eval("PersonnelTitle")%></asp:Label> 
                        </div> 
                        <br /> 
                        <br /> 
                        <div style="float: left; text-align: right;"> 
                            <span class="title">Login Name:</span> 
                            <br /> 
                            <br /> 
                            <span class="title">Phone:</span> 
                            <br /> 
                            <br /> 
                            <span class="title">Mobile:</span> 
                            <br /> 
                            <br /> 
                            <span class="title">Email:</span> 
                            <br /> 
                            <br /> 
                        </div> 
                        <div style="float: left; margin-left: 5px;"> 
                            <asp:Label CssClass="info" ID="cName" runat="server">&nbsp;<%# Eval("Loginname")%></asp:Label> 
                            <br /> 
                            <br /> 
                            <asp:Label CssClass="info" ID="Label2" runat="server">&nbsp;<%# Eval("Phone")%></asp:Label> 
                            <br /> 
                            <br /> 
                            <asp:Label CssClass="info" ID="Label3" runat="server">&nbsp;<%# Eval("Mobile")%></asp:Label> 
                            <br /> 
                            <br /> 
                            <asp:Label CssClass="info" ID="Label4" runat="server">&nbsp;<%# Eval("Email")%></asp:Label> 
                            <br /> 
                            <br /> 
                            <a href="<%# Eval("LoginName", "http://lookup/lookup/ph-org.cgi?query=email={0}") %>" 
                                target="_blank">More Detail...</a> 
                        </div> 
                    </div> 
                </ItemTemplate> 
            </asp:Repeater> 
        </telerik:RadXmlHttpPanel> 
    </div> 
</div> 
 

Thanks

Charles

Charles Faramarzirad
Top achievements
Rank 1
 answered on 28 Apr 2010
2 answers
75 views
This is the problem I am seeing, specifically with firefox - Working fine in IE8.

Scenario:
Basically I have bunch of windows (each window is displayed as maximized) and only one window is display at a time.
We have some buttons at the top of the page, to open the corresponding window. For instance:

Window1 , Window 2 , ...

when Window1 is clicked, it display Window 1 and when window2 is clicked, it ....All  of this is handled in the client side javascript code...

Code:
    

// windowName is name of the window to be displayed
   function displayWindow (windowName)  {
   var manager = GetRadWindowManager();
    
    var currentActiveWindow = manager.getActiveWindow();
    var current =  manager.GetWindowByName(
windowName
);


    // allWindows is the array that contains all window names    
       
    for(counter =0; counter < allWindows.length;counter++)
    {
        if(allWindows[counter] != 
windowName
)

        {
            manager.GetWindowByName(allWindows[counter]).hide();    // << Problem occurs here
        }

    }
      
    
    current.show();
    current.maximize();


Problem:

The problem seems to occur on the line I have indicated in the code. So for example, if Window1 is currently being displayed and I switch to window2, when it tries to hide window1, I see a little flicker in firefox, where I see a glimpse of window2 at the bottom and then its shown as maximized..


Raheel Ashraf
Top achievements
Rank 1
 answered on 28 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?