Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
372 views
Hai,

If I click on a date, the calendar will return the selected date correctly. But if I click on the same date once more it will return the date as '01/01/0001' . But I want the selected date when I click on a date. Plz give the solution . It is an urgent one.

Thanks & regards,
Regeesh Joseph
Maria Ilieva
Telerik team
 answered on 29 Sep 2010
1 answer
50 views
Not sure what information would be helpful here. particular sections of webconfig? if needed i can post code/webconfig sections after being sanitized. i have a feeling its something stupid i missed but i cant figure out what it is. help would be appreciated!
Evgenia
Telerik team
 answered on 29 Sep 2010
2 answers
96 views
Hi all,

I have a TagCloud which number of its items are increasing every day based on an algorithm.
I would like to set a fixed width and a dynamic height for this TagCloud which should be increased automatically based on the number of existing items.
How can I do this?

Cheers,
Hamed
Hamed
Top achievements
Rank 1
 answered on 29 Sep 2010
1 answer
92 views
I'm having a problem with displaying a nested grid in safari, it is working in firefox but not safari. I'm attaching a screenshot from both safari and firefox to show what is happening.

Any ideas?
Dimo
Telerik team
 answered on 29 Sep 2010
3 answers
61 views
Hi Team,

I am using radcalendar control multi-month view,

I want the month names as vertical orientation same as how we can show column headers vertically,

or set the header(month name) visible as false,

how can i do this?

Regards.
Dimo
Telerik team
 answered on 29 Sep 2010
3 answers
228 views
I have a number of areas in my application where I have divs containing a radtextbox or radcombobox. In IE 8 and Firefox everything seems to be fine, visually. If I run the application in IE compatibility mode (which for some reason is what my IIS 7 server is seeming to run the application as, visually) I always get a 1 pixel margin on top of each text box and below each textbox. I end up having all of these boxes appear smashed together and it's really frustrating. I believe its an inherit nature of textboxes in general in IE, and I am looking to acheive a consistent behavior regardless of combobox or textbox and regardless of browser. Any suggestions on this?

Thanks in advance!
Dimo
Telerik team
 answered on 29 Sep 2010
1 answer
124 views
Hello Everyone,

I tried the code in Retain expanded/selected state in hierarchy on rebind to save the state of grid as expanded/collapse. But I have another problem, every time I click on edit command item in detail 3 the other command item for detail 2 and master table also changes. Same goes to detail 2, every time i click on edit command item in detail 2 the command item master table also changes.

Please see the attached screenshots Before and After clicking the edit command item.

Below is my C# code for customizing the visibility of command items.
protected void gridCPDiag_ItemDataBound(object sender, Telerik.WebControls.GridItemEventArgs e)
        {
            if (e.Item is GridCommandItem && e.Item.OwnerTableView.Name == "Detail2")
            {
                GridCommandItem visitcommandItem = (GridCommandItem)e.Item;
                LinkButton visitbtnAdd = (LinkButton)visitcommandItem.FindControl("det2_btnAdd");
                LinkButton visitlnkPerformInsert = (LinkButton)visitcommandItem.FindControl("det2_lnkPerformInsert");
                LinkButton visitbtnEditSelected = (LinkButton)visitcommandItem.FindControl("det2_btnEditSelected");
                LinkButton visitbtnUpdateEdited = (LinkButton)visitcommandItem.FindControl("det2_btnUpdateEdited");
                LinkButton visitbtnCancel = (LinkButton)visitcommandItem.FindControl("det2_btnCancel");
                LinkButton visitbtnDelete = (LinkButton)visitcommandItem.FindControl("det2_btnDelete");
 
 
                if (hdnCommandName.Value == "det2_initinsert" || hdnCommandName.Value == "det2_editselected")
                {
                    visitbtnAdd.Visible = false;
                    visitbtnEditSelected.Visible = false;
                    visitbtnDelete.Visible = false;                   
                    visitbtnCancel.Visible = true;
                }
 
                if (hdnCommandName.Value == "det2_initinsert")
                {
                    visitlnkPerformInsert.Visible = true;
                }
                if (hdnCommandName.Value == "det2_editselected")
                {
                    visitbtnUpdateEdited.Visible = true;
                     
                }
 
                if (hdnCommandName.Value == "det2_performinsert" || hdnCommandName.Value == "det2_update" || hdnCommandName.Value == "det2_cancelall")
                {
                    visitbtnAdd.Visible = true;
                    visitbtnEditSelected.Visible = true;
                    visitbtnDelete.Visible = true;
                    visitlnkPerformInsert.Visible = false;
                    visitbtnUpdateEdited.Visible = false;
                    visitbtnCancel.Visible = false;
                }
 
            }
 
            if (e.Item is GridCommandItem && e.Item.OwnerTableView.Name == "Detail3")
            {
                GridCommandItem inscommandItem = (GridCommandItem)e.Item;
                LinkButton insbtnAdd = (LinkButton)inscommandItem.FindControl("det3_btnAdd");
                LinkButton inslnkPerformInsert = (LinkButton)inscommandItem.FindControl("det3_lnkPerformInsert");
                LinkButton insbtnEditSelected = (LinkButton)inscommandItem.FindControl("det3_btnEditSelected");
                LinkButton insbtnUpdateEdited = (LinkButton)inscommandItem.FindControl("det3_btnUpdateEdited");
                LinkButton insbtnCancel = (LinkButton)inscommandItem.FindControl("det3_btnCancel");
                LinkButton insbtnDelete = (LinkButton)inscommandItem.FindControl("det3_btnDelete");
 
 
                if (hdnCommandName.Value == "det3_initinsert" || hdnCommandName.Value == "det3_editselected")
                {
                    insbtnAdd.Visible = false;
                    insbtnEditSelected.Visible = false;
                    insbtnDelete.Visible = false;
                    insbtnCancel.Visible = true;
                }
 
                if (hdnCommandName.Value == "det3_initinsert")
                {
                    inslnkPerformInsert.Visible = true;
                }
                if (hdnCommandName.Value == "det3_editselected")
                {
                    insbtnUpdateEdited.Visible = true;
 
                }
 
                if (hdnCommandName.Value == "det3_performinsert" || hdnCommandName.Value == "det3_update" || hdnCommandName.Value == "det3_cancelall")
                {
                    insbtnAdd.Visible = true;
                    insbtnEditSelected.Visible = true;
                    insbtnDelete.Visible = true;
                    inslnkPerformInsert.Visible = false;
                    insbtnCancel.Visible = false;
                }
            }
        }

Please help. I would really appreciate for any response.

Thanks!
Zel
zel
Top achievements
Rank 1
 answered on 29 Sep 2010
1 answer
175 views
Hi there,

We're trying to use the RadBinaryImage control to handle the onmouseover and onmouseout events, but are in a bit of a loss in how to do so.

We have two binary images (from the database) and we want the following to occur:
  • The first one to appear as the page loads,
  • When the users hovers over it with the mouse, we want the second image to appear in the place of the first image,
  • When the second image loses focus from the mouse it should revert back to the original image.

Is there a way to achieve this without having to write the binary image to a directory beforehand?

Thanks,

Daniel
Daniel Cheney
Top achievements
Rank 1
 answered on 29 Sep 2010
2 answers
86 views
I learn that the paging method about rad.grid is load all the data to memory, so we found that just 100 thousands rows records slow server very much.we major in ERP system, and the database records often reach 10 millions and more. so the paging way provide by rad.grid will not adapt to the requirement. Does rad.grid provide the way which get just records of one page one time? It is, we can use the paging way provided by database such as ROW_NUMBER in sql server 2005. so the grid will load only one page records from the server and will not load all the records to dataset at first.
Robert Lou
Top achievements
Rank 1
 answered on 29 Sep 2010
3 answers
91 views
Hi everyone,

I am using Rad Controls v 2010.2.713.40 and have come across an issue I cannot seem to fix...I have a radAjaxPanel on a page with a radAjaxLoadingPanel and a RadScript block but when I come to validate the page I get the following error:

   1.   Error  Line 179, Column 29: character "$" is not allowed in the value of attribute "id"
              <div id="ctl07_ctl07$rapPanel">
      It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.


Here is a copy of the page that it is compaining about:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="enquiry.ascx.cs" Inherits="Promat.lang.co.uk.enquiry" %>
<telerik:RadAjaxPanel ID="rap" runat="server" Width="100%" OnAjaxRequest="rap_AjaxRequest"
    LoadingPanelID="ralp">
    <div id="enquiryWrapper">
        <div id="detailsDiv">
            <h2>
                Your Details</h2>
            <h3>
                Name:</h3>
            <p>
                <asp:TextBox ID="NameBx" runat="server"></asp:TextBox></p>
            <h3>
                Telephone:</h3>
            <p>
                <asp:TextBox ID="TelBx" runat="server"></asp:TextBox></p>
            <h3>
                Email:</h3>
            <p>
                <asp:TextBox ID="EmailBx" runat="server"></asp:TextBox></p>
        </div>
        <div id="requestDiv">
            <h2>
                Nature of your enquiry</h2>
            <textarea id="EnqTxtBx" cols="40" rows="10"></textarea>
        </div>
        <div id="submitDiv">
            <h2>
                Submit your request</h2>
            <img id="sendBtn" src="../../themes/buttons/SendBtn.png" class="clickable prodbtn"
                alt="Send" title="Submit your Enquiry" onclick="SendEnquiry()" onmouseover="javascript:this.src='../../themes/buttons/sendBtn-on.png'"
                onmouseout="javascript:this.src='./themes/buttons/sendBtn.png'" />
            <img id="cancelBtn" src="../../themes/buttons/CancelBtn.png" class="clickable prodbtn"
                alt="Cancel" title="Cancel" onclick="SlideOut(0,'top','OUT')" onmouseover="javascript:this.src='../../themes/buttons/cancelBtn-on.png'"
                onmouseout="javascript:this.src='../../themes/buttons/cancelBtn.png'" />
            <div id="EnqMessageDiv" runat="server" style="display: none;">
                <img src="../../themes/cross.png" alt="result" runat="server" id="MessageImg" style="width: 16px;
                    height: 16px;" />
                <asp:Label runat="server" ID="MessageLbl"></asp:Label>
            </div>
        </div>
    </div>
    <div id="thankyouWrapper">
        <asp:Label CssClass="brandText3_large" runat="server" ID="thanksLbl">Thankyou for your request, a member of our team will get back to you soon</asp:Label></div>
</telerik:RadAjaxPanel>
<telerik:RadScriptBlock ID="rsb" runat="server">
    <script type="text/javascript">
        function SendEnquiry()
        {
            var oAjax = <%= rap.ClientID %>;
            var txtBx = document.getElementById("EnqTxtBx");
            var EnqTxt = txtBx.value;
            oAjax.ajaxRequest("Enq|"+EnqTxt+"|");
            //slide(0,'top','OUT','1');
        }
    </script>
</telerik:RadScriptBlock>
<telerik:RadAjaxLoadingPanel ID="ralp" Runat="server" Skin="Default" Transparency="50">
</telerik:RadAjaxLoadingPanel>

As you can see, the id I have given it is rap but when the page loads the server side id has a $ inserted into it.  This doesn't happen with the other rad controls on this page nor does it happen in other projects we have to the rad ajax panels?

If you view source on one of our other projects (which has the same page but done on a different version [2009.2.701.35]) you can see it has been rendered like below:
<div id="ctl05_ctl05_RadAjaxPanel1Panel">
    <div id="ctl05_RadAjaxPanel1" style="width:100%;">

On this page I am having an issue with, the server control is rendered like:
<div id="ctl07_ctl07$rapPanel">
    <div id="ctl07_rap" style="width:100%;">

Any help is much appreciated...

Thanks,

M


Dimo
Telerik team
 answered on 29 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?