Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
Hi,

I have a radgrid that has 3 columns.  The first two are databound and the last is a gridtemplate column.

Initially only the first two rows are populated via a sql data source.  Then on the itemdatabound event I take a values from the first columns and use this derive a new value which is then added into the label control on the tempatecolumn.

 

This works fine up until the point I need to sort.  Sorting works on the first two columns but not on the template one.

Have I reached a limitation or am I doing something wrong?
Eyup
Telerik team
 answered on 20 May 2015
1 answer
85 views
                   i want export grid to portable document  format with same skin 
Pavlina
Telerik team
 answered on 20 May 2015
1 answer
139 views

Hi,

 

I am using Telerik radgrid with HeaderStyle-Width as percentages for grid columns. If the zoom the browser zoom level to more than 100%, header text is being truncated. Grid width is set to 100%.

Grid has following client settings.

1. UseStaticHeaders = true

2. AllowScroll = True

How can I overcome the issue of truncated header text.

Thanks

Pavlina
Telerik team
 answered on 20 May 2015
12 answers
403 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
218 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
55 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
339 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
177 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
583 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
175 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?