Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
147 views
Im starting to use the tooltip for the first time and have placed a tooltipmanager on my form.  Ive got the whole thing to work ok, its just that sometimes, when the tooltip initially appears, it displays in the far left of the page,then jumps over to the control that activated it.  How can I give the popup a consistent position ?

this is the code

<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" 
        AutoTooltipify="True" Skin="Sunset" OnAjaxUpdate="OnAjaxUpdate" Animation="Fade" RelativeTo="Mouse" HideEvent="LeaveToolTip">
    </telerik:RadToolTipManager>


in my c# I have several images that activate different popups

 this.RadToolTipManager1.TargetControls.Add(this.ImageGuarantee.ClientID, "Guarantee", true);
                this.RadToolTipManager1.TargetControls.Add(this.ImageWhy.ClientID, "Why", true);
                this.RadToolTipManager1.TargetControls.Add(this.ImageVIP.ClientID, "VIP", true);


protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
        {
            this.UpdateToolTip(args.Value, args.UpdatePanel);
        }
        private void UpdateToolTip(string elementID, UpdatePanel panel)
        {
            Control ctrl = Page.LoadControl("~/UserControls/PopupNarrative.ascx");
            panel.ContentTemplateContainer.Controls.Add(ctrl);
            UserControls.PopupNarrative pn = (UserControls.PopupNarrative)ctrl;
            pn.PopupNarrativeType = elementID;
        }


Ive tried setting it to relative to element, but it makes no difference

Svetlina Anati
Telerik team
 answered on 23 Jun 2010
1 answer
109 views
Hi guys,
This is my problem: i have a parent page,  from whom I open an rad window, via an rad window manager(   window.radopen("Something.aspx, "AdvancedForm");). All perfect until now! But, after that , from that radwindow I have to open an other rad window(modal or not) actually is an fileexplorer exactlly like in this example:http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/fileselectordialog/defaultvb.aspx. When I work in Chrome or Firefox...everything is peachy, but in IE I cannot see the rad window. It is opened, I see that in debugger, but it is not visible. 
<telerik:RadWindow runat="server" Width="800px" Height="600px" 
        NavigateUrl="Explorer.aspx" ID="ExplorerWindow"  
        Behaviors="Resize, Close, Move" AutoSize="True" ClientIDMode="AutoID"  
         Behavior="Resize, Close, Move"   
         
            style="POSITION: absolute; visibility: visible; overflow: visible; z-index: 10000000;"  
            InitialBehavior="None"
       
    </telerik:RadWindow> 
 function OpenFileExplorerDialog() { 
            var wnd = $find("<%= ExplorerWindow.ClientID %>"); 
            wnd.Show(); 
 
<asp:Button ID="selectFile" OnClientClick="OpenFileExplorerDialog(); return false;" 
Text="Open... " runat="server" type="submit" /> 
 
That's the code, including the button wich start the action. Obviously the explorer.aspx exists, almost identical as in example. 
I had the same problem with the imagemanager from radeditor, but i solved with :
 function OnClientLoad(editor) { 
        editor.set_useClassicDialogs(true); 
    }   
 Not possible this time, function only for editor(I think). I need to transmit back to my first rad window the data from file explorer.
Please help me, if you can!!
Best regards,
Moroianu George
Dobromir
Telerik team
 answered on 23 Jun 2010
1 answer
50 views
I'm basically took the example the telerik had on its site with having a chart inside a grid. However when I run it I'm returning "or em" in the values where I would like currency to display. Trying to run this so that the different Currency exchange will pull in daily. I can't figure out why its doing this and whether its a cs error that I messed up on or not. Even anyone can please help me with this or have any ideas would be greatly appreciated! Here is my code behind this.

 

<td valign="top">

 

 

<telerik:RadGrid ID="rgdCurrency" runat="server" AutoGenerateColumns="False" DataSourceID="dsCurrencyHeader"

 

 

GridLines="None" Width="200px" OnItemDataBound="rgdCurrency_ItemDataBound" >

 

 

<MasterTableView DataSourceID="dsCurrencyHeader" AutoGenerateColumns="False" DataKeyNames="currencycd">

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="currencycd" HeaderText="Currency" SortExpression="currencycd"

 

 

UniqueName="currencycdFld">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn DataField="currencycd" UniqueName="ChartColumn" HeaderText="Exchange">

 

 

<ItemTemplate>

 

 

<telerik:RadChart ID="rdcCurrency" runat="server" AutoLayout="True" DataSourceID="dsCurrencyDetail"

 

 

DefaultType="Line" Height="25px" Width="50px" CreateImageMap="False" SeriesPalette="WebBlue">

 

 

<Series>

 

 

<telerik:ChartSeries Name="perDirhamExchAmt" DataYColumn="perDirhamExchAmt" Type="Line">

 

 

<Appearance>

 

 

<FillStyle MainColor="94, 117, 142" SecondColor="222, 245, 245">

 

 

</FillStyle>

 

 

<LabelAppearance Visible="False">

 

 

</LabelAppearance>

 

 

<Border Color="DimGray" />

 

 

</Appearance>

 

 

</telerik:ChartSeries>

 

 

</Series>

 

 

<PlotArea>

 

 

<XAxis IsZeroBased="False">

 

 

<Appearance MajorTick-Visible="False">

 

 

<MajorGridLines Color="DimGray" Visible="False" Width="0" />

 

 

<LabelAppearance Visible="False">

 

 

</LabelAppearance>

 

 

</Appearance>

 

 

<AxisLabel>

 

 

<TextBlock>

 

 

<Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">

 

 

</Appearance>

 

 

</TextBlock>

 

 

</AxisLabel>

 

 

</XAxis>

 

 

<YAxis IsZeroBased="False">

 

 

<Appearance MajorTick-Visible="False" MinorTick-Visible="False">

 

 

<MajorGridLines Color="DimGray" Visible="False" />

 

 

<LabelAppearance Visible="False">

 

 

</LabelAppearance>

 

 

</Appearance>

 

 

<AxisLabel>

 

 

<TextBlock>

 

 

<Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">

 

 

</Appearance>

 

 

</TextBlock>

 

 

</AxisLabel>

 

 

</YAxis>

 

 

<YAxis2>

 

 

<Appearance MajorTick-Visible="False" MinorTick-Visible="False">

 

 

<MinorGridLines Visible="False" />

 

 

<LabelAppearance Visible="False">

 

 

</LabelAppearance>

 

 

</Appearance>

 

 

<AxisLabel>

 

 

<TextBlock>

 

 

<Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">

 

 

</Appearance>

 

 

</TextBlock>

 

 

</AxisLabel>

 

 

</YAxis2>

 

 

<Appearance Corners="Round, Round, Round, Round, 6" SeriesPalette="WebBlue">

 

 

<FillStyle FillType="Solid" MainColor="White" SecondColor="White">

 

 

</FillStyle>

 

 

<Border Color="DimGray" Visible="False" />

 

 

</Appearance>

 

 

</PlotArea>

 

 

<ChartTitle Visible="False">

 

 

<Appearance Corners="Round, Round, Round, Round, 6" Dimensions-Margins="4%, 10px, 14px, 0%"

 

 

Position-AlignedPosition="Top" Visible="False">

 

 

<FillStyle GammaCorrection="False" MainColor="224, 224, 224">

 

 

</FillStyle>

 

 

<Border Color="DimGray" />

 

 

</Appearance>

 

 

<TextBlock>

 

 

<Appearance TextProperties-Font="Verdana, 11.25pt">

 

 

</Appearance>

 

 

</TextBlock>

 

 

</ChartTitle>

 

 

<Legend Visible="False">

 

 

<Appearance Visible="False">

 

 

<ItemTextAppearance TextProperties-Color="DimGray">

 

 

</ItemTextAppearance>

 

 

<Border Color="DimGray" />

 

 

</Appearance>

 

 

</Legend>

 

 

</telerik:RadChart>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

.cs

 

 

protected void rgdCurrency_ItemDataBound(object sender, GridItemEventArgs e)

 

{

 

if (e.Item is GridDataItem)

 

{

 

GridDataItem item = e.Item as GridDataItem;

 

 

RadChart chart = item["ChartColumn"].FindControl("rdcCurrency") as RadChart;

 

dsCurrencyDetail.SelectParameters[0].DefaultValue = item.GetDataKeyValue(

"currencycd").ToString();

 

chart.DataSource = dsCurrencyDetail.Select(

DataSourceSelectArguments.Empty);

 

chart.DataBind();

}

}

Radoslav
Telerik team
 answered on 23 Jun 2010
1 answer
157 views
My ASPX code:
<telerik:RadToolBar ID="mainToolBar" runat="server"  
                        Style="z-index: 90001" Width="100%" 
                        OnButtonClick="mainToolBar_ButtonClick"  
                        OnClientButtonClicked="OnClientButtonClicked"  
                        onitemcreated="mainToolBar_ItemCreated"
                        <Items> 
                            <telerik:RadToolBarButton ImageUrl="~/images/toolbar/New.gif" AccessKey="N" Text="<u>N</u>ew" 
                                ToolTip="New" Value="New"
                            </telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton IsSeparator="true" /> 
                            <telerik:RadToolBarButton ImageUrl="~/images/toolbar/print.gif" ToolTip="Print" CommandName="Print" 
                                Value="Print" /> 
                            <telerik:RadToolBarButton ImageUrl="~/images/toolbar/Excel.png" AccessKey="N" ToolTip="Excel" 
                                Value="ExportToExcel" PostBack="false"
                            </telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton IsSeparator="true" /> 
                            <telerik:RadToolBarButton ImageUrl="~/images/toolbar/Refresh.gif" ToolTip="Refresh" 
                                Value="Refresh" PostBack="false"/> 
                            <telerik:RadToolBarButton IsSeparator="true" /> 
                            <telerik:RadToolBarButton ImageUrl="~/images/toolbar/delete.gif" ToolTip="Delete" 
                                Value="Delete" PostBack="false" /> 
                                <telerik:RadToolBarButton Value="Search" > 
                                <ItemTemplate> 
                                 
                                </ItemTemplate> 
                                </telerik:RadToolBarButton> 
                        </Items> 
                    </telerik:RadToolBar> 


my CS code:
 protected void mainToolBar_ItemCreated(object sender, Telerik.Web.UI.RadToolBarEventArgs e) 
    { 
        throw new Exception("ItemCreated fired");  
        
    } 



Thanks in advance
Shinu
Top achievements
Rank 2
 answered on 23 Jun 2010
3 answers
171 views
Hello.

İ have an radGrid and i have templateColumn inside the grid.

and there is dropdownlist in the templatecolumn.

Users can change product status over the grid by this way.

and there is code in server side when dropdown list selected index changed.

but i want to display radAjaxLoading Panel over the each dropdownControl.

i writed this. but it is not solving my issue. because loading panel appering over the all grid when user change dropdownlist value.


 

<telerik:GridTemplateColumn HeaderText="Durum" HeaderStyle-HorizontalAlign="Center"

 

 

HeaderStyle-Width="110px" >

 

 

<ItemTemplate>

 

 

<asp:DropDownList ID="drpProductStatus" runat="server" Width="100px" AutoPostBack="true"

 

 

OnSelectedIndexChanged="drpProductStatus_SelectedIndexChanged">

 

 

</asp:DropDownList>

 

 

</ItemTemplate>

 

 

<HeaderStyle HorizontalAlign="Center"></HeaderStyle>

 

 

</telerik:GridTemplateColumn>

 



...

and rad ajax manager code :

 

<telerik:AjaxSetting AjaxControlID="grid">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="grid" LoadingPanelID="alpCover" />

 

 

</UpdatedControls>



i dont want to display loading panel over the full grid. loading panel image must be place only dropdown when user affected the control.

i  tried to create AjaxSeeting in itemdatabound  but it works only first row of grid. 

 

 

DropDownList drpProductStatus = (dataItem["PRODUCT_STATUS_NAME"].FindControl("drpProductStatus") as DropDownList);

 

 

if (drpProductStatus != null)

 

{

 

 

 

 

 

RAM.AjaxSettings.AddAjaxSetting(drpProductStatus, drpProductStatus,

this.alpCover);

 

 

}

// it works only first row.


Pls help me.



Pavlina
Telerik team
 answered on 23 Jun 2010
1 answer
106 views

hi my dear friends :

i have an AJAXIFIED button(btnsend) thas is disable by it's Property -> Enabled="False"

i have a TextBox Next To This Button And I Want Enable that Button When Users Type Something in That TextBox...

so i did this (JavaScript):


        function onkeyupontextbox() { 
        var btnSend = document.getElementById("btnSend"); 
        btnSend.disabled = false

}

but that button does not work after becomes enable...

what can i do about that?

(i am using radajaxmanager for ajaxify that button) (when i remove that button from RadAjaxmanager So EveryThing Is Ok , But I Want That Button In Ajaxify Mode)

thanks for your attention...


Maria Ilieva
Telerik team
 answered on 23 Jun 2010
1 answer
756 views
<li> 
                        <asp:Label ID="lbSurname" runat="server" Text="Surname: " AssociatedControlID="lstSurname"</asp:Label> 
                        <telerik:RadComboBox ID="lstSurname" runat="server" ReadOnly="true" DataTextField="Family" 
                            DataValueField="Family" AppendDataBoundItems="True" AllowCustomText="True" MarkFirstMatch="True" 
                            OnSelectedIndexChanged="lstSurname_SelectedIndexChanged" AutoPostBack="True" CausesValidation="False">  
                        </telerik:RadComboBox> 
                        <asp:RequiredFieldValidator ID="RFV_lstSurname" runat="server" ValidationGroup="Personal" 
                            ControlToValidate="lstSurname" ErrorMessage="Please enter Surname">*</asp:RequiredFieldValidator>                          
                    </li> 
                    <li> 
                        <asp:Label ID="lbFname" runat="server" Text="First Name: " AssociatedControlID="lstFirst"</asp:Label> 
                        <telerik:RadComboBox ID="lstFirst" runat="server" ReadOnly="true" DataTextField="First" 
                            DataValueField="First" AppendDataBoundItems="True" AllowCustomText="True" MarkFirstMatch="True" 
                            AutoPostBack="True" CausesValidation="False"   
                            onselectedindexchanged="lstFirst_SelectedIndexChanged">  
                        </telerik:RadComboBox> 
                        <asp:RequiredFieldValidator ID="RFV_lstFirst" runat="server" ValidationGroup="Personal" 
                            ControlToValidate="lstFirst" ErrorMessage="Please enter First Name">*</asp:RequiredFieldValidator>                          
                    </li> 
 
<li><asp:Label ID="lbJobTitle" runat="server" Text="Job Title:"   
                            AssociatedControlID="txtJob"></asp:Label> 
<telerik:RadTextBox ID="txtJob" runat="server" MaxLength="150" Width="200px"></telerik:RadTextBox>                                  
/li> 
In form.aspx.cs file

protected void lstFirst_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)  
        {  
            string First = lstFirst.SelectedItem.Text;  
            string family = lstSurname.SelectedItem.Text;  
            var query = from x in dc.tblEmp  
                        where x.First.ToLower() == First.ToLower() && x.Family.ToLower() == family.ToLower()  
                        orderby x.Family  
                        select new  
                        {  
                            Job = x.Job_Title                             
                        };          
************txtJob.Text = query;    ************  
        } 

How do I bind data to Textbox?
 I am selecting Surname and Firstname to fire query to get Job Title. I only want to display in textbox .
Can anyone help me find solution?
Thanks in advance
Sucheta
Pavlina
Telerik team
 answered on 23 Jun 2010
1 answer
69 views
Hello Sir
How Can check Custom attribute value on OnClientAppointmentContextMenu.

like


if i get subject then i write

function

 

OnClientAppointmentContextMenu(sender, args) {

 

alert(

 

"Appointment context menu: " + args.get_appointment().get_subject());

 

 

 

}


same as if i have Custom attribute  name StatusId then how can i get it its value.

when i write 

function OnClientAppointmentContextMenu(sender, args) {

 

alert(

 

"Appointment context menu: " + args.get_appointment().get_statusid());

 

 

 

}

its shows error..
So pls help me.

Thanks
Chandan
Shinu
Top achievements
Rank 2
 answered on 23 Jun 2010
4 answers
150 views
for no reason I can see, my project has suddenly stopped rendering any of the telerik controls on a web form in the IDE, Im now getting this error

Error Creating Control - RadComboBoxCategoriesCould not load file or assembly 'Telerik.Web.UI, Version=2009.1.527.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified.


this is the same for EVERY telerik control, it has been fine, but its just come from nowhere.  Ive tried deleting the Telerik.Web.UI.dll filr from my bin directory, that seemed to work initially, but it doesnt make a difference anymore.  Ive checked in my web.config file and I have NO version numbers specified in there.  I have SP1 installed for VS2008.  Can anyone help me with this problem ?
Diego
Top achievements
Rank 1
 answered on 23 Jun 2010
1 answer
153 views
It seems that captcha audio doesnt work in MAC OS since its using wav format. Is there any way i can set the captcha control to use mp3 format or any other format which is cross platform compatible?
Pero
Telerik team
 answered on 23 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?