Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
273 views
Hi all,

I am using GridDateTimeColumn, there is little bit confused about its filters.
In the "EqualTo", it requires user to input exactly date and time.
Are there anyways to ignore the time?
For example, "07/15/11" for the result of that day, no need "07/15/11 3:13"

Thanks.

Andy.
Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Jul 2011
1 answer
149 views
Hi Friends,

Greetings...

I need to do the Rad Window as Po pup Window like attached image. any  suggestions?


thanks and regards,
vinoth xavier
Bozhidar
Telerik team
 answered on 19 Jul 2011
1 answer
125 views
Hello good day

I have this example, my problem is that when loading a show RadWindows pagina.aspx the external from the menu:

Maintenance => maint. personal

should be opaque (black) around the RadWindows but in this case the visible car parks rather RaMenu Ensim of Radwindows

I just want to do the following call RadWindows and only display the rest RadWindows and can not do anything close RadWindows hata

I can not solve this problem and hope you can help me solve this problem

from already thank you very much


==>> Example here to download
Marin Bratanov
Telerik team
 answered on 19 Jul 2011
1 answer
121 views
Hello good day

I have this example, my problem is that when loading a show RadWindows pagina.aspx the external from the menu:

Maintenance => maint. personal

should be opaque (black) around the RadWindows but in this case the visible car parks rather RaMenu Ensim of Radwindows

I just want to do the following call RadWindows and only display the rest RadWindows and can not do anything close RadWindows hata

I can not solve this problem and hope you can help me solve this problem

from already thank you very much


==>> Example here to download
Marin Bratanov
Telerik team
 answered on 19 Jul 2011
2 answers
133 views

Hello,

in my Grid, I set AllowFilteringByColumn=true, so that a User A can filter the Grid. Then i want to disable (or invisible) the Filter Controls, so that a User B can see the Filters of the filtered Grid, but User B should not change the Filters.

Is this possible?

Best Regards

Tom

Thomas
Top achievements
Rank 1
 answered on 19 Jul 2011
1 answer
104 views
Hello,

I'm trying to implement the radtooltip inside a page but once i load the page i get the following javascript error
"Microsoft JScript runtime error: 'map' is null or not an object"

please find below my code:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TripoliActivities.aspx.vb"
    Inherits="BeitElYasmine._TripoliActivities" MasterPageFile="~/MasterPages/FrontEnd.Master" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <telerik:RadAjaxPanel ID="AjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1"></telerik:RadAjaxPanel>
      
      
   <div style="text-align: center">
<asp:ImageMap ID="ImageMap1" HotSpotMode="Navigate" ImageUrl="Img/FloorPlan.jpg"
AlternateText="FloorPlan" runat="server">
            <asp:PolygonHotSpot Coordinates="36,221,36,304,134,304,134,278,228,278,228,304,359,304,359,279,349,228,346,205,301,205,301,34,36,34,36,221" />
            <asp:PolygonHotSpot Coordinates="301,34,490,34,490,151,301,149,301,34" />
            <asp:PolygonHotSpot Coordinates="301,149,301,204,347,204,350,225,470,225,470,152,301,149" />
            <asp:PolygonHotSpot Coordinates="350,226,360,289,469,289,469,226,350,226" />
        </asp:ImageMap>
    </div>
    <telerik:RadToolTip ID="tooltip" RelativeTo="Mouse" runat="server" TargetControlID="area0"
        Animation="FlyIn" Position="BottomCenter" IsClientID="true" ShowCallout="false" EnableShadow="true">
        <img src="Img/livingRoom.jpg" alt="LivingRoom" /></telerik:RadToolTip>
    <telerik:RadToolTip ID="RadToolTip1" RelativeTo="Mouse" runat="server" TargetControlID="area1"
        Animation="FlyIn" Position="TopRight" IsClientID="true" ShowCallout="false" EnableShadow="true">
        <img src="Img/kitchen.jpg" alt="Kitchen" /></telerik:RadToolTip>
    <telerik:RadToolTip ID="RadToolTip2" RelativeTo="Mouse" runat="server" TargetControlID="area2"
        Animation="FlyIn" Position="MiddleRight" IsClientID="true" ShowCallout="false" EnableShadow="true">
        <img src="Img/bathroom.jpg" alt="Bathroom" /></telerik:RadToolTip>
    <telerik:RadToolTip ID="RadToolTip3" RelativeTo="Mouse" runat="server" TargetControlID="area3"
        Animation="FlyIn" Position="BottomRight" IsClientID="true" ShowCallout="false" EnableShadow="true">
        <img src="Img/entrance.jpg" alt="Entrance" /></telerik:RadToolTip>
  
    <script type="text/javascript">
        //<![CDATA[
        var map = document.getElementsByName("ImageMapImageMap1")[0];
        var areas = map.getElementsByTagName("AREA");
  
        for (var i = 0; i < areas.length; i++) {
            var area = areas[i];
            area.setAttribute("id", "area" + i);
            //Prevent from postbacking the page 
            area.onclick = function(e) { return false; };
        }
        //]]> 
    </script 
</asp:Content>

Thanks a lot for your help guys,
Mike
Marin Bratanov
Telerik team
 answered on 19 Jul 2011
2 answers
59 views
Is there a way to increase this from 1024? I made the field larger in my database but the string stops accepting input at 1024 still. I figure this must be built into the control but can't find a property to override this.

Also, how do I detect if the "No end date" recurrence radio button is checked? We don't want users to put in unlimitted appointments. If that radio button cannot be disabled I want to cancel the appointment if they select it and it would be good if I could set the default to the "End after" or "End by" radio button.
Dan
Top achievements
Rank 1
 answered on 19 Jul 2011
3 answers
109 views
Hi All,

I have a problem with RadComboBox and setting SelectedIndex value.

My controls structure are next:

<telerik:RadToolTipManager ID="editRecordTooltip" ShowEvent="OnClick" OffsetY="-1" HideEvent="ManualClose" Modal="true"
    Width="470" Height="390" runat="server" EnableShadow="true" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Element"
    Position="MiddleRight">                                
</telerik:RadToolTipManager>
 
<telerik:RadGrid ID="rgRecords" AutoGenerateColumns="false" runat="server" OnItemDataBound="rgRecords_ItemDataBound">
    <MasterTableView DataKeyNames="ID">
        <Columns>
.....
         </Columns>
    </MasterTableView>
</telerik:RadGrid>


 protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
 {
     UpdateToolTip(args.Value, args.UpdatePanel);
 }
private void UpdateToolTip(string elementId, UpdatePanel panel)
{            
   Control ctrl = Page.LoadControl("EditRecord.ascx");
   panel.ContentTemplateContainer.Controls.Add(ctrl);
}

protected void rgRecords_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
            {
                var target = e.Item.FindControl("hlEdit");
                editRecordTooltip.TargetControls.Add(target.ClientID, (e.Item as GridDataItem).GetDataKeyValue("ID").ToString(), true);
            }
        }

EditRecord.ascx contains:

<telerik:RadComboBox runat="server" ID="rcbCompany" Filter="Contains" ZIndex="50001" Width="234px" CssClass="select-text" />
protected override void OnPreRender(EventArgs e)
{
   base.OnPreRender(e);
   
   
   rcbCompany.DataSource = Source;
   rcbCompany.DataValueField = "ID";
   rcbCompany.DataTextField = "Name";
   rcbCompany.DataBind();
rcbCompany.SelectedIndex = 10; // for example
   this.DataBind();
}
When I set rcbCompany.SelectedIndex = 10, it does not worked.
On front-end selectedindex is always -1.

But, standart DropDownList worked perfectly.

How I can set SelectedIndex?

Thanks
Kalina
Telerik team
 answered on 19 Jul 2011
1 answer
160 views
I try new feature ContentTemplate of RadWindow. But i get an error on javascripts. 
This error : 
Uncaught exception: TypeError: Cannot convert '$find('ctl00_MainContent_RadWindow_ContentTemplate')' to object
  
Error thrown at line 3, column 12 in openWinContentTemplate() in http://localhost:44012/Proje/DetailProject.aspx?OZ=kCpkEBX9+M1Y7eX6gwenmA==:
    $find('ctl00_MainContent_RadWindow_ContentTemplate').show();
called from line 1, column 0 in <anonymous function>(event):
    openWinContentTemplate();

Javacript Code:
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script type="text/javascript">
        function openWinContentTemplate() {
            $find('<%= RadWindow_ContentTemplate.ClientID %>').show();
        }
          
    </script>
</asp:Content>

RadWindow Code:
<telerik:RadWindow runat="server" ID="RadWindow_ContentTemplate" Modal="true">
    <ContentTemplate>
             Test!
    </ContentTemplate>
</telerik:RadWindow>


Thanks
Marin Bratanov
Telerik team
 answered on 19 Jul 2011
11 answers
179 views
I have a RadScheduler control with modified templates. In the InlineEditTemplate I first used asp:Button for the "Update" and "Cancel" commands and everything worked ok. Now I want to change those two Buttons to RadButton but the "Update" and "Cancel" commands stopped working.

Here is the code of the template with  the four type of buttons:

<InlineEditTemplate>
                <div id="InlineEditTemplate">
                    <span>
                        <asp:TextBox ID="TitleTextBoxUpdate" runat="server" Text='<%# Bind("Subject") %>'
                            Width="90%" TextMode="MultiLine" Height="20px"></asp:TextBox>
                        <telerik:RadButton ID="UpdateButton" runat="server" CommandName="Update" Text="Actualizar">
                        </telerik:RadButton>
                        <telerik:RadButton ID="UpdateCancelButton" runat="server" CausesValidation="False"
                            CommandName="Cancel" Text="Cancelar">
                        </telerik:RadButton>
                        <asp:Button ID="UpdateButton2" runat="server" CommandName="Update" Text="Actualizar" />
                        <asp:Button ID="UpdateCancelButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                            Text="Cancelar" />
                        <asp:LinkButton ID="EditMoreButton" runat="server" CommandName="More">Más Opciones</asp:LinkButton>
                    </span>
                </div>
            </InlineEditTemplate>

Any help thanks!


Peter
Telerik team
 answered on 19 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?