Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
149 views

When the user clicks edit on a line and it pops up my FormTemplate, I want to set the tooltip on a textbox, based on its value. In the ItemCreated event, I have the following...

If (TypeOf e.Item Is GridEditFormItem) AndAlso (e.Item.IsInEditMode) Then    
    Dim item As GridEditFormItem = CType(e.Item, GridEditFormItem)     
    Dim txtID As RadTextBox = CType(item.FindControl("txtID"), RadTextBox)     
    txtID.ToolTip = LookUpDesc(txtID.Text)    
End If 

The LookUpDesc function queries our DB to find the value. It would work, but txtID.Text has no value in this event, even though it does once the FormTemplate is up. Is there a different event I should use where txtID.Text would evaluate to the value? Or how can I make this work?
Jeremy Yoder
Top achievements
Rank 1
 answered on 22 Jun 2010
1 answer
113 views
Hi ,

I have binded the dropdown as  in Add mode ,
<telerik:RadComboBox ID="radCombStatusReason" Skin="Sunset" MaxHeight="150px" runat="server"
  Width="205px" CssClass="ComboBox" OnClientSelectedIndexChanged="onComboSetDirty"                                                                    
   EnableLoadOnDemand="false" Filter="StartsWith"   EnableVirtualScrolling="false"  EmptyMessage="Type here..." ShowMoreResultsBox="false" ShowWhileLoading="false"  >
   <WebServiceSettings  Path="../../Services/ComboBoxServices.svc" Method="LoadSalesStatusReason" />
          </telerik:RadComboBox>

Since page load is taking time so i need to do this onload only once .

But when i come in Edit mode on same page i m using i need to set value to combo.

So how should i bind value from clientSide before setting that value in edit mode.
And i need the combo in such a way that it should behave like normal combo.

Thanks 


Simon
Telerik team
 answered on 22 Jun 2010
1 answer
57 views
(1) I have created a web part. 
(2)I am loading XML file in the web part and dynammically rendering controls on web part.
(3)But when i use the RadComboBox i am unable to click on the drop down arrow.
I have dynamically Created a Div Control
To this Div Control  I have added the RadComboBox Control.
Then i add the div control to the  RadPanelItem.
And  RadPanelItem to the RadPanelbar .
And then finally i am adding this to the Web Part Object.

Regards
Nelson Marian
Simon
Telerik team
 answered on 22 Jun 2010
2 answers
162 views

Hi,
I am having issue with Telerik Radgrid when placed with in asp:Loginview control.

The  grid has Radmenu items as template column. Grid is ajaxified using RadAjaxManager. Grid allows sorting.

The  problem is, when I sort a column, the radmenu items do not show.
If I don't place the grid in Loginview, everything works fine.

I would apperciate help on this.

Thanks,
Manisha
Here is the code...

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadGridTesting.aspx.cs" Inherits="RadGridTesting"%> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
 
<head runat="server">  
<title></title>  
</head> 
<body> 
<form id="form1" runat="server">  
<asp:ScriptManager ID="ScriptManager1" runat="server">  
</asp:ScriptManager> 
<br /> 
<asp:LoginView ID="LoginView1" runat="server">  
<LoggedInTemplate> 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">  
<AjaxSettings> 
<telerik:AjaxSetting AjaxControlID="rgCustomers">  
<UpdatedControls> 
<telerik:AjaxUpdatedControl ControlID="rgCustomers" LoadingPanelID="rlpDefault" /> 
</UpdatedControls> 
</telerik:AjaxSetting> 
</AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:RadAjaxLoadingPanel ID="rlpDefault" runat="server" Skin="Web20" /> 
<telerik:RadGrid ID="rgCustomers" runat="server" Width="100%" AutoGenerateColumns="false" 
Skin="Web20" DataSourceID ="SqlDSCustomers" 
AllowPaging="true" PageSize="10" PagerStyle-AlwaysVisible="false" PagerStyle-Position="TopAndBottom" 
PagerStyle-Mode="NextPrevAndNumeric" AllowSorting="true" AllowMultiRowSelection="true" 
OnItemDataBound="rgCustomers_ItemDataBound" OnNeedDataSource="rgCustomers_NeedDataSource">  
<MasterTableView Width="100%" GridLines="Both" DataKeyNames="CustomerID">  
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
<Columns> 
<telerik:GridTemplateColumn HeaderText="PD Action" Visible="true" HeaderStyle-Width="55px" ItemStyle-Width="55px">  
<ItemTemplate> 
<telerik:RadMenu ID="rmPDAction" runat="server" ItemClick="rmPDAction_ItemClick">  
<Items> 
<telerik:RadMenuItem ImageUrl="~/App_Themes/Images/RAD/Menu/down.png" Width="30px" Height="24px">  
<Items> 
<telerik:RadMenuItem Text="View" Value="View" /> 
<telerik:RadMenuItem Text="Edit" Value="Edit" /> 
<telerik:RadMenuItem Text="Continue Edit" Value="ContinueEdit" /> 
<telerik:RadMenuItem Text="Finish Edit" Value="FinishEdit" /> 
</Items> 
</telerik:RadMenuItem> 
</Items> 
</telerik:RadMenu> 
</ItemTemplate> 
</telerik:GridTemplateColumn> 
<telerik:GridBoundColumn DataField ="CustomerID" HeaderText ="ID" UniqueName ="CustomerID" DataType="System.Int32" AllowSorting="true" SortExpression="CustomerID" ></telerik:GridBoundColumn> 
<telerik:GridBoundColumn HeaderText ="First Name" DataField ="FirstName" UniqueName ="FirstName" DataType="System.String" AllowSorting="true" SortExpression="FirstName"></telerik:GridBoundColumn> 
</Columns> 
</MasterTableView> 
</telerik:RadGrid> 
<asp:SqlDataSource ID="SqlDSCustomers" runat="server"   
ConnectionString="<%$ ConnectionStrings:AdventureWorksLT2008R2cnn %>"   
SelectCommand="SELECT [CustomerID], [FirstName], [LastName], [CompanyName], [EmailAddress], [Phone] FROM [vw_Customers]"></asp:SqlDataSource> </LoggedInTemplate> 
<AnonymousTemplate> 
<asp:Literal ID="litLoginMsg" runat="server" Text="Please login"></asp:Literal> 
</AnonymousTemplate> 
</asp:LoginView> 
 
</form> 
 
</body> 
 
</html> 
 
 
 
 
 

Pavlina
Telerik team
 answered on 22 Jun 2010
3 answers
99 views
This is crazy. Whenever the editor loads, extra spaces appear. Switching from Design to HTML then back to Design adds 1 more set of <p> tags:

</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="content4">
<table cellspacing="0" cellpadding="5" width="620">

If I delete them via the Design view or HTML they just come back. This is occuring a few different places in this page, and is occurring in others. Please help!!
Delphi
Top achievements
Rank 1
 answered on 22 Jun 2010
1 answer
328 views
Hello,

I have a RadChart that I am rendering on page load. At regular intervals (5-10 seconds for example), I want to "refresh" the data contents of the chart. I am currently using a RadAjaxManager instance, and am using ajaxManager.ajaxRequest to initiate the callback request.

This works fine, but has one very visual drawback... the chart basically "blinks" during every refresh. (I can add a loading panel, but this in and of itself doesn't work very well for items that are constantly being refreshed at regular intervals).

Does anyone know of a way to prevent this? (The grid control for example does not "flash" or "blink" upon a rad ajax postback). Is there a way to "trick it by having two charts and only making the refreshed one visible after the callback is finished / basically swapping them in and out (pretty hacky, I know, but I have a lot of time invested in making this chart work!!!). 

Thanks in advance!
-Brian
Ves
Telerik team
 answered on 22 Jun 2010
1 answer
73 views
Hi,

if I want to create a google alike suggestion textbox, what is the best way?  I know how to do it with AJAX Control Toolkit but is there any similar function in the Telerik controls?

Thanks.
Veli
Telerik team
 answered on 22 Jun 2010
9 answers
291 views

Hello,

I need to change dataSource in DropDownList(ddl1) in RadGrid when the client choosed value in other dropDownList(ddl2) in RadGrid.

In ItemCreated I registered to event selectIndexChanged of ddl2

And in the event I changed the dataSource of ddl1(as I saw on your instructions)  

Here's the code:

protected void Grid_ny_ParticipationStatus_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)

    {

        if (e.Item is Telerik.Web.UI.GridEditableItem && e.Item.IsInEditMode || e.Item is Telerik.Web.UI.GridEditableItem && e.Item.OwnerTableView.IsItemInserted)

        {

            ddlActive = (e.Item as Telerik.Web.UI.GridEditableItem)["iActiveId"].Controls[0] as Telerik.Web.UI.RadComboBox;

            if (ddlActive != null)

            {

                ddlActive.AutoPostBack = true;

                ddlActive.SelectedIndexChanged += new Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventHandler(ddlActive_SelectedIndexChanged);

                               {

                     }

         }

protected void ddlActive_SelectedIndexChanged(object sender, System.EventArgs e)

    {

        int active;

        int.TryParse(ddlActive.SelectedValue, out active);

        Telerik.Web.UI.GridEditableItem editableItem = (sender as Telerik.Web.UI.RadComboBox).NamingContainer as Telerik.Web.UI.GridEditableItem;

        Telerik.Web.UI.RadComboBox ddl = editableItem["iParticipationStatusId"].Controls[0] as Telerik.Web.UI.RadComboBox;

        ddl.DataSource = codeTablesMng.GetCodeTable("tbl_code_ParticipationStatus", "iActiveId", active);

        ddl.DataBind();

         }

The problem that in update it's work and in Insert it's not work.

Please your help.

Thank you.

Chaya



Veli
Telerik team
 answered on 22 Jun 2010
1 answer
82 views

Hello All,

 

   I have two DropBownBoxes in a Modal Pop Up extender.  But when I click to see the dropdown contents, the list is put behind the pop up how do I change this?

 

Thank you in advance

Shinu
Top achievements
Rank 2
 answered on 22 Jun 2010
1 answer
154 views
hi!

i am using radtreeview databind... here is my code...

 

<telerik:RadTreeView ID="RadTreeView1" runat="server" DataFieldID="emailid"

 

 

DataTextField="name" DataSourceID="SqlDataSource1" Skin="Sitefinity" >

 

 

 

<DataBindings>

 

 

 

<telerik:RadTreeNodeBinding Expanded="true" />

 

 

</DataBindings>

 

 

</telerik:RadTreeView>

 

 

<asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>


cs page code is....

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

connectionString = System.Configuration.

ConfigurationSettings.AppSettings["connstring"];

 

 

 

 

SqlDataSource1.ConnectionString = connectionString;

SqlDataSource1.SelectCommand =

"select * from chat_status where tempstatus='online'";

 

 

}

from this i can able to get the names from my table but its not look like treeview structure...
i am getting only the root node.. whats wrong with this code... plz help me...

thanks..in advance...

Shinu
Top achievements
Rank 2
 answered on 22 Jun 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?