Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
665 views
Hi. I'm trying to enable or disable the datepicker control from the client with the datepicker.enable() and datepicker.disable() but it doesn't seem to work. The browser throws an "object doesn't support this property or method". It works okay on a radtextbox control. Am I using the correct method? Thanks.

function ShowHideRefreshItems() {
                    var dp = $find("<%= rdpRefresh.ClientID %>");
                    //var textbox = $find("<%= rntSupportRef.ClientID %>");
                    if (dp.get_enabled())
                        dp.disable();
                    else
                        dp.enable();
                }

<asp:CheckBox ID="cbRefresh" runat="server" Text="Request a refresh of environment" ValidationGroup="vgEnvironmentUpdate" onclick="ShowHideRefreshItems()" />
<telerik:RadDatePicker ID="rdpRefresh" Skin="Default" runat="server" DateInput-ValidationGroup="vgEnvironmentUpdate"
                                    Enabled="false">
                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                    </Calendar>
                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                    <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" ValidationGroup="vgEnvironmentUpdate">
                                    </DateInput>
                                </telerik:RadDatePicker>
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 28 Sep 2010
2 answers
268 views
Hi,
i have a big problem with radtextbox when the field content the character < and send a Insert procedure.
Example:
When the user enters the notes produced by other software in the database (sqlserver 2008 type field varchar(2000), it needs' to include this description:

Note product:
This product in very good,
the steeel is: OC2<HO3

and the software save it ok. (the software is a desktop application).

The select reads the data correctly and displays in a  RadTextBox correctly in a aspnet application. But when I do insert the orders, I get the error:

Errore di run-time di Microsoft JScript: Sys.WebForms.PageRequestManagerServerErrorException: Errore sconosciuto durante l'elaborazione della richiesta sul server. Codice di stato restituito dal server: 500
 
File: Telerik.Web.UI.WebResource_6.axd

it happens before the event:
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
 

Dizionario - Visualizza dizionario dettagliato

  1. congiunzione
    1. but
    2. yet
    3. however
    4. still

The problem is when the "<" character is inserted between two letters without a space.
The problem not persist when the character is insert with space, example: OC2 < HO3
 

Dizionario - Visualizza dizionario dettagliato

  1. sostantivo
    1. la
  2. abbreviazione
    1. A
  3. pronome
    1. it
    2. her
    3. you
  4. articolo
    1. the
    2. a
    3. an

It 's a problem of the radtextbox ?  or you can not enter the character < without spaces between two letters?

Tnks
Aurelio
Aurelio Righetti
Top achievements
Rank 1
 answered on 27 Sep 2010
2 answers
128 views
Hi there , 

I am not sure if its a feature or an issue, but it appears as though I cannot uncheck a checked item in the radlistbox when the radlisbox is disabled 

e.g. 

var list = $find('<%=RadListBoxRisk1.CLientID %>')
alert(list.get_enabled() ) // displays false
var checkeditems = list.get_checkedItems()
for (x =0; x <checkeditems.length ;x ++  )
{
 checkeditems[x].uncheck()
  alert(checkeditems[x].get_checked());  // displays true
}

if I change the code to this .. it works 

var list = $find('<%=RadListBoxRiskEffects.CLientID %>')
list.set_enabled(true)
alert(list.get_enabled() ) // displays true
var checkeditems = list.get_checkedItems()
for (x =0; x <checkeditems.length ;x ++  )
{
 checkeditems[x].uncheck()
  alert(checkeditems[x].get_checked());  // displays false
}
list.set_enabled(false)

thanks 

Mark
mark
Top achievements
Rank 1
 answered on 27 Sep 2010
1 answer
91 views
Hi,

Is it possible to change the background colour of the whole grid row?

Thx a lot.

MG 
Daniel
Telerik team
 answered on 27 Sep 2010
1 answer
73 views
I want to make the first auto generated column in my grid not editable when in edit/insert mode but 
AutoGeneratedColumns[0].IsEditable is read only.  I've tried removing the table row that contain the form controls during the item created event but that causes a casting error further down the event chain.  Can I do what I want here and if so what's the easiest way to do it?  Thanks.
Daniel
Telerik team
 answered on 27 Sep 2010
1 answer
151 views
Hello,

I have RadPanelBar with 3 RadPanelItems.  Each RadPanelItem hosts a Silverlight app (RadGridViews mostly)  that have some number of database records displayed and an interface to input query parameters (searching for records, filtering, etc.).  Every Silverlight app differs in height based on the number of records returned for any given request, thus making their height variable.  Is there a way to resize the RadPanel size in response to every change in the size of the Silverlight app's content?

Also, if I have the Silverlight apps inside of SharePoint Web Parts (which, in turn, are placed inside RadPanelItems), how much would it complicate things?

Thank you!
-VK. 
Vassili King
Top achievements
Rank 1
 answered on 27 Sep 2010
2 answers
80 views

 

 

The page worked fine by itself.. But once I made it a .ascx that is part of a .aspx that is part of a master page I get the error below (when I uncomment that line)..

that radscriptmanager is there in the masterpage

 

<

 

 

telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="True"

 

 

 

 

 

 

 

EnableScriptCombine="False" CompositeScript-ScriptMode="Auto" ScriptMode="Auto"

 

 

 

 

 

 

 

AsyncPostBackTimeout="360000">

 

 

 

 

 

 

 

<Scripts>

 

 

 

 

 

 

 

<asp:ScriptReference Path="~/Shared/script/AjaxLibrary/MicrosoftAjax.js" />

 

 

 

 

 

 

 

<asp:ScriptReference Path="~/Shared/script/AjaxLibrary/MicrosoftAjaxCore.js" />

 

 

 

 

 

 

 

<asp:ScriptReference Path="~/Shared/script/jPrototypes.js" />

 

 

 

 

 

 

 

</Scripts>

 

 

 

 

 

 

 

<CdnSettings TelerikCdn="Disabled" />

 

 

 

 

 

 

 

</telerik:RadScriptManager>

 

 

 

 


but I get this error below.. any ideas? (I should be able to work aroud it but just wondering what is so special about assigning a value to the NumericTextBox.ID)


Microsoft JScript runtime error: 'undefined' is null or not an object

 

{

 

var a=this;b.UI.Control.initializeBase(a);a._element=c;c.control=a;var d=a.get_role();d&&c.setAttribute("role",d)}

 

 

 




////Current Amount Hope6

 

 

TableCell tcCurrentAmountHope6 = new TableCell();

 

 

 

RadNumericTextBox tbCurrentAmountHope6 = new RadNumericTextBox();

 

tbCurrentAmountHope6.Type =

 

NumericType.Currency;

 

 

 

//tbCurrentAmountHope6.ID = "tbCurrentAmountHope6" + level1.Level1 + cc.ftaskId;

 

tbCurrentAmountHope6.Attributes[

 

"TaskId"] = cc.ftaskId.ToString();

 

tbCurrentAmountHope6.Attributes[

 

"FundType"] = "H6";

 

tbCurrentAmountHope6.Text = cc.H6ExpCQ.ToString();

tbCurrentAmountHope6.Visible = cc.H6Uses.ToString() ==

 

"0.00" ? false : true;

 

tcCurrentAmountHope6.Controls.Add(tbCurrentAmountHope6);

trItem3.Controls.Add(tcCurrentAmountHope6);

matt
Top achievements
Rank 1
 answered on 27 Sep 2010
8 answers
197 views
Hello... I have RadGrid 5.1.1.0 and after the execution of a command, I want to display an alert telling about the success or failure of the process..... I tried several ways to accomplish this (all of them from Telerik pages) but none worked.

For example, I have this in gdvProcesos_ItemCommand event of the RadGrid:

if (e.CommandName == "Ejecutar")
{
 
/* Some long process */
 
  string msg = "success or error message";
  RadAjaxManager1.ResponseScripts.Add("radalert('" + msg + "', 330, 210);");
}

I have also a RadAjaxManager control, defined this way:
<rad:RadWindowManager runat="server" ID="wndManager" Skin="WebBlue" Language="es-CL">
    <Windows>
        <rad:RadWindow ID="wndJerarquia" VisibleStatusbar="false"  VisibleTitlebar="false" NavigateUrl="VerJerarquia.aspx" VisibleOnPageLoad="false" runat="server" Modal="true" DestroyOnClose="true" />
    </Windows>
</rad:RadWindowManager>
<rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <rad:AjaxSetting AjaxControlID="gdvProcesos">
            <UpdatedControls>
                <rad:AjaxUpdatedControl ControlID="gdvProcesos" />
            </UpdatedControls>
        </rad:AjaxSetting>
    </AjaxSettings>
</rad:RadAjaxManager>


Any help will be greatly appreciated. Thanks

Jaime
Jaime
Top achievements
Rank 1
 answered on 27 Sep 2010
11 answers
1.0K+ views
Hi,
I have a page in which i have a RadGrid and a custom control (which contains a RadTreeView) .

The custom control contains a RadAjaxManager Proxy which specifies the RadTree to update various things inside the control.

On my aspx page, i have an instance of a the RadAjaxManager and i have specified that my custom control should update the RadGrid.

The problem is that the loading panel does not seem to appear when the RadGrid is updated via the user control, even though the rad grid gets updated. Clicking on the RadTreeView in the user control will cause a loading panel to appear inside the user control, due to the fact of using the RadAjaxManagerProxy.
If i click on the actual RadGrid, which uses the RadAjaxManager on the page , the loading panel does appear.
Am I missing something in order to get a loading panel to appear when it is triggered by a custom user control?

Here is my RadAjaxManager definition:
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="myAdminTree"
                <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1"
                <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1"/> 
                </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 

myAdminTree is the custom user control which contains a RadTreeView among other things
Brad
Top achievements
Rank 1
 answered on 27 Sep 2010
7 answers
489 views
HI all,
I want to create a dropdown menu like this one from Microsofts Ajax Control Toolkit. I think RadMenu might be the best one to use, right? But how could I then remove the border around the Main Menu? I've checked the forum, KB and RadMenu CSS Description but I could not find it. Any ideas?
Many thanks in advance!
Ken
Top achievements
Rank 2
 answered on 27 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?