Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
277 views
Hi, I'm trying to use some of the client events of the DateInput in the RadDatePicker and anytime I assign any of the client events a function, not only do they not work, but the date validation stops running and clicking the calendar icon does not bring up the calendar.

One example is as follows:

<telerik:RadDatePicker ID="rdpNotifyDate" runat="server">
    <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>
    <DatePopupButton HoverImageUrl="" ImageUrl="" />
    <DateInput DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy">
        <ClientEvents OnBlur="blur();" />
    </DateInput>
</telerik:RadDatePicker>

I can put any code in the blur() function, none of them work (alerts, changing the values of controls on the page, even nothing at all).  Just having that assignment to do something OnBlur stops the control from working. 

I've tried using the OnFocus and OnValueChanged clientevents as well, with the same results.

Just for fun I even tried to create a new RadDatePicker on a different page:

<telerik:RadDatePicker ID="rdp" runat="server" ClientEvents-OnDateSelected="alert('hello');"></telerik:RadDatePicker>

Without the client event, it works.  With the event, nothing works.. no calendar popup, no date validation.

Thanks in advance,

Chris
Chris McGrath
Top achievements
Rank 1
 answered on 09 Jul 2010
3 answers
352 views
Hello,
When we copy lengthy text into the MS Excel cell then it is automatically overflow to the next cell if it is empty and it does not wrap or hide.

I wana achieve the same above behavior in RadGrid cell when user will copy paste text into the cell.

Please advise

Thanks
Dimo
Telerik team
 answered on 09 Jul 2010
3 answers
166 views

Hi

I wantto use RadToolTipManager/RadToolTip in our project to show warningmessages/tooltip, there is requirement to show more than one tooltip at a time.

Could you please suggest me to show more no of tooltips at a time using clientside code.

Thanks

Balaji Velasiri

Svetlina Anati
Telerik team
 answered on 09 Jul 2010
2 answers
129 views
Could not load file or assembly 'Telerik.Web.Design, Version=2009.3.1208.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified.


For some reason I am getting this error on the server.  The application only has the assemblies in the BIN folder.  The version is says it can't load is the version in the BIN. 

Nothing specific to this project has changed.  The only thing I know that recently we upgraded to SQL Server 2008 on that server.

Any ideas of what might be going on??

Robert
Top achievements
Rank 1
 answered on 09 Jul 2010
7 answers
600 views
I have 2 listboxes and would like allow only one way transfers. By default both right and left button show up. Is it possible to disable/remove one of them .

Thanks

Bradley Fitzpatrick
Top achievements
Rank 1
 answered on 09 Jul 2010
1 answer
203 views
Hello everyone,
I've been getting a js error lately that i want to get rid of:

Error: Sys.InvalidOperationException: Two components with the same id 'ctl00_ContentSelections_radContentSelections_i0_i0_subErgonomics120_lstContentSelectionsSubpane' can't be added to the application.
Source File: http://localhost:54435/DeskActive.Client.WebClient/ScriptResource.axd?d=ZZ-uWVOQLk4iKpDOvcKKEpsfax_tLKMv1L3WPP2LUwF4v7bvjA7Z-zekEk9fPhCHk2XNJP_8B994TL8dds4CE_llnczGrBE5mAD5jlOobV41&t=ffffffff9e001c21
Line: 4044

I'll describe the scenario with more details:
I have a menu bar and a radPanelBar.
When a menu item on the menu is clicked the radPanelBar contents change. Each item of the bar has a child item with a List View.
The problem occurs if I'm watching menu item 1, go to menu item 2, and COME back to menu item 1. If I keep going to item 3, 4 or 5 it does not happen..

Thanks in advance!!

Sergio

P.S: there is an image attached to help visualize the idea.
Iana Tsolova
Telerik team
 answered on 09 Jul 2010
3 answers
302 views
I want to move selected rows from one radgrid to another. how can that be achieved with rad grid since the number of columns in the grid will change dynamically (the count is not fixed). 
Pavlina
Telerik team
 answered on 09 Jul 2010
1 answer
148 views
I've got a page on which the user can do a search and a grid is populated via ajax.  When the user clicks a link in one of the search results and sees that it is not where he wants to go, he clicks back, but the search results are gone.  Is there something that can be done to force the page to bring back the cached version of the page (assuming that the cached copy is how the page looked before clicking the link)?

We tried a solution that saved the search results in a cookie, but this caused the results to show up every time we went to the search page, not just when we click back.

Ultimately I just want the search grid to be populated when they click back, but not when they go to the page fresh.

Any way this is possible?
Tsvetina
Telerik team
 answered on 09 Jul 2010
1 answer
112 views
Check out the code below  
 
 
protected void MetadataRadGrid_ItemDataBound(object sender, GridItemEventArgs e)  
 
{  
 
if (e.Item is GridEditableItem && e.Item.IsInEditMode)  
 
{  
 
GridEditableItem gridEditableItem = (GridEditableItem)e.Item;  
 
GridEditManager gridEditManager = gridEditableItem.EditManager;  
 
ArrayList metadataTypeArrayList = new ArrayList();  
 
metadataTypeArrayList.Add("Boolean");  
 
metadataTypeArrayList.Add("Int");  
 
metadataTypeArrayList.Add("String");  
 
GridDropDownColumnEditor gridDropDownColumnEditor = (GridDropDownColumnEditor)gridEditManager.GetColumnEditor("MetadataType");  
 
gridDropDownColumnEditor.DataSource = metadataTypeArrayList;  
 
gridDropDownColumnEditor.DataBind();  
 
}  
 
}  
 
 
 
<telerik:GridDropDownColumn UniqueName="MetadataType" DataField="MetadataType" HeaderText="MetadataType"  SortExpression="MetadataType" > 
                      
                    </telerik:GridDropDownColumn>      
 





hi,

i am using GridDropDownColumn in radgrid and facing some problems

 

Firstly GridDropDownColumn is not displaying the datafield value.
I have defined datafield datatext properties of the GridDropDownColumn so that it can pick the values of RadGrid datasource and display it when ever the grid displaying the data in read mode.

 

 

I also have populated GridDropDownColumn if it is in editable state with a hashtable in ItemDataBound event  of RadGrid.Means it will only be populated with hashtable in edit mode or add mode.

How ever when i add a new record in the grid and press ok...it shows me all the data values in this GridDropDownColumn field.

 

 

 





Please tell me the solution of this problem

Secondly tell me the way how can i store some values in this GridDropDownColumn  in ItemCommand event when in edit mode.

Reply me ASAP.


 

 

 

Iana Tsolova
Telerik team
 answered on 09 Jul 2010
2 answers
166 views
In our home page, we have a div for toolbar, there are a couple of radtoolbars with many radtoolbarbuttons in them. simply e.g.

<div id="toolbar">
      ......

 

 

<div id="tbextra">

 

 

 

<telerik:radtoolbar id="OthersToolBar" runat="server" onclientbuttonclicked="otherbarClicked"

 

 

 

backcolor="#181437" forecolor="White"

 

 

 

onbuttonclick="OthersToolBar_ButtonClick">

 

 

 

<Items>

 

 

 

<telerik:RadToolBarButton runat="server" ImageUrl="~/Images/help_32.png"

 

 

 

PostBack="False" ImagePosition="AboveText" Text="Help" Value="HELP">

 

 

 

</telerik:RadToolBarButton>

 

 

 

<telerik:RadToolBarButton runat="server" ImageUrl="~/Images/logout_32.png"

 

 

 

PostBack="true" ImagePosition="AboveText" Text="Log Out" Value="LOGOUT"

 

 

 

CommandName="LOGOUT">

 

 

 

</telerik:RadToolBarButton>

 

 

 

<telerik:RadToolBarButton runat="server" ImageUrl="~/Images/cancel_all_32.png"

 

 

 

PostBack="False" ImagePosition="AboveText" Text="Cancel All" Value="CANCELALL">

 

 

 

</telerik:RadToolBarButton>

 

 

 

</Items>

 

 

 

</telerik:radtoolbar>

 

 

 

</div>

 

.........
</div>

 

 

<telerik:radwindowmanager id="WinMan" runat="server" showcontentduringload="False"

 

 

 

restrictionzoneid="surface" behavior="Default" initialbehavior="None" destroyonclose="True"

 

 

 

autosize="True" backcolor="#9900CC" bordercolor="#000066" borderstyle="Solid"

 

 

 

borderwidth="4px" font-names="Arial,Helvetica,Sans Serif" visibletitlebar="False"

 

 

 

onclientdragstart="WindowDragStart">

 

 

 

</telerik:radwindowmanager>

 



I set the javascript as following.

 

 

function WindowDragStart(oWin, args) {

 

 

 

var resizeExtender = oWin._resizeExtender;

 

resizeExtender.set_hideIframes(

 

false);

 

}



The problem is when I start to drag any opened radwindow to close to the <div id="toolbar"> in the home page. The each RadToolBarButton inside the <div id="toolbar"> change color.

Please advise what cause the color changed.

Thanks,

Yao
Fiko
Telerik team
 answered on 09 Jul 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?