Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views
It seems we can not exit the full screen mode with the Esc key on the keyboard.
This is a standard option for all simmilar controls, so any plans to implement it here?
Shinu
Top achievements
Rank 2
 answered on 30 Sep 2013
1 answer
126 views
Greetings,
I am using radscheduler's drag&drop facility to move appointments. i am using OnClientAppointmentMoving method for creating a javascript pop-up for confirmation which includes the old and new endTime for the appointment.
I am using eventArgs.get_targetSlot().get_endTime() method to retrieve the new endTime however the value I receive is 30 min after the beginning time no matter what. (There's no problem for the value of old begin/end times) Also the duration is always shown as 30 min even though the appointments vary between 3 to 4,5 hours.
below is the javascript method I am using for confirmation

function OnClientAppointmentMoveEnd(sender, eventArgs) {
                sender._dragging = false;
                var slot = eventArgs.get_appointment();
                var target = eventArgs.get_targetSlot();
                var msg = 'Please review assignment' + '\n' + '\n' +
                'Ticket: ' + slot.get_id().toString() + '\n' + '\n' +
                    'Current FE: ' + slot.get_resources().getResource(0)._text + '\n' +
                    'Current End: ' + slot.get_end().toString() + '\n' + '\n' +
                    'New FE: ' + target._resource._text + '\n' +
                    'New End: ' + target.get_endTime().toString() + '\n' + '\n' +
                    'Do you wish to proceed ?';
                if (!confirm(msg)) {
                    eventArgs.set_cancel(true);
                    slot.set_backColor('');
                    alert('Ticket reassignment cancelled');
                }
                sender._dragging = true;
            }

Any help is highly appreciated

Kind regards
Boyan Dimitrov
Telerik team
 answered on 30 Sep 2013
1 answer
812 views
Hi,
I am curious to know what is the most common approach to remove non-ascii and to encode special characters to make PDF export work properly?

The matter is I have separate processing of client-side and server-side grids: changing text, cutting something with regexp, etc.

So, using
item[column].Text = HttpContext.Current.Server.Encode(item[column].Text)
in dozen of places of ItemDataBound event is not very comfortable. Besides, this Encode method does not help with non-ascii characters, for them I have to use
Regex.Replace(description.ToString(), @"[^\u001F-\u007F]"string.Empty)

I would prefer something like PdfExporting event and replace e.RawHTML. But it's tricky, cause I need to replace cell content,
not HTML tags...

Br-r-r, looks too clumsy.
Kostadin
Telerik team
 answered on 30 Sep 2013
2 answers
139 views

Hello telerik team,

   1.I Have following situation ...In My rad grid ..I am put  <CommandItemTemplate> in that i have radtoolBar  ..here  i declare ...a Button when ever  user click on button. I want to  Display one  rad window ..it  consist two  radListBox  ..of rad Column List in One  radListBox  ..an other One is  empty ..Whenever user select click Some Button Exist Between both List Box ...I want to Save same as it user selection Based On That I want Bind  show the column selection based to  radGrid ..... How to achieve scenario ..it is Possible ..here I tried But unable to visible the  radwindow ...
  <telerik:RadGrid ID="RadGrid1" runat="server" OnItemCommand="RadGrid1_ItemCommand">
            <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top">
                <CommandItemTemplate>
                    <telerik:RadToolBar ID="RadToolBar1" runat="server" OnClientButtonClicking="onToolBarClientButtonClicking"
                        AutoPostBack="true">
                        <Items>
                            <telerik:RadToolBarButton Text="Customized Column" CommandName="CustomizedCol">
                            </telerik:RadToolBarButton>
                        </Items>
                    </telerik:RadToolBar>
                </CommandItemTemplate>
 
<CommandItemTemplate>
<telerik:radWindow id="radWindow " runat="server" visible="false" >
<body>
</CommandItemTemplate>
 
   
                <CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="true" />
                <Columns>
</radgrid>

protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
   {
 
       if (e.CommandName == "CustomizedCol")
       {
 
           GridCommandItem item = (GridCommandItem)e.Item;
           RadWindow RadWindow1 = (RadWindow)item.FindControl("RadWindow1");
           RadWindow1.Visible = true;
           
       }
   }

here I not able to view The radwindow ...all code sucessfuly excute ..with out any exception ...But i am not getting the radwindow How to achieve above secnario..

Based on user section I want  to ...only selected Column .....


Thanks
sairam



 
Sairam
Top achievements
Rank 1
 answered on 30 Sep 2013
11 answers
214 views

Hi all,

I have a problem with using skins for my Telerik ASP.NET Ajax controls (version  2012.2.607.35). When I try to select a skin using the smart tag, I get the message 'no skins assembly found' etc., telling me to add the Telerik.Web.UI.Skins.dll to my bin folder. But, the dll is there in my bin folder. There is also a reference to it in my project references. I have this problem in every project I work in. I just tested it with a simple page like below:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Newtest._Default" %>
  
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        <Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
</Scripts>
    </telerik:RadScriptManager>
    <div>
      
    </div>
    <telerik:RadScheduler ID="RadScheduler1" runat="server">
    </telerik:RadScheduler>
    </form>
</body>
</html>

There is nothing going on in codebehind, Telerik.Web.UI.dll and Telerik.Web.UI.Skins.dll are both present in the bin folder and they both have the same version number.

What I am doing wrong?

regards,

Peter

Shinu
Top achievements
Rank 2
 answered on 30 Sep 2013
5 answers
497 views
I have two RadComboBox

1. Single Column Combo box
2. Multi Column Combo box

The scenario is when i pick a value from combobox1 that value will use as parameter
for combobox2 whereas combobox2 is a multi column....to filter the items of combobox2 that are related to
the value of combobox1

ex.
(combobox1 items)
*apple
*tuna
*orange
*berry

(when i pick "tuna")

then when i click the combox2 dropdown it will show all related data from the value of combobox1 where is "tuna"

results of combobox2:
ID Description Price Product
----------------------------------------------------------------------------
12 Big 102222 tuna
13 Small 100000 tuna
14 Medium 111000 tuna
15 Clean 345545 tuna


Shinu
Top achievements
Rank 2
 answered on 30 Sep 2013
0 answers
65 views
I currently have a javascrpt page load event shown below:

function pageLoad(sender, args) {
    $find('<%=RadGrid1.ClientID %>').get_masterTableView().hideFilterItem();
}

I need to add code to this pagLoad function to check if any child grid is expanded. If they are I need to change the following RadioButtonList (shown below) to "Yes"; else "No":

<asp:RadioButtonList runat="server" ID="rbExpand" AutoPostBack="true" 
        RepeatDirection="Horizontal"
        onselectedindexchanged="rbExpand_SelectedIndexChanged" visible="false" >
    <asp:ListItem Text="Yes"></asp:ListItem>
    <asp:ListItem Text="No" Selected="True"></asp:ListItem>
</asp:RadioButtonList>

How can I accomplish this?

Thanks

I no longer need this question answered. I'm not sure how to "close" this post.

Darin
Top achievements
Rank 1
 asked on 28 Sep 2013
1 answer
47 views
please what are some of the webhosting sites that support telerik tools. thank you
moegal
Top achievements
Rank 1
 answered on 28 Sep 2013
6 answers
624 views
when i try to use update like "http://www.telerik.com/help/aspnet-ajax/grid-insert-update-delete-at-database-level.html"

that is my code
GridEditableItem editedItem = (GridEditableItem)e.Item;
    
        string brand_ups = (editedItem["brand_ups"].Controls[0] as TextBox).Text; --> bring rad grid value not new value in textbox
        string HBL_num = (editedItem["HBL_num"].Controls[0] as TextBox).Text; --> bring rad grid value not new value in textbox
        string HBL_Status = (editedItem["HBL_Status"].Controls[0] as TextBox).Text; --> bring rad grid value not new value in textbox
        int shipment_id = Convert.ToInt32(Shipid.SelectedValue);
        try
        {
            SqlCommand updatehbl = new SqlCommand("*********", *********);
            updatehbl.CommandType = CommandType.StoredProcedure;
            connection.Open();
            updatehbl.Parameters.Add("@shipment_ID", SqlDbType.Int).Value = shipment_id;
            updatehbl.Parameters.Add("@brand_ups", SqlDbType.NVarChar, 20).Value = brand_ups;
            updatehbl.Parameters.Add("@HBL_num", SqlDbType.NVarChar, 20).Value = HBL_num;
            updatehbl.Parameters.Add("@HBL_Status", SqlDbType.NVarChar, 30).Value = HBL_Status;
            updatehbl.ExecuteNonQuery();
            connection.Close();
            }

any advice will pleasure me
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Sep 2013
2 answers
601 views
Hi to all,

I have a radgrid, rad textbox and 2 radbutton(next and prev)

my scenario is the radgrid are populated with data and set the property of "single row selection on client"

ex.
filename
apple  
Cherry.
tuna    
dog
bottle

when the user select the 2nd row of radgrid and click the radbutton "next", the value of 3rd row will pass to the radtextbox and automatically the 3rd row will be selected and highlighted.
if the user click the radbutton "Prev" , the value of 1st row will pass to the radtextbox and automatically the 1st row will be selected and highlighted.


*Note: if there's "NO" selected row and click the next button the first row must be the return value and automatically the first row will be selected and highlighted. if it reached the end of the record it will just prompt message "end"

and vise versa of previous button.


I want to solve this via JavaScript....

please help
huejiitech
Top achievements
Rank 1
 answered on 28 Sep 2013
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?