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

For RadComboBox, what JS events fire after SelectedIndexChanged?   If you select something, and the menu closes, does the DropDownClosed event fire after this?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 13 Aug 2009
3 answers
126 views
Hi,
How to export only filterd data from Radgrid to excel/pdf.

Thanks
Rakesh G
Pavlina
Telerik team
 answered on 13 Aug 2009
1 answer
93 views
I am using Telerik Calendar control and setting Current Culture on ASP.NET page using following code

System.Threading.Thread.CurrentThread.CurrentCulture = new GCAACulture(System.Threading.Thread.CurrentThread.CurrentCulture.Name);
System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.DateSeparator = " ";

public class GCAACulture : CultureInfo
    {
       public GCAACulture(string cultureName) : base(cultureName)
       {
          this.DateTimeFormat = new System.Globalization.DateTimeFormatInfo();
          this.DateTimeFormat.ShortDatePattern = "dddd, dd MMMM yyyy";
          this.DateTimeFormat.LongDatePattern = "dddd, dd MMMM yyyy";
       }
    }


But whenever I select date using date picker popup always current day is selected. When I debug the telerik javascript code then I found that code fails to parse of day of selected dated and as result it selected current (Today) date as an alternate. The day part of selected date returning null value.

While debugging I  found that something is wrong in following method.

parseDate:function(_fe,_ff){
try{
var _100=new Telerik.Web.UI.DateParsing.DateTimeLexer(this.get_dateFormatInfo());
var _101=_100.GetTokens(_fe);
var _102=new Telerik.Web.UI.DateParsing.DateTimeParser(this.get_dateFormatInfo().TimeInputOnly);
var _103=_102.Parse(_101);
_ff=this._getParsingBaseDate(_ff);
var date=_103.Evaluate(_ff,this.get_dateFormatInfo());
return date;
}




Please help me from where I am making mistake.

Regards
Ayaz Anwar
Software Engineer
Pavel
Telerik team
 answered on 13 Aug 2009
1 answer
139 views
Hi,
Basicaly I am trying to achieve what you guys have shown on the demo
http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipversustooltipmanager/defaultcs.aspx
I have almost duplicate the code , but am running into js error

if

 

(_d[i].id==this._getUpdatePanelID()) where object is expected as "this" is null..

My Code ...

MainUserControl.ascx

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

 

 

 

<%

@ Register src="../ToolTips/ToolTipInfo.ascx" tagname="ToolTipInfo" tagprefix="uc3" %>

 

 

 

<

 

telerik:RadToolTipManager ID="RadToolTipManager1"

 

 

 

 

 

runat="server" Position="Center"

 

 

OnAjaxUpdate="ToolTip_OnAjaxUpdate">

 

 

 

 

 

</telerik:RadToolTipManager>

 

<

 

telerik:RadGrid ID="ClientUserRadGrid" runat="server" EnableEmbeddedSkins="False"

 

 

Skin="Shepherd"

 

 

AutoGenerateColumns="false"

 

 

onitemdatabound="UserDetailRadGrid_ItemDataBound"

 

 

onpagesizechanged="ClientUserRadGrid_PageIndexChanged" AllowSorting="True"

 

 

OnItemCommand="ClientUserRadGrid_ItemCommand"

 

 

AllowPaging="True" PageSize="40" onneeddatasource="User_NeedDataSource"

 

 

AllowFilteringByColumn="true" onitemcreated="ClientUserRadGrid_ItemCreated">

 

 

 

<

 

HeaderContextMenu Skin="Shepherd" EnableEmbeddedSkins="False" EnableTheming="True">

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

</

 

HeaderContextMenu>

 

 

 

 

 

<PagerStyle AlwaysVisible="True" Mode="NextPrevAndNumeric" PagerTextFormat="{4} Page {0} of {1},items {2} to {3} of {5}" />

 

 

 

 

 

 

 

<

 

MasterTableView DataKeyNames="UserID"  AllowMultiColumnSorting="true">

 

<

 

RowIndicatorColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

RowIndicatorColumn>

 

<

 

ExpandCollapseColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

ExpandCollapseColumn>

 

<

 

Columns>

 

 

 

 

 

<telerik:GridBoundColumn DataField="UserName" HeaderText="Logon Name"

 

 

UniqueName="UserName" >

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Department" HeaderText="Department"

 

 

UniqueName="Department" >

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Name" HeaderText="Name"

 

 

UniqueName="Name" >

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="ProductType" HeaderText="Product Type"

 

 

UniqueName="ProductType">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

</Columns>

 

 

 

 

 

</

MasterTableView>

 

 

 

 

 

 

 

 

<

FilterMenu Skin="Shepherd" EnableEmbeddedSkins="False" EnableTheming="True">

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

</

 

FilterMenu>

 

</

 

telerik:RadGrid>

MainUserControl.ascx.cs

 

protected

 

void UserDetailRadGrid_ItemDataBound(object sender, GridItemEventArgs e)

 

{

 

    

 

    if

 

(e.Item is GridDataItem)

 

    {

 

        GridDataItem item = (GridDataItem)e.Item;

 

        RadToolTipManager1.TargetControls.Add(e.Item.ClientID, e.Item.OwnerTableView.DataKeyValues[0][

"UserID"].ToString(),true);

 

    }

 

}

 

protected

 

void ToolTip_OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)

 

{

 

    Control ctrl = LoadControl("ToolTipInfo.ascx");

 

    args.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);

 

    ToolTipInfo Info = (ToolTipInfo)ctrl; // this is a control with a only one label and trying to set a text to that Label 

 

    Info.LabelText = args.Value;

}

 

And that is all I have done to get the tooltip, but keep experiencing js error..

thanks,
DIP

Svetlina Anati
Telerik team
 answered on 13 Aug 2009
3 answers
127 views
I have a radwindow that pops up to update data residing record in radgrid2, but when data is successfully updated in database via radwinow and window is closed, the data in radgrid2 is not updated on the screen.  

<

 

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="btnDelete">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" />

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid2" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" />

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid2" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid2">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" />

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid2" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>



 

<

 

telerik:RadWindow

 

 

ID="PostWindow"

 

 

runat="server"

 

 

Modal="true"

 

 

BackColor="Gray"

 

 

Behavior="None"

 

 

 

 

 

InitialBehaviors="Pin"

 

 

 

 

 

ShowContentDuringLoad="false"

 

 

 

 

 

Title="Add/Edit Post (Fields in BOLD are required!)"

 

 

Width="650"

 

 

 

 

 

Height="470"

 

 

 

 

 

ReloadOnShow="true"

 

 

 

 

 

DestroyOnClose="true"

 

 

 

 

 

KeepInScreenBounds="true"

 

 

 

 

 

BorderStyle="None"

 

 

OnClientClose="refreshGrid1()"

 

 

>

 

 

 

 

 

</telerik:RadWindow>


1) when user clicks on close button it passes arg value called 'editPost'

 

<

 

telerik:RadScriptBlock runat="server">

 

 

 

 

 

<script type="text/javascript">

 

 

 

 

 

function refreshGrid1(arg)

 

{

$find(

"<%= RadAjaxManager1.ClientID %>").ajaxRequest(arg);

 

 

 

 

 

 

 

}

 

</script>

 

 

 

 

 

</telerik:RadScriptBlock>

2) RadAjaxManager1_AjaxRequest is then fired and the following code is performed but nothing happens

 

if

 

(isPost)

 

{

radGrid = radGrid2;

RadGrid1.MasterTableView.Rebind();

radGrid.MasterTableView.Rebind();

Veli
Telerik team
 answered on 13 Aug 2009
1 answer
46 views
I'm experiencing a problem in IE 6 & 7 only while sorting, or posting back for that matter, on the RAD Grid (RTM Q2 2009 Release). When you click the column header to sort the grid the filter boxes will double in size. Taking a look at the demos you have posted the same problem can be reproduced. Using this example http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx click a header to sort the list. Then click it a second time to sort the other direction. On the second sort the filter boxes will double in size. I ran into the same problem previously with the RAD Input control on one of my other forms. I resolved it by setting the EnableViewState="true" for the page (it was set to false). But this fix didn't help for the grid. Any help would be appreciated.
Dimo
Telerik team
 answered on 13 Aug 2009
3 answers
123 views
Hello
How do I get the selected value, in this case I believe you would also call it the max value
<telerik:RadSlider AutoPostBack="True" ID="RadSliderPrice" Width="650"  
                runat="server"  Height="35px" MinimumValue="5" Orientation="Horizontal" TrackPosition="BottomRight" 
                MaximumValue="5000" onvaluechanged="RadSliderPrice_ValueChanged" AnimationDuration="400" CssClass="ItemsSlider" 
                Value="25" ItemType="Item" > 
                <Items> 
                    <telerik:RadSliderItem runat="server" Text="$5" Value="5" /> 
                    <telerik:RadSliderItem runat="server" Text="$10" Value="10" /> 
                    <telerik:RadSliderItem runat="server" Text="$25" Value="25" /> 
                    <telerik:RadSliderItem runat="server" Text="$50" Value="50" /> 
                    <telerik:RadSliderItem runat="server" Text="$75" Value="75" /> 
                    <telerik:RadSliderItem runat="server" Text="$100" Value="100" /> 
                    <telerik:RadSliderItem runat="server" Text="$125" Value="125" /> 
                    <telerik:RadSliderItem runat="server" Text="$150" Value="150" /> 
                    <telerik:RadSliderItem runat="server" Text="$200" Value="200" /> 
                    <telerik:RadSliderItem runat="server" Text="$250" Value="250" /> 
                    <telerik:RadSliderItem runat="server" Text="$300" Value="300" /> 
                    <telerik:RadSliderItem runat="server" Text="$500" Value="500" /> 
                    <telerik:RadSliderItem runat="server" Text="$1000" Value="1000" /> 
                    <telerik:RadSliderItem runat="server" Text="$1500" Value="1500" /> 
                    <telerik:RadSliderItem runat="server" Text="$1000" Value="1000" /> 
                    <telerik:RadSliderItem runat="server" Text="$2000" Value="2000" /> 
                    <telerik:RadSliderItem runat="server" Text="$3000" Value="3000" /> 
                    <telerik:RadSliderItem runat="server" Text="$4000" Value="4000" /> 
                    <telerik:RadSliderItem runat="server" Text="$5000" Value="5000" /> 
                </Items> 
            </telerik:RadSlider> 
Tsvetie
Telerik team
 answered on 13 Aug 2009
3 answers
114 views
I have a loginpage with an emptymessage for the username.
Unfortunatly some browsers will remember the username and this causes a confilct with the emptymesagge.
eg.
1) the remembered username is shown(thus the user will leave the textbox alone)
2) When he presses the login button, the username dissappears and the emptymessage is shown. Thus it causes a login error because there is no username.
Veli
Telerik team
 answered on 13 Aug 2009
2 answers
161 views
Hi,

We are going to use your example: Link to enable client-side delete in a RadGrid.

In the example you are deleting a record inline, but we like to do it from the contextmenu.  
Is this possible?

Greetings William
Datamex
Top achievements
Rank 2
 answered on 13 Aug 2009
6 answers
130 views
Hello all:

I am implementing custom commands for docks, and I want to create an appropriate icon for the commands.  I got this to work fine (after adding the !important tag), but I'm looking for a way to tie this into the skins.

It seems like my only options are

(1) Add code that reads "If skin='Y' then newcommand.cssclass='X'".
(2) Create custom skins (altering the DockCommandSprites.gif to include the additional images, for example)

If these are my only options, Would it be possible to alter your themes to add more icons for some common functions that we could select when adding new commands?

Thank you.
LeBear
Top achievements
Rank 1
 answered on 13 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?