Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
147 views

Hi  guys... 

 

¿How i can put only the Header in the first page and Footer in the last Page when i export the Grid to PDF?

 

Thanks a lot.

 

currently version: 2013.2.717.40

Alertas
Top achievements
Rank 1
 answered on 13 Apr 2015
0 answers
100 views

So I have a RadContextMenu like below:

 

<telerik:RadContextMenu ID="rcMenuLoggedInUser" runat="server" EnableRoundedCorners="true" EnableShadows="true" OnItemClick="rcMenuLoggedInUser_ItemClick">
                   <Items>
                   <telerik:RadMenuItem Text="Settings" ImageUrl="~/Images/Settings_Blue.png" >
                                    <Items>
                                        <telerik:RadMenuItem Text="Client">
                                            <Items>
                                                <telerik:RadMenuItem Text="Add New Client" Value="Add New Client"></telerik:RadMenuItem>
                                                <telerik:RadMenuItem Text="Client List" Value="Client List"></telerik:RadMenuItem>
                                            </Items>
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem Text="User">
                                            <Items>
                                                <telerik:RadMenuItem Text="Add New User" Value="Add New User"></telerik:RadMenuItem>
                                                <telerik:RadMenuItem Text="User List" Value="User List"></telerik:RadMenuItem>
                                            </Items>
                                        </telerik:RadMenuItem>
                                    </Items>
                   </telerik:RadMenuItem>
                   <telerik:RadMenuItem Text="Profile" Value="Profile" ImageUrl="~/Images/Profile_Blue.png" />
                   <telerik:RadMenuItem Text="Logout" Value="Logout" ImageUrl="~/Images/Logout_Blue.png" />
                   </Items>
                   </telerik:RadContextMenu>

 

In the rcMenuLoggedInUser_ItemClick event in C#, I have case statements to detect which item was clicked and act upon that one.  This works fine the first time, but after that the OnItemClick event never fires again.  Now I should say, that this does work correctly on my local computer.  However, when I publish to my server where the website is housed, that is where it does not work. Once I publish and type in my URL to my website on my test server, the OnItemClick event only seems to fire one time.  If I try to click on any item after that first time, nothing happens.

 

Any idea as to what I am doing wrong?

 

Thanks,

 

Brad

Brad
Top achievements
Rank 1
 asked on 13 Apr 2015
1 answer
86 views
Hello,
I have problem with resources in Telerik scheduler custom template, to be specific InlineInsertTemplate.

I don't use separate ascx file for appointment layout.
Everything is in one aspx file and one cs file.

I can find the controls with resources and their values,in RadScheduler1_AppointmentCommand command insert I can put them inside a test label and the values are correct.
I make global public variables from resources so I should be able to add manually the resources but I tried many things and everything failed.

Main problem is i can not add resources. In default template everything works fine, resources are added to database.

Some of my tries:


protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
    {
    if (e.Container.Mode == SchedulerFormMode.Insert)   
        {
    Resource resPracownik = new Resource();//i create manually resource
    resPracownik.Key = "Pracownik";
    resPracownik.Text = TextBoxPracownik.ToString();
    e.Appointment.Resources.Add(resPracownik);//this doesn't
    
    TextBox TitleTextBox = (TextBox)e.Container.FindControl("TitleTextBox");
    TitleTextBox.Text = e.Appointment.Subject;//this works

protected void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e)
    {
    if (e.CommandName == "Insert"){
            RadComboBox RadComboBoxPracownik = (RadComboBox)e.Container.FindControl("RadComboBoxPracownik");//finding combobox withj resource value
            TextBox TextBoxPracownik = (TextBox)e.Container.FindControl("TextBoxPracownik");//finding hidden helping text box
            TextBoxPracownik.Text = RadComboBoxPracownik.SelectedItem.Value.ToString();//setting text box value same as combobox so i can easier bind it
            tempPracownik = RadComboBoxPracownik.SelectedItem.Value.ToString();//setting global variable
            
            Label1.Text = "status= " + tempStatus + "\npracownik= " + tempPracownik + "\ntyp= " + tempTyp;//this shows that the values are correct, the just dont bind
Plamen
Telerik team
 answered on 13 Apr 2015
3 answers
47 views

Hi Support Team / Telerik Users,

1 Source to 1 Destination is working fine,however the business requirement change and need to add another RadGrid control as another source. Any sample code for my issue?

 

Regards,

 Jok Garcia

Daniel
Telerik team
 answered on 13 Apr 2015
1 answer
112 views

I can drag a RadToolBarButton and drop it into a RadTextBox and have it drop where I want it to go without any code.

 I need to customize the text that is dropped.  By default, the NaviageUrl value is the text which is dropped into the RadTextBox.  How can I specify what the drop text is?

Here is my ASCX code.

 

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TSQLParamForm.ascx.cs" Inherits="WebApp.Controls.Forms.TSQLParamForm" %>
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>

        <telerik:AjaxSetting AjaxControlID="formulaTB">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="formulaTB" UpdatePanelCssClass="" />
                <telerik:AjaxUpdatedControl ControlID="AttributeToolBar" UpdatePanelCssClass="" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="AttributeToolBar">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="formulaTB" UpdatePanelCssClass="" />
                <telerik:AjaxUpdatedControl ControlID="AttributeToolBar" UpdatePanelCssClass="" />
            </UpdatedControls>
        </telerik:AjaxSetting>

    </AjaxSettings>
</telerik:RadAjaxManagerProxy>


<telerik:RadTextBox runat="server" ID="formulaTB" Rows="5" MaxLength="4000" Width="100%" InputType="Text" RenderMode="Lightweight" TextMode="MultiLine">
</telerik:RadTextBox>
<telerik:RadToolBar runat="server" ID="AttributeToolBar" Width="100%" SingleClick="None">
    <Items>
        <telerik:RadToolBarButton runat="server" Text="@Attr1" Value="@Attr1" NavigateUrl="@Attr1">
        </telerik:RadToolBarButton>
        <telerik:RadToolBarButton runat="server" Text="@Attr2" Value="@Attr2" NavigateUrl="@Attr2">
        </telerik:RadToolBarButton>
    </Items>
</telerik:RadToolBar>

 

 

Ivan Danchev
Telerik team
 answered on 13 Apr 2015
2 answers
170 views

I have a several RadTextBox controls on the same form.  All are using ClientEvents-OnValueChanged,  but the larger multi-line RadTextBox controls are firing ClientEvents-OnValueChanged when you just click into the control then out again.  Smaller multi-line RadTextBox controls behave correctly.   So far it seems to be related more to the length of text in the RadTextBox rather than the number of rows.  I'm using IE 11.

I've reproduced the behaviour in this smaller page (snippet) .  All three RadTextBox inputs have the same MaxLength and Width and all use the ClientEvents-OnValueChanged event.

The first multi-line RadTextbox incorrectly fires ClientEvents-OnValueChanged the first time you click inside it then click away.  The second multi-line RadTextbox correctly only fires ClientEvents-OnValueChanged when something has actually changed.  The only difference between the two is the length of the actual text - both are showing vertical scroll bars on my screen .

<head runat="server">
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <script src="//code.jquery.com/jquery-2.1.3.min.js"  id="JQueryScript"></script>
    <script type="text/javascript">
        function ItemChanged() {
            $("#divInfo").text($("#divInfo").text() + "First Changed;");
        }
        function SecondChanged() {
            $("#divInfo2").text($("#divInfo2").text() + "Second Changed;");
        }
        function OtherChanged() {
            $("#divInfo2").text($("#divInfo2").text() + "Other Changed;");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
        <telerik:RadToolTipManager ID="RadToolTipManager2" runat="server" RelativeTo="Element" Position="TopCenter" AutoTooltipify="true" ContentScrolling="Default" />
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" AutoSizeBehaviors="WidthProportional" AutoSize="true" MinWidth="500" />
        <telerik:RadAjaxManager runat="server" ID="radAjaxManager1" />
    <div>
    <div style="margin-bottom: 2em;"><div id="divInfo" > </div><div id="divInfo2" > </div></div>
        This large input incorrectly fires ClientEvents-OnValueChanged when you click inside then outside
    <telerik:RadTextBox ID="RadTextBox1" Width="90%" TextMode="MultiLine" Rows="3" MaxLength="2000" ClientEvents-OnValueChanged="ItemChanged"  runat="server" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur luctus convallis sapien vestibulum tempus. Mauris vehicula feugiat felis vel sagittis. Ut fermentum posuere ligula vel ultrices. Aenean in libero placerat, mollis nulla in, suscipit dolor. Cras iaculis diam eros, sed ullamcorper magna adipiscing in. Vivamus vel diam ac nisl venenatis lacinia. Nulla volutpat, dolor id convallis fermentum, nunc odio convallis sapien, sed pharetra nunc lacus vel tortor. Quisque varius tincidunt ligula, pretium egestas felis convallis sed. Donec fringilla nisl in sagittis varius. Sed fringilla felis quis mauris adipiscing, in rutrum libero feugiat. Cras condimentum, elit non lobortis molestie, nunc purus condimentum purus, sed sagittis mauris tellus at purus.
 
Morbi vitae lacus ornare, rhoncus ipsum sed, dictum enim. Aliquam consequat nisi massa, eu ullamcorper felis aliquet ut. Mauris ornare fermentum enim, non accumsan purus tempus sit amet. Ut neque metus, molestie ut consequat sit amet, dignissim ac felis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Morbi gravida augue sed felis convallis, in vestibulum erat pharetra. Aliquam vel adipiscing nunc. Fusce pretium nunc sed odio imperdiet, eu faucibus enim laoreet. Praesent in ante mattis, blandit elit vitae, convallis arcu." />
        <br /><br />
        these two only fire ClientEvents-OnValueChanged when you actually change the value
    <telerik:RadTextBox ID="RadTextBox2" Width="90%" TextMode="MultiLine" Rows="3" MaxLength="2000" ClientEvents-OnValueChanged="SecondChanged" runat="server" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur luctus convallis sapien vestibulum tempus. Mauris vehicula feugiat felis vel sagittis. Ut fermentum posuere ligula vel ultrices. Aenean in libero placerat, mollis nulla in, suscipit dolor. Cras iaculis diam eros, sed ullamcorper magna adipiscing in. Vivamus vel diam ac nisl venenatis lacinia. Nulla volutpat, dolor id convallis fermentum, nunc odio convallis sapien, sed pharetra nunc lacus vel tortor. Quisque varius tincidunt ligula, pretium egestas felis convallis sed. Donec fringilla nisl in sagittis varius. Sed fringilla felis quis mauris adipiscing, in rutrum libero feugiat. Cras condimentum, elit non lobortis molestie, nunc purus condimentum purus, sed sagittis mauris tellus at purus" />
    <br /><br />
    <telerik:RadTextBox ID="RadTextBox3" Width="90%" TextMode="SingleLine" Rows="1" MaxLength="2000" ClientEvents-OnValueChanged="OtherChanged" runat="server" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit." />
    <br /><br />
    <asp:TextBox ID="txtTest" runat="server" Text="Somewhere else to click  no client events" />
    </div>
    </form>
</body>
</html>

Vasil
Telerik team
 answered on 13 Apr 2015
1 answer
231 views

Hi,

I am using radgrid CHECKLIST filtering, and able to bind the data using FilterCheckListItemsRequested event. My radgrid has textBoxes inside the bound columns and user can enter the values and all the calculations are handled in client side. When filter icon is clicked, systems sends a CALLBACK request and filter list is not updated with latest values entered for the column. However, if there is any postback or partial postback happens, the list is updated with latest values.

I want to update the checklist filter listbox with items on callback. Is it possible to do this? Or is there any way to update the filter listbox on client side?

 

Regards,

Saikrishna

Konstantin Dikov
Telerik team
 answered on 13 Apr 2015
4 answers
148 views

The single VCR buttons go foward or backward month by month, but the double VCR buttons go forward or backward 3 months at a time.  Can RadDatePicker be configured to make the double VCR buttons go year-by-year?  This is consistent with other javascript calendars.

Thanks.

 

 

An
Top achievements
Rank 1
 answered on 13 Apr 2015
4 answers
119 views

hi

I use last telerik version .

in radGrid with batch mode I use OnBatchEditOpened client side. OnBatchEditOpened is fired for all column but when I update my telerik dll it isn't fired for the column they I set display false.

why ?

Pavlina
Telerik team
 answered on 13 Apr 2015
1 answer
229 views

Hello,

I've used the resizeToFit() function to re-size my columns in the following function:

function pageLoad() {
                var grid = $find('<%= RadGrid2.ClientID %>');
                var master = grid.get_masterTableView();
                var columns = master.get_columns();
                for (var i = 0; i < columns.length; i++) {
                    columns[i].resizeToFit();
                }
            }

Which works very well - however after the re-size I'm left with a ton of white space to the right of my newly sized columns. I know this is cause in part by having static headers however I need to keep the static headers.

So is there a work around to keep the static headers and still re-size the RadGrid to fit the new column size?

Pavlina
Telerik team
 answered on 13 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?