Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
379 views

Hello!

I've downloaded source code for AJAX Controls (Telerik.Web.UI_2010_3_1317_Source.zip). Then I opened it in the VS 2010, switch project target framework to .NET 4 and tried to build solution. But there was an error in file CSDialog.cs:

Error 3 The type or namespace name 'BasicClient' could not be found (are you missing a using directive or an assembly reference?) D:\3rd party\Telerik\dev\Telerik.Web.UI\Editor\DialogControls\CSDialog.cs 160 18 Telerik.Web.UI

How to fix it and build DLL for .NET 4.0?

Ianko
Telerik team
 answered on 20 May 2015
6 answers
213 views
I have a basic wizard setup with OnNextButtonClick and OnFinishButtonClick events inside a panel that updates itself with a RadAjaxManager, and when I click on the  NEXT/FINISH buttons the event in the serverside fires twice I tested this with a breakpoint at the start of the method, my markup looks like this


<telerik:RadScriptManager ID="rasmMain" runat="server" />
    <telerik:RadAjaxManager ID="ramMain" runat="server" DefaultLoadingPanelID="rapMain">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pTest">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pTest" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="rapMain" runat="server" />
 
    <telerik:RadAjaxPanel ID="rapResponseScripts" runat="server"></telerik:RadAjaxPanel>
 
    <asp:Panel ID="pTest" runat="server" ClientIDMode="Static">
        <telerik:RadWizard ID="rwNuevoCliente" runat="server" OnNextButtonClick="rwNuevoCliente_NextButtonClick" OnFinishButtonClick="rwNuevoCliente_FinishButtonClick">
            <WizardSteps>
                <telerik:RadWizardStep Title="Informacion General" CausesValidation="true" ValidationGroup="Step1" ImageUrl="../../images/png/store12.png" >
                </telerik:RadWizardStep>
                <telerik:RadWizardStep Title="Detalles de Contacto" CausesValidation="true" ValidationGroup="Step2" ImageUrl="../../images/png/call46.png">
                </telerik:RadWizardStep>
                <telerik:RadWizardStep Title="Condiciones Comerciales" ImageUrl="../../images/png/commercial40.png">
                </telerik:RadWizardStep>
            </WizardSteps>
        </telerik:RadWizard>
    </asp:Panel>


In the code behind I just have an empty method declaration.
Plamen
Telerik team
 answered on 20 May 2015
1 answer
53 views

Hello,

 When I load an image in the editor control and then click print the image is not printed in the top left corner fully. It seems there is a large margin on top and left. I have tried to look up how to change this and I do not see. Any suggestions?

 Thanks,

Warren

 

Vessy
Telerik team
 answered on 19 May 2015
1 answer
329 views

Hello,

If i set Height for RadMenuItem, as soon as i move my cursor to that item it shows selected item different. Please find attached screen shot for your reference. AND one more question how to i set Height for whole RadMainMenu insted of 100%?

 

<telerik:RadMenu ID="RadMainMenu" GroupSettings-Height="100px" runat="server" EnableRoundedCorners="true" EnableShadows="true"  Skin="WebBlue"  Flow="Vertical" Height="100%" Width="200px">    
  <Items>
    <telerik:RadMenuItem Text="My Profile" Value="mnuProfile" Font-Size="Large" Height="35px"></telerik:RadMenuItem>
    <telerik:RadMenuItem IsSeparator="true"></telerik:RadMenuItem
    <telerik:RadMenuItem Text="My Referrals" Value="mnuReferrals"  Font-Size="Large"></telerik:RadMenuItem>                           </Items>        
</telerik:RadMenu>

 

Ivan Danchev
Telerik team
 answered on 19 May 2015
1 answer
163 views

I have a date time picker which I've ajaxified using RadAjaxManager (and have tried using a RadAjaxPanel instead) but when ajaxified, the min/max dates don't update when set from code behind.  In my form, I have some dropdowns and based on what's selected I need to change what date range would be considered valid.  When I set the min/max date from the server side, it doesn't actually apply it (if you inspect the page you can still see the old min/max dates set).  If I remove the RadAjaxManager (or RadAjaxPanel) then it works fine.

 [code - Markup]

        <div class='col-md-1 text-right pull-left'>
            <asp:Label ID='lblPersonal_DoB' runat='server' Text='DoB' CssClass="label-middle-vertical" AssociatedControlID="dtPersonal_DoB" /> 
            <asp:Label ID='lblPersonal_Age' runat='server' Text='' CssClass="label-middle-vertical" />
        </div>
        <div class='col-md-2'>
            <telerik:RadDatePicker ID="dtPersonal_DoB" runat="server" CssClass='form-control' placeholder='DoB' Skin='Metro' aria-describedby='lblPersonal_DoB' AutoCompleteType="Disabled" DateInput-AutoCompleteType="Disabled" DateInput-CssClass="border-hide" OnSelectedDateChanged="dtPersonal_DoB_SelectedDateChanged" ClientEvents-OnDateSelected="dtPersonal_DoB_SelectedDateChanged" AutoPostBack="True" />

            <asp:RequiredFieldValidator ID="valPersonal_DoB" runat="server" ControlToValidate="dtPersonal_DoB" Display="Dynamic" ForeColor="Red" Text="* Required" ErrorMessage="Date of birth is required" ValidationGroup="PersonalInfo" Enabled="false" />
        </div>

[/code]

[code - Ajaxification]

<telerik:RadAjaxManagerProxy runat="server" ID="ajaxManager_PersonalDetails">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="dtPersonal_DoB">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="lblPersonal_Age" />
                <telerik:AjaxUpdatedControl ControlID="valPersonal_SSN" />
                <telerik:AjaxUpdatedControl ControlID="txtPersonal_SSN" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

[/code]

[code - Server side]

if (value)
{
//If enabling SSN requirement then require being an adult
dtPersonal_DoB.MinDate = (new DateTime(1901, 1, 1, 0, 0, 0));
dtPersonal_DoB.MaxDate = DateTime.Now.Date.AddYears(-18);
}
else
{
//If disabling SSN requirement, then prevent entering an age of 21+
dtPersonal_DoB.MinDate = DateTime.Now.Date.AddYears(-20);
dtPersonal_DoB.MaxDate = DateTime.Now.Date;
}

[/code]

Any ideas?

Kris
Top achievements
Rank 1
 answered on 19 May 2015
9 answers
550 views
Hi,
I bind the DataTable to the RadGrid with autogeneratecolumns set to true. The columns i bind have need to be set with a different widths.
Here s the code below The TableLayout is set to "AUTO".

<telerik:RadGrid runat="server" ID="_grid" OnItemCreated="_grid_Created" AutoGenerateColumns="true" OnNeedDataSource="_grid_Need"><br>    <MasterTableView TableLayout="Auto"><br>    </MasterTableView><br>    </telerik:RadGrid

And below is the code behind
protected void _grid_Need(object sender, GridNeedDataSourceEventArgs e)
        {
            List<Wraps> d = new List<Wraps>();

            for (int i = 0; i < 10; i++)
            {
                d.Add(new Wraps
                {
                    ID = i,
                    Address = "SOme thing//////.....",
                    Name = string.Format("SOME NAME {0}", i),
                    Zip = (i + 1000).ToString()
                });
            }
            _grid.DataSource = d;
        }

        protected void _grid_Created(object sender, GridItemEventArgs e)
        {
            foreach (GridColumn column in e.Item.OwnerTableView.RenderColumns)
            {
                column.HeaderStyle.Width = Unit.Pixel(50);
                column.ItemStyle.Width = Unit.Pixel(50);
            }
        }

Nothing happens . Kindly help me so that i be able to set different widths for diffrent columns ????

Thanks & Regards,
Francis P.
Julian
Top achievements
Rank 1
 answered on 19 May 2015
4 answers
165 views

Hi

This is my code to bind data to a RadComboBox:

With ddlFutureCode
.Items.Clear()
.Items.Add(New RadComboBoxItem("", 0))
.DataSource = l_ds.Tables(1)
.DataTextField = "Name"
.DataValueField = "Value"
.DataBind()
End With

 

It works fine, and places a blank row at the top if no selection is to be made. However:

With this code )setting a default tot blank row disappears so if the default value isn't required ist not possible to select a blank row.

With ddlFutureCode
 .Items.Clear()
.Items.Add(New RadComboBoxItem("", 0))
.DataSource = l_ds.Tables(1)
.DataTextField = "Name"
.DataValueField = "Value"
.DataBind()

End With
ddlFutureCode.SelectedItem.Text = FutureCode

 Andy

 

 

Andy Green
Top achievements
Rank 2
 answered on 19 May 2015
3 answers
152 views
i am using ASP.NET AJAX Q1 2010.   I would like to suppress the javascript confirm dialog when the user clicks the "Add Custom" button.  I would also like to suppress "the spell check is complete" javascript alert box.  How can i achieve this?  I am using the RadSpell control, not the RadEditor built-in spell checker. 
Sam
Top achievements
Rank 1
 answered on 19 May 2015
1 answer
196 views

We are using near-latest version of the product.  In our web site we have to display dynamically generated (via javascript) context menus.  We cannot generate them on the back-end because we don't know how many or what options there will be until the user takes certain actions.  However, each menu item  will come from the master menu-bar that is created on the back-end for the overall site.

When the user takes action, we use javascript to determine which menu items from the master menu-bar are needed within the context menu.  For each item, we create a new item and add it to the context menu (ps - the context menu is declaratively created on our master page's html, albeit with no menu items):

var newItem = new Telerik.Web.UI.RadMenuItem();
newItem.set_text(mainItem.get_text());
var navUrl = mainItem.get_navigateUrl();
newItem.set_navigateUrl(navUrl);

popMenu.get_items().add(newItem);

The problem is, when the navigate url is rendered, it is total mangled.

Here is an example link from the 'main' menu bar (which works perfectly):

<a class="rmLink" style="width: 268px;" href="javascript:goDnetPage('attrition_total_exempt','4829','functions/reports/front_ends/pages/HRMetrics.aspx','Report=attrition_total_exempt') "><span class="rmText">Total Attrition</span></a>

The 'value' of the href attribute, when assigned into the 'newItem' object is correct - we have console.logged it (via newItem.get_navigateUrl) and it is accurate.  However, when the menu item is rendered by the menu code, it comes out as:

 <a class="rmLink" href="javascript:goDnetPage(" '="" hrmetrics.aspx','report="attrition_total_exempt')" pages="" front_ends="" reports="" attrition_total_exempt','4829','functions=""><span class="rmText">Total Attrition</span></a>

Something, I presume within the Telerik js, is totally munging up the href value, creating additional attributes for the 'a' element as it sees fit.  I have tried replacing/escaping single ticks and slashes, but cannot seem to get it to come out right.

 Any advice would be appreciated.  Thank you.

Ivan Danchev
Telerik team
 answered on 19 May 2015
1 answer
118 views
If I tab through fields and enter data quickly, sometimes the dropdown doesnt close on he previous field, esp if nothing was selected from it. Is there anyway to ensure no other dropdowns are open when a new combobox is focused?
Aneliya Petkova
Telerik team
 answered on 19 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?