Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
229 views

Hi,
I have two issues with Kendo exporting PDF.
I am following the example from:
https://demos.telerik.com/kendo-ui/pdf-export/index
First one:
Here are two images attached showing the difference between WebPage text and PDF text. The text is vertical in my webpage but was changed to horizontal after being exported to PDF.

 

Thanks

 

 

Vessy
Telerik team
 answered on 22 Jun 2017
0 answers
118 views

Hello 

 

I will try to be clear 

i have a page with a Usercontrol (UC) in it 

The UC have an AjaxManagerProxy and a grid with edit template 

     

 

I have a page with a grid with editTemplate and inside the edit another grid 

 

 

each grid is within a usercontrol (UC ) so each UC have its own ajaxManagerProxy 

Yaniv
Top achievements
Rank 1
 asked on 22 Jun 2017
0 answers
69 views

Hi Team,

I have Radgrid which has 2 Details Tables. On first details tables I have GridHyperLinkColumn, on click of which I open a Radwindow. In this Radwindow I have couple of fields whose data is relevant to First details tables. There is one asp.net button "Save" which should close the Radwindow and update/refresh the Data in the First Details tables.

Can you please help me to get this done.

Thanks.

sangram
Top achievements
Rank 1
 asked on 22 Jun 2017
0 answers
85 views
I use set DataSource by javascript and use dataBind method for RadGrid. But when postback, DataSource and Items Of RadGrid is null so selectedItems method cannot run (exception: out of range because datasource is null). Can somebody help me, please ???. Thanks all
Simple
Top achievements
Rank 1
 asked on 22 Jun 2017
3 answers
190 views

A pair of RadTimePickers I have for selecting the beginning and end of a shift are displaying the timeview incorrectly after being enabled and having the starttime and endtime values set. They both show every slot from 12AM to 11:45PM, but starting with 12AM selecting a slot displays the value that SHOULD be seen, 8:30AM in this case, and continues for each subsequent slot in the same manner until the endtime slot, whose correct value is 5:15PM at the 8:45AM slot on the selection view. When the binding event is called a second time, the timeviews for both RTPs are correctly shown, going from 8:30AM to 5:15PM. HTML markup of the RTPs in question as follows, as well as the code-behind for the binding event.

//HTML//
<telerik:RadTimePicker ID="tpStartTime" runat="server" EnableTyping="false" TimeView-Columns="4" TimeView-Interval="00:15:00" Enabled="false"></telerik:RadTimePicker>
<telerik:RadTimePicker ID="tpEndTime" runat="server" EnableTyping="false" TimeView-Columns="4" TimeView-Interval="00:15:00" Enabled="false"></telerik:RadTimePicker>
 
//C#//
protected void dpOriginalDate_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
    {
        DateTime[] shift = getShift((DateTime)dpOriginalDate.SelectedDate);
        tpStartTime.Enabled = tpEndTime.Enabled = true;
        tpStartTime.TimeView.StartTime = shift[0].TimeOfDay;
        tpStartTime.TimeView.EndTime = shift[1].TimeOfDay;
        tpEndTime.TimeView.StartTime = shift[0].AddMinutes(15).TimeOfDay;
        tpEndTime.TimeView.EndTime = shift[1].AddMinutes(15).TimeOfDay;
    }

 

Page_Load contains Page.DataBind(); which appears to be the cause. Do I have to do without it or is there a workaround?

Eyup
Telerik team
 answered on 22 Jun 2017
2 answers
239 views

Is it doable?

i have a radlistboxitem list on which i would like to add label for, so that we will be able to select the checkbox using the label not the checkbox.

 

So far, i have this code, but it is not working. Your help will be greatly appreciated.

aspx

<telerik:RadListBox runat="server" ID="testRadlist" AutoPostBack="true" RenderMode="Lightweight" CheckBoxes="true" SelectionMode="Multiple" Width="215PX">
<ItemTemplate>
    <asp:Label runat="server" Text="Text" ID="lblRadlist" AssociatedControlID=""></asp:Label>
</ItemTemplate>
<Items>
     
</Items>

 

aspx.cs

testRadlist.Items.Clear();
         
 
        testRadlist.Items.Add(new RadListBoxItem {
            Value = "Summary",
           // Text = "Summary"
        });
        testRadlist.Items.Add(new RadListBoxItem
        {
            Value = "Edit",
            //Text = "Edit"
        });
 
        for (int i=0; i < testRadlist.Items.Count; i++)
        {
            testRadlist.Items[i].DataBind();
            Label lbl = (Label)testRadlist.Items[i].FindControl("lblRadlist");
            string val = lbl.Text;
 
        }
    }
 
 
blessed
Top achievements
Rank 1
 answered on 22 Jun 2017
10 answers
200 views

Everytime i use, i give it a zip file, fill, select the newer Telerik.Web.UI.dll, and click "Get Assembly" and i get a server error.

 

 

Albert
Top achievements
Rank 1
 answered on 22 Jun 2017
2 answers
573 views
Hi I am running into an issue i have to change RadComboxBox style which used as a filtering control

I could use the below codes and inbuilt style properties but it doesnt work on its items, the items style still remain unchanged. So plz help to find in out

<FilterTemplate>
                                <telerik:RadComboBox NoWrap="true" Font-Names="Arial" Font-Size="9px" ID="NameComboBox" AutoPostBack="true"
                                    Height="100px" Width="100%" runat="server">
                                </telerik:RadComboBox>

regards,
Appu
Allan Shenoy
Top achievements
Rank 1
 answered on 21 Jun 2017
1 answer
367 views

I'm trying to remove a child node. This is working fine as long as it is not the top child node under the Parent

Parent

     child1

     child2

     child3

     child4

If I remove child2, 3 or 4; it works. But if I remove child1, the Parent is removed along with any remaining child nodes.

The behavior I expected is that I should be able to remove any of the child nodes in any order and the Parent node should be removed only when the last remaining child node is removed - but even that is debatable since what if I wanted to add more child nodes to the Parent node after removing everything?

 

Here is my code:

Dim remove_node As RadTreeNode = rtvClientSpecs.FindNode(Function(x) x.Value = e.CommandArgument.ToString())           remove_node.ParentNode.Nodes.Remove(remove_node)

 

Richard
Top achievements
Rank 1
 answered on 21 Jun 2017
0 answers
172 views

Hi!

On Razor View i`m trying to bind Grid to ExcludedAffiliations property of EntertainerModel:

public class EntertainerModel : BaseNopEntityModel

{

    public int Id { get; set; }
    public string Description { get; set; }

...
   public GridModel<ExcludedAffiliationModel> ExcludedAffiliations { get; set; }
}

public class ExcludedAffiliationModel : BaseNopEntityModel
{
        public int Id { get; set; }
        public string Name { get; set; }
        public bool Excluded { get; set; }
}

View definition:

    @(Html.Telerik().Grid<ExcludedAffiliationModel>(Model.ExcludedAffiliations.Data)
                    .Name("entertainer-excluded-affiliation-grid")
                    .Columns(columns =>
                    {
                        columns.Bound(x => x.Excluded)
                        .Width(15)
                        .Centered()
                        .Template(x => Html.CheckBox("chbxAffiliationExcluded" + x.Id, x.Excluded, new { @class = "apply-affiliation-excluded", affiliationId = x.Id, entertainerId = Model.Id }))
                        .ClientTemplate("<# if (Excluded == true)  { #> <input value='true' type='checkbox' checked='checked' id='chbxAffiliationExcluded<#= Id #>' affiliationId='<#= Id #>'  entertainerId = '<#= Model.Id #>' class='apply-affiliation-excluded' /> <# } else { #> <input type='checkbox' id='chbxAffiliationExcluded<#= Id #>' affiliationId ='<#= Id #>' entertainerId = '<#= Model.Id #>' class='apply-affiliation-excluded' /> <# } #>");

                        columns.Bound(x => x.Id)
                        .Width(100)
                        .Centered()
                        .ReadOnly();

                        columns.Bound(x => x.Name)
                        .Width(250)
                        .ReadOnly();
                    }))

Controller action method:

public ActionResult Edit(EntertainerModel model, bool continueEditing)
{

...

}

As a result i see the grid with three columns and can click checkbox in the column "Excluded".

But when i click standard submit button on the page, action method of controller called but the property ExcludedAffiliations of the model is null.

My question is: is it exists a way for binding grid data back to model property ?

Thanks a lot.

 

Vladimir
Top achievements
Rank 1
 asked on 21 Jun 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?