Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
263 views
Hello telerik,
I have used Radgrid Export To Excel with format='ExcelML'.
I want exported excel sheet to fit all columns of grid into single page horizontally so that I can print it directly.
How can I achieve this?
Kostadin
Telerik team
 answered on 30 Sep 2013
1 answer
120 views
Hi,
i have a templatecolumn in radgrid like. I also have EnablePostBackOnRowClick=true
<telerik:GridTemplateColumn UniqueName="XmlInfo" AllowFiltering="false">
    <ItemTemplate>
        <asp:HyperLink ID="HyperLinkInfo" runat="server" Text="Info" style="cursor:pointer"></asp:HyperLink>
        <telerik:RadToolTip ID="RadToolTipInputXml" Position="BottomLeft" Width="300" Sticky="true" runat="server" TargetControlID="HyperLinkInfo">
            <p>afdafasf</p>
 
                 
        </telerik:RadToolTip>
    </ItemTemplate>
</telerik:GridTemplateColumn>
When i select the content of the tooltip to copy it the radgrid fires the postback on selected row.
Can some one help?
Eyup
Telerik team
 answered on 30 Sep 2013
9 answers
361 views
Hello,

I have a RadGrid that contains a confirm dialog. I can localize the message in the dialog using a local resource file, but the text on the buttons are always "OK" and "Cancel". Is it possible to translate these buttons using local or global (peferably) resource files?

<telerik:GridButtonColumn HeaderText="Delete" meta:resourcekey="delete" CommandName="DeleteRole" ConfirmDialogType="RadWindow" ConfirmText="Delete this role?" ButtonType="ImageButton" ImageUrl="~/Images/Icons/delete.png"></telerik:GridButtonColumn>

I already found a workaround on this forum. I know it's possible to do this using the following javascript, but I prefer to add the resource files and not add javascript code on all my pages (a lot) that use confirm dialogs.

<script type="text/javascript">
Telerik.Web.UI.RadWindowUtils.Localization =
{
  "OK" : "Yes",
  "Cancel" : "No"
};
</script>

Princy
Top achievements
Rank 2
 answered on 30 Sep 2013
1 answer
120 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
182 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
892 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
188 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
283 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
552 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
88 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?