Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
221 views
Hello

I have a radgrid of Telerik 2012. The columns are created dynamically as GridBoundColumns. I have set the property EnableHeaderContextFilterMenu to true. My requirement is that, how to put a header context filter menu to the dynamically created gridboundcolumn.

Any help will be highly appreciated.

Regards
Jiju.
Jiju
Top achievements
Rank 1
 answered on 15 May 2012
1 answer
94 views
I am implementing RadAsyncUpload, and need to give keyboard-only users the ability to browse for files to upload. 
Following the Keyboard Support section of the demo site, I have set DisablePlugins=True, and added the recommended javascript to enable the tab and accesskey support. 

I am running into the following issues:
* Tabbing to the control and Select button works, but the Enter key does not activate selection of a file.  
* The accesskey does not activate the Select button at all. 

Any demos/help would be greatly appreciated! 

Here's the code I'm using:

<table id="Table11" cellspacing="1" cellpadding="1" runat="server">
           <tr >
            <td valign="bottom">
            <telerik:RadAsyncUpload
                     ID="RadAsyncUpload1"
                     EnableTheming="true"        TabIndex="1"
                     runat="server"
                     Width="300px"              
                     TargetFolder="~/App_Data"
                     MultipleFileSelection="Automatic"
                     OnClientAdded="keyboardSupport"
                     AccessKey="K"
                     OnClientFileUploading="onClientFileUploading"
                     DisablePlugins="true"/>
            </td>
        </tr>
</table>
 
<script language="javascript" type="text/javascript">
 
  var $ = $telerik.$;
  var $cancelButton;
 
  // keyboardSupport() method activates focusing with TAB key
  function keyboardSupport(sender, args) {
    var $fileInput = $(".ruFileInput", args.get_row());
    $fileInput.attr("tabindex", "1")
 
    var $selectButton = $(".ruButton.ruBrowse", args.get_row());
 
    $fileInput.focus(function (e) {
      $selectButton.css("border", "1px dotted");
    });
 
    $fileInput.blur(function (e) {
      $selectButton.css("border", "0px");
    });
 
    $fileInput.keydown(function (event) {
 
      if (event.keyCode == '13') {
        event.preventDefault();
      }
 
    });
 
    if ($telerik.isIE) {
      $fileInput.keydown(function (e) {
        if (e.keyCode == Sys.UI.Key.tab && e.shiftKey == false) {
          $fileInput.parent().focus();
        }
        if (e.keyCode == Sys.UI.Key.tab && e.shiftKey == true) {
          e.preventDefault();
          if ($cancelButton != undefined)
            $cancelButton.focus();
          else
            $fileInput.parent().focus();
        }
      });
    }
  }
 
  function onClientFileUploading(sender, args) {
    $(".ruFileInput", args.get_row()).attr("tabindex", "-1");
 
    $cancelButton = $(".ruCancel", args.get_row());
    $cancelButton.attr("tabindex", "1");
  }
 
  $(document).keydown(function (e) {
    var accesskey = $find("<%=RadAsyncUpload1.ClientID%>")._accessKey;
  
    if ($telerik.isFirefox) {
      if (e.altKey == true && e.shiftKey == true && e.which == accesskey.charCodeAt()) {
        focusOnFirstInput();
      }
    }
 
    if ($telerik.isChrome || $telerik.isSafari || $telerik.isIE) {
 
      if (e.altKey == true && e.which == accesskey.charCodeAt()) {
        focusOnFirstInput();
      }
    }
  });
 
  function focusOnFirstInput() {
    var firstInput = $("input[type='file']", $get("<%=RadAsyncUpload1.ClientID%>"))[0];
    if (firstInput != undefined) {
      firstInput.focus();
    }
  }
  
  </script>
Bozhidar
Telerik team
 answered on 15 May 2012
4 answers
256 views
Can someone post a link or code to guide me to learn the following? I want to do 2 distinct things, separately when the right click of teh radcontext menu.
1. how to use a value or datakeyvalue from a RadGrid with a radcontextmenu to incorporate it into the NavigateUrl of the radcontext menu item. I'd like to place the value into a querystring and go to another page.
2. Not as important, but can I open up a modal pop up window from the radcontextmenu and also reference the datakeyname and/or a cell value to populate controls in the window from a database.

Any help would be greatly appreciated, I'm getting exhausted from the searching and not getting anywhere. Just point me in the right direction!

Regards, Nimesh Jagota
rdmptn
Top achievements
Rank 1
 answered on 15 May 2012
3 answers
104 views
Hi. At the moment I am using a repeater control to create a row of imagebuttons. The item template for the repeater control actually has 3 things in it: (1) an imagebutton, (2) just a <br /> and (3) a label to put a title under each image.

The imagebuttons each link to another page (depending on the image). However, some/all of the images has suboptions and each suboption is related to a different specific page. So image1 has a page "page1", image2 has page page2.... but page1 has sub pages sub1, sub2, sub3 so this is ideal for a menu structure. Thus, I would like to make the images into the high level row of a menu - ie hovering over an image will cause the related menu to drop down.

The rad menu allows a small icon to be used in menu items but the formating doesn't really seem to support the menu items essentially being an image. One option I have is to leave the image buttons in a repeater control but to move the labels into a separate menu and to try to set the width of the menu items to match the corresponding image button. However, this seems an imperfect solution. I've also considered creating a context menu for each image but this doesn't seem an ideal solution either.

I really want the high level menu to be image based with a name label. On the telerik site (the page that I am using to create this post) there is a menu bar at the top of the page that says "DevTools for .NET" on the left with Products, online demos, free trials... However, below some items, such as Products, there is a small down arrow that, if clicked, opens a panel (although at the moment there is a bug on my PC because it is transparent not white background so is mixed with the underlying text from the page). Aside from the bug that sort of solution would also work for me and I'm not sure if its using a tooltip panel but I'm ideally looking for an easy way to populate the solution I implement.

Any suggestions?
Peter
Telerik team
 answered on 15 May 2012
2 answers
156 views

Dear Telerik Team,

 

we would like to get a custom filter control in the code behind. Here is the scenario:

 

ASPX:

                                <telerik:GridBoundColumn DataField="PropertyCaption" HeaderText="Property Caption"

                                    AllowFiltering="true">

                                    <HeaderStyle Width="25%" />

                                    <FilterTemplate>

                                        <telerik:RadComboBox ID="rcbPropertyCaptionFilter" runat="server" DataValueField="PropertyCaption"

                                            DataTextField="PropertyCaption" EmptyMessage="All Types" AllowCustomText="true"

                                            CheckBoxes="true" EnableCheckAllItemsCheckBox="true" Width="240px" />

                                        <telerik:RadButton ID="btnPropertyCaptionFilter" text="Filter" runat="server" OnClick="btnPropertyCaptionFilter_Click"/>

                                    </FilterTemplate>

                                </telerik:GridBoundColumn>

 

CS:

        protected void btnPropertyCaptionFilter_Click(object sender, EventArgs e)

        {

            // Here I need to find control rcbPropertyCaptionFilter

 

            // This access doesn't work

            object example1 = RadGridDataPoints.MasterTableView.FindControl("rcbPropertyCaptionFilter");

            object example2 = RadGridDataPoints.FindControl("rcbPropertyCaptionFilter");

        }

 

Could you tell us please, how to access the rcbPropertyCaptionFilter” control?

Thank you in advance.

SCT

 

SCT
Top achievements
Rank 1
 answered on 15 May 2012
2 answers
192 views
Hello,
I have RadScheduler connected to sql server table provided by entity data source.
I want to be able to right click on an appointment or any occurrence and get a context menu that contains "Reserve" button.
Clicking "Reserve" will update a field in the related table.

I have customized the Appointment Context Menu as the following:

<AppointmentContextMenus>
                <telerik:RadSchedulerContextMenu runat="server" ID="ContextMenu1">
                    <Items>
                        <telerik:RadMenuItem Text="Edit" Value="CommandEdit" />
                        <telerik:RadMenuItem Text="Reserve" Value="Reserve" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
</AppointmentContextMenus>

I handled the event of AppointmentContextMenuItemClicking

The question is: How could I update the appointment occurrence ?? taking into consideration that the occurrence doesn't has a record at the database table so I can update it. 

protected void RadScheduler1_AppointmentContextMenuItemClicking(object sender, Telerik.Web.UI.AppointmentContextMenuItemClickingEventArgs e)
   {
       if (e.MenuItem.Value == "Reserve")
       {
           // Code will go here
       }
   }


Thanks in advance
L
Top achievements
Rank 1
 answered on 15 May 2012
1 answer
113 views
Hi, I have an applecation in wich I use a Radrotator as a menu declared as follows.
<table id="tblPregs" runat="server" border="0" cellpadding="3" cellspacing="2"
                        
                        
                        
                       style="border-style: none; background-image: url('http://localhost:37735/img/icloud-background.jpg'); height: 519px; margin-right: 0px;">
                
                       <tr style="border-style: none"><td align="center" class="style1"
                              <telerik:RadRotator ID="RadRotator1" runat="server" Height="471px"
                               Width="936px" RotatorType="CarouselButtons" BorderStyle="None"
                                  style="margin-right: 0px">
                             <Items>
                            
                            <telerik:RadRotatorItem>
                           <ItemTemplate>
                           <asp:ImageButton ID="imagen"  runat="server" ImageUrl="~/img/1336657679_application-vnd.oasis.opendocument.spreadsheet-template.png"  ToolTip="Reportes"/>
                           </ItemTemplate>
                           </telerik:RadRotatorItem>
                            <telerik:RadRotatorItem>
                           <ItemTemplate>
                           <asp:ImageButton ID="ImageButton1"  runat="server" ImageUrl="~/img/1336659958_control-panel-px-png.png"   ToolTip="Dashboards de control" />
                           </ItemTemplate>
                           </telerik:RadRotatorItem>
                             <telerik:RadRotatorItem>
                           <ItemTemplate>
                           <asp:ImageButton ID="ImageButton3"  runat="server" ImageUrl="~/img/1336615047_Program-Group.png"  ToolTip="Registro"  />
                           </ItemTemplate>
                           </telerik:RadRotatorItem>
                           </Items>
                         
 
                         
                           </telerik:RadRotator>
 
                           </td></tr>
                   </table>

Depending on the image button I push the user will be redirected to a different page. Now everything works fine.
But the three buttons are always enabled. What I want to do is only enable the current item and disable the other two.

Is it posible to do this?

Hope your help
Slav
Telerik team
 answered on 15 May 2012
1 answer
78 views
Hello Telerik,

Am having some pretty much interesting issues in radchart development.           
Please find my below code. below code is pulling the results on to the chart. but those are not aligning at the appropriate position.

Please find the attached dataset and resulted screen.

Code which is pulling the radchart details:
Code.aspx.vb file


Private Sub ChartLoad(ByRef ds As DataSet, ByRef radchartcontrole As RadChart, ByRef monthlyradchartcontrole As RadChart, ByRef dataXColumnName As String, ByRef dataYColumnName As String,
                                                   ByRef xaxislableName As String, ByRef yaxislableName As String, ByRef monthlyXaxislableName As String, ByRef monthlyYaxislableName As String,
                                                   ByRef monthlyYaxisDataColumn As String, ByRef monthlyXaxisDataColumn As String, ByRef avgDataColumn As String, ByRef charttableValue As Int32,
                                                   ByRef monthlytableValue As Int32, ByRef avgTableValue As Int32, ByRef chartTitle As String, ByRef updatePaneltoHide As UpdatePanel, ByRef timeLinesAvgLabel As String)
        Dim r As New Random()
        Dim rowcount As  Int32= 0
        Dim dt As DataTable = ds.Tables.Item(0)
        Dim list As New List(Of StressClass)

        'BaselineRadChart.DataSource = ds.Tables.Item(0)

        For Each dr As DataRow In dt.Rows
            Dim sc As New StressClass()
            sc.Count = Convert.ToInt32(dr("COUNT"))
            sc.CapacityDelay = Convert.ToInt32(dr("CapacityDelay"))
            list.Add(sc)
        Next

        Dim series As New ChartSeries()
        series.Type = ChartSeriesType.Bar
            series.DataXColumn  = "CapacityDelay"
            series.DataYColumn = "COUNT"
            
            radchartcontrole.Clear()
            radchartcontrole.Series.Add(series)

            radchartcontrole.DataSource = list
            radchartcontrole.DataBind()
            
            radchartcontrole.PlotArea.XAxis.AutoScale = False
            radchartcontrole.PlotArea.XAxis.IsZeroBased = False
            radchartcontrole.Series(0).Appearance.BarWidthPercent = CType("10", Decimal)
            
            radchartcontrole.Series(0).DataYColumn = series.DataXColumn
            radchartcontrole.PlotArea.XAxis.DataLabelsColumn = series.DataYColumn


    End Sub
   


Public Class StressClass

    Private _count As Integer
    Public Property Count() As Integer
        Get
            Return _count
        End Get
        Set(ByVal value As Integer)
            _count = value
        End Set
    End Property


    Private _capacityDelay As Integer
    Public Property CapacityDelay() As Integer
        Get
            Return _capacityDelay
        End Get
        Set(ByVal value As Integer)
            _capacityDelay = value
        End Set
    End Property


End Class






Code.aspx file

<telerik:RadChart AutoLayout="True" Height="450px" ID="CapacityRadChart" runat="server"
                                                Skin="WebBlue" Width="935px">
                                                <ClientSettings EnableZoom="True" ScrollMode= "Both" XScale="10" />
                                                <Appearance>
                                                    <FillStyle MainColor="249, 250, 251">
                                                    </FillStyle>
                                                    <Border Color="160, 170, 182" />
                                                </Appearance>
                                                <Legend Visible="False">
                                                    <Appearance Dimensions-Margins="17.6%, 3%, 1px, 1px" Dimensions-Paddings="2px, 8px, 6px, 3px"
                                                        Position-AlignedPosition="TopRight" Visible="False">
                                                        <ItemTextAppearance TextProperties-Color="102, 102, 102">
                                                        </ItemTextAppearance>
                                                        <FillStyle MainColor="216, 222, 227">
                                                        </FillStyle>
                                                        <Border Color="160, 170, 182" />
                                                    </Appearance>
                                                </Legend>
                                                <PlotArea>
                                                    <YAxis AutoScale="True" AxisMode="Extended">
                                                        <Appearance Color="160, 160, 160">
                                                            <MajorGridLines Color="227, 227, 227" />
                                                            <MinorGridLines Color="227, 227, 227" />
                                                            <TextAppearance AutoTextWrap="False" />
                                                        </Appearance>
                                                        <AxisLabel>
                                                            <TextBlock>
                                                                <Appearance TextProperties-Color="140, 140, 140">
                                                                </Appearance>
                                                            </TextBlock>
                                                        </AxisLabel>
                                                    </YAxis>
                                                    <EmptySeriesMessage Visible="True">
                                                        <Appearance Visible="True">
                                                        </Appearance>
                                                    </EmptySeriesMessage>
                                                    <XAxis AutoScale="True" DataLabelsColumn="RIID's" MaxValue="0" Step="0" MinValue="-30000000">
                                                        <Appearance Color="160, 160, 160">
                                                            <MajorGridLines Color="227, 227, 227" Width="0" />
                                                            <TextAppearance AutoTextWrap="True" TextProperties-Color="140, 140, 140" />
                                                        </Appearance>
                                                        <AxisLabel>
                                                            <TextBlock>
                                                                <Appearance TextProperties-Color="140, 140, 140">
                                                                </Appearance>
                                                            </TextBlock>
                                                        </AxisLabel>
                                                    </XAxis>
                                                    <Appearance Dimensions-Margins="18%, 24%, 12%, 10%">
                                                        <FillStyle FillType="Solid" MainColor="">
                                                        </FillStyle>
                                                    </Appearance>
                                                </PlotArea>
                                                <ChartTitle>
                                                    <Appearance>
                                                        <FillStyle MainColor="">
                                                        </FillStyle>
                                                    </Appearance>
                                                    <TextBlock Text="Capacity Timeliness">
                                                        <Appearance TextProperties-Color="102, 102, 102" TextProperties-Font="Arial, 14pt">
                                                        </Appearance>
                                                    </TextBlock>
                                                </ChartTitle>
                                            </telerik:RadChart>
Petar Marchev
Telerik team
 answered on 15 May 2012
1 answer
109 views
Hello Telerik,

Am having some pretty intresting issues in radchart development.            
Please find my below code. below code is pulling the results on to the chart. but those are not aligning at the appropriate position.

Please find the attached dataset and resulted screen.


Code which is pulling the radchart details:

Private

 

 

Sub ChartLoad1(ByRef ds As DataSet, ByRef radchartcontrole As RadChart, ByRef monthlyradchartcontrole As RadChart, ByRef dataXColumnName As String, ByRef dataYColumnName As String,

 

 

 

ByRef xaxislableName As String, ByRef yaxislableName As String, ByRef monthlyXaxislableName As String, ByRef monthlyYaxislableName As String,

 

 

 

ByRef monthlyYaxisDataColumn As String, ByRef monthlyXaxisDataColumn As String, ByRef avgDataColumn As String, ByRef charttableValue As Int32,

 

 

 

ByRef monthlytableValue As Int32, ByRef avgTableValue As Int32, ByRef chartTitle As String, ByRef updatePaneltoHide As UpdatePanel, ByRef timeLinesAvgLabel As String)

 

 

 


Dim r As New Random()

 

 

 

Dim rowcount As Int32= 0

 

 

 

Dim dt As DataTable = ds.Tables.Item(0)

 

 

 

Dim list As New List(Of StressClass)

 

 

 

For Each dr As DataRow In dt.Rows

 

 

 

Dim sc As New StressClass()

 

sc.Count =

 

Convert.ToInt32(dr("COUNT"))

 

sc.CapacityDelay =

 

Convert.ToInt32(dr("CapacityDelay"))

 

list.Add(sc)

 

 

Next

 

 

 

Dim series As New ChartSeries()

 

series.Type =

 

ChartSeriesType.Bar

 

series.DataXColumn =

 

"CapacityDelay"

 

series.DataYColumn =

 

"COUNT"

 

 

radchartcontrole.Clear()

radchartcontrole.Series.Add(series)

radchartcontrole.DataSource = list

radchartcontrole.DataBind()

 

radchartcontrole.PlotArea.XAxis.AutoScale =

 

False

 

radchartcontrole.PlotArea.XAxis.IsZeroBased =

 

False

 

radchartcontrole.Series(0).Appearance.BarWidthPercent =

 

CType("10", Decimal)

 

 

radchartcontrole.Series(0).DataYColumn = series.DataXColumn

radchartcontrole.PlotArea.XAxis.DataLabelsColumn = series.DataYColumn

 

 

End Sub

 




Public

 

 

Class StressClass
 

 

 

Private _count As Integer
 

 

 

Public Property Count() As Integer
 

 

 

Get
 

 

 

Return _count
 

 

 

End Get
 

 

 

Set(ByVal value As Integer)
 

_count = value

 

 

End Set
 

 

 

End Property
 

 

 

 

Private _capacityDelay As Integer
 

 

 

Public Property CapacityDelay() As Integer
 

 

 

Get
 

 

 

Return _capacityDelay
 

 

 

End Get
 

 

 

Set(ByVal value As Integer)
 

_capacityDelay = value

 

 

End Set
 

 

 

End Property
 

 

End

 

 

Class
 





ASPX code:


<

 

 

telerik:RadChart AutoLayout="True" Height="450px" ID="CapacityRadChart" runat="server"
 

 

 

Skin="WebBlue" Width="935px">
 

 

 

<ClientSettings EnableZoom="True" ScrollMode= "Both" XScale="10" />
 

 

 

<Appearance>
 

 

 

<FillStyle MainColor="249, 250, 251">
 

 

 

</FillStyle>
 

 

 

<Border Color="160, 170, 182" />
 

 

 

</Appearance>
 

 

 

<Legend Visible="False">
 

 

 

<Appearance Dimensions-Margins="17.6%, 3%, 1px, 1px" Dimensions-Paddings="2px, 8px, 6px, 3px"
 

 

 

Position-AlignedPosition="TopRight" Visible="False">
 

 

 

<ItemTextAppearance TextProperties-Color="102, 102, 102">
 

 

 

</ItemTextAppearance>
 

 

 

<FillStyle MainColor="216, 222, 227">
 

 

 

</FillStyle>
 

 

 

<Border Color="160, 170, 182" />
 

 

 

</Appearance>
 

 

 

</Legend>
 

 

 

<PlotArea>
 

 

 

<YAxis AutoScale="True" AxisMode="Extended">
 

 

 

<Appearance Color="160, 160, 160">
 

 

 

<MajorGridLines Color="227, 227, 227" />
 

 

 

<MinorGridLines Color="227, 227, 227" />
 

 

 

<TextAppearance AutoTextWrap="False" />
 

 

 

</Appearance>
 

 

 

<AxisLabel>
 

 

 

<TextBlock>
 

 

 

<Appearance TextProperties-Color="140, 140, 140">
 

 

 

</Appearance>
 

 

 

</TextBlock>
 

 

 

</AxisLabel>
 

 

 

</YAxis>
 

 

 

<EmptySeriesMessage Visible="True">
 

 

 

<Appearance Visible="True">
 

 

 

</Appearance>
 

 

 

</EmptySeriesMessage>
 

 

 

<XAxis AutoScale="True" DataLabelsColumn="RIID's" MaxValue="0" Step="0" MinValue="-30000000">
 

 

 

<Appearance Color="160, 160, 160">
 

 

 

<MajorGridLines Color="227, 227, 227" Width="0" />
 

 

 

<TextAppearance AutoTextWrap="True" TextProperties-Color="140, 140, 140" />
 

 

 

</Appearance>
 

 

 

<AxisLabel>
 

 

 

<TextBlock>
 

 

 

<Appearance TextProperties-Color="140, 140, 140">
 

 

 

</Appearance>
 

 

 

</TextBlock>
 

 

 

</AxisLabel>
 

 

 

</XAxis>
 

 

 

<Appearance Dimensions-Margins="18%, 24%, 12%, 10%">
 

 

 

<FillStyle FillType="Solid" MainColor="">
 

 

 

</FillStyle>
 

 

 

</Appearance>
 

 

 

</PlotArea>
 

 

 

<ChartTitle>
 

 

 

<Appearance>
 

 

 

<FillStyle MainColor="">
 

 

 

</FillStyle>
 

 

 

</Appearance>
 

 

 

<TextBlock Text="Capacity Timeliness">
 

 

 

<Appearance TextProperties-Color="102, 102, 102" TextProperties-Font="Arial, 14pt">
 

 

 

</Appearance>
 

 

 

</TextBlock>
 

 

 

</ChartTitle>
 

 

 

</telerik:RadChart>




Thank You,
Petar Marchev
Telerik team
 answered on 15 May 2012
14 answers
310 views
Hi Team,

          I'm facing unknow error after OnAjaxRequest trigger.
Error is : 126|updatePanel|ctl00_ContentPlaceHolder1_Lines_C__radGrid_ctl00_ctl05_EditFormControl__radAjManagersSU||
At my page i didn't use asp:UpdatePanel, why i saw this error.

           Please help to me.

Here is code.

<telerik:RadScriptBlock ID="radScriptBlock" runat="server">
    <script type="text/javascript" language="javascript">
        var clickCalledAfterRadconfirm = false;
        var lastClickedItem = null;
        var isrespond = false;
        var respondmsg = null;
        /*  Rad Window Start  */
        function openWins(url, winid, para, width, height) {
            var _contparameter = '';
            var _controlfill = $get('<%= this._hidField.ClientID%>');
            _controlfill.value = '';
            switch (para.toLowerCase()) {
                case "item_ln":
                case "lookup_resource_group_hdr":
                    _contparameter = "&_qReturnto=" + para;
                    break;
                default:
            }
            var oWnd = $find("<%=_radWinManagers.ClientID %>").open(url + _contparameter, winid);
            setBehaviors(oWnd);
            oWnd.SetSize(width, height);
            oWnd.SetModal(true);
        }
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
        function setBehaviors(oWnd) {
            oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Pin + Telerik.Web.UI.WindowBehaviors.Reload + Telerik.Web.UI.WindowBehaviors.Close);
        }
        function Usc_OnClientClose(oWnd, args) {
            //get the transferred arguments           
            var arg = args.get_argument();
            if (arg) {
                var vals = arg.vals;
                var cmds = arg.cmds;
                var valext = arg.valext;
                var _controlfill = $get('<%= this._hidField.ClientID%>');
                _controlfill.value = '';
                _controlfill.value = vals;
 
                var ajaxManager = $find("<%= _radAjManagers.ClientID %>");
                if ((ajaxManager == null) || (ajaxManager == undefined))
                    return false;
                if (_controlfill) {
                    switch (cmds.toLowerCase()) {
                        case 'lookup_item_hdr': break;
                        case 'lookup_gl_hdr':
                        case 'lookup_item_ln':
                        case 'lookup_resource_group_hdr':
                            ajaxManager.ajaxRequest(cmds);
                            break;
                        default: break;
                    }
                }
            }
            return false;
        }
        /*  Rad Window End  */       
    </script>
</telerik:RadScriptBlock>
<telerik:RadWindowManager ID="_radWinManagers" ShowContentDuringLoad="true" VisibleStatusbar="false"
    ReloadOnShow="false" runat="server" Skin="Default" EnableShadow="true">
    <Windows>
        <telerik:RadWindow ID="_radWinItems" runat="server" Behaviors="Pin,reload,close,move"
            OnClientClose="Usc_OnClientClose">
        </telerik:RadWindow>
        <telerik:RadWindow ID="_radDialog" runat="server" Behaviors="Pin,reload,close,move"
            OnClientClose="Usc_OnClientClose">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
<telerik:RadAjaxManager ID="_radAjManagers" runat="server" OnAjaxRequest="_radAjManager_AjaxRequest">
    <AjaxSettings>                      
    </AjaxSettings>
</telerik:RadAjaxManager>

Code

#region "RadControl"
 
    protected void _radAjManager_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
    {
        switch (e.Argument)
        {
            case "lookup_item_ln":
            case "lookup_resource_group_hdr":
                GetItemInfo();
                break;           
            default: break;
        }
    }
 
#endregion

Regards
Alex.
Maria Ilieva
Telerik team
 answered on 15 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?