Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views
Hi,

Are there any way to get the Cell Double Click event on client-side ?
I need to get which cell did the user click on the grid.

Regards,
Daniel
Shinu
Top achievements
Rank 2
 answered on 20 Feb 2013
2 answers
535 views
I've tried doing this many different ways with no success.

I just want to open a RadWindow from code behind (the initiating action is from a RadDock command).

Here is the aspx:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"  >
    <AjaxSettings >
        <telerik:AjaxSetting AjaxControlID="RadDockLayout1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadDockZone1" LoadingPanelID="RadDRadAjaxLoadingPanel1ockZone1" />
                <telerik:AjaxUpdatedControl ControlID="rwinProperties" LoadingPanelID="RadDRadAjaxLoadingPanel1ockZone1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="rwinProperties">
            <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadDockZone1" LoadingPanelID="RadDRadAjaxLoadingPanel1ockZone1" />           
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" Skin="Black" />
 
    <telerik:RadDockLayout ID="RadDockLayout1" runat="server" Skin="Default" OnSaveDockLayout="RadDockLayout1_SaveDockLayout"
        OnLoadDockLayout="RadDockLayout1_LoadDockLayout" StoreLayoutInViewState="True">
        <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="1400px" Width="1100px" Skin="Black" Orientation="Horizontal">
 
        </telerik:RadDockZone>
    </telerik:RadDockLayout>
 
    <asp:Label id="lbCurrentProperty" runat="server" visible="false" />
 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>
            <telerik:RadWindow ID="rwinProperties" runat="server" Title="Select Properties" Height="550px"
                Width="450px" Left="150px" ReloadOnShow="false" VisibleOnPageLoad="false" ShowContentDuringLoad="false" CssClass="RadWindow"
                Modal="true">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

In the RadWindow I want to display a web page (SelectProperties.aspx) which as three parameters in the query string.

Here's one attempt:
Dim URL As String = "SelectProperties.aspx?SectionID=" + SectionID + "&SectionCount=" + SectionCount + "&SectionName=" + SectionName
Dim script As String = "function f(){radopen(""" + URL + """,""rwinProperties"").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
 
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", Script, True)

When I use this approach I get the following error: Microsoft JScript runtime error: Unable to get value of the property 'parentNode': object is null or undefined.  In researching this error I got now help in trying to figure out why I got this error.  So I tried another approach and got the same error:

Sub DisplayProperties(ByVal SectionID As String, SectionCount As String, ByVal SectionName As String)
        Dim script As String = "Sys.Application.add_load(ShowSelectProperties(""" & SectionID & """,""" & SectionCount & """,""" & SectionName & """));"
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", Script, True)
End Sub

function ShowSelectProperties(SectionID, SectionCount, SectionName)
{
    radopen("SelectProperties.aspx?SectionID=" + SectionID + "&SectionCount=" + SectionCount + "&SectionName=" + SectionName, "rwinProperties");
 
}


Any help is greatly appreciated. 


Hunter
Top achievements
Rank 1
 answered on 19 Feb 2013
4 answers
208 views
We are using the Rad Menu control (ASP.NET AJAX Controls ver 2008.2 1001) in a web interface. When viewing the interface with IE7 (ver 7.0.5730.12) there is a z-index error, even though the RadMenu has been set to have a z-index lower that other page items, it appears on top. We double checked and tried multiple z-index orders to no avail.

The attached screen shot shows the problem. We are using the Superfish javascript library for a top level drop down menu and we have several RadMenu controls (and other Rad Controls) on the page as well. One of which is used for a "Getting Started" menu (illustrated in the attachement). When the top level navigation menu drops down, it appears behind the RadMenu, even though the RadMenu has a lower z-index.

The other Rad Controls i.e Tree View do not misbehave. They seem to honor their z-index.

It is most urgent that we have a immediate solution for the problem. We are less than a week away from a production delivery date for a system used by the USG with over 350K users.

Please donot bother asking for the code, it is part of a huge proprietary website with tight back-end integration, so it is not possible to do so.

A quick solution would be most appreciated.

Keith E.


Michael
Top achievements
Rank 1
 answered on 19 Feb 2013
7 answers
736 views
Running the August 2012 build - which is currently the latest - this seems to have been introduced in 2012-Q2

I have some code that allows for Excel style updating in a RadGrid, by sending some information through the onblur event of my RadNumbericTextbox controls.  Until recently this worked great - but now .get_value() returns the old value for the Textbox.  

I have confirmed that .get_textBoxValue() does give me the correct New value - BUT this will mean quite a bit or rewriting and testing on several pages for me - which I am trying to avoid.

Before I do that - is this a bug?  Or am I doing something wrong now?

Protected Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
 
    If TypeOf e.Item Is GridDataItem Then
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
        Dim nActualQty As RadNumericTextBox = TryCast(item.FindControl("nActualQty"), RadNumericTextBox)
        Dim nActualAmount As RadNumericTextBox = TryCast(item.FindControl("nActualAmount"), RadNumericTextBox)
 
        ' This injects a javascript function to do the automatic line calculations
        nActualQty.Attributes.Add("onblur", "calculateLine('" & DataBinder.Eval(e.Item.DataItem, "Is_CPM") & "','" & DataBinder.Eval(e.Item.DataItem, "Rate") & "','" & nActualQty.ClientID & "','" & nActualAmount.ClientID & "')")
 
    End If
 
End Sub

function calculateLine(cpm, rate, quantity, totalAmount) {
    var q = parseFloat($find(quantity).get_value()); // This is the WRONG / OLD value
    var q = parseFloat($find(quantity).get_textBoxValue()); // This is now the right value ?!
    var t = $find(totalAmount);
    if (cpm == 'Y') {
        rate = parseFloat(rate) / 1000;
    }
    console.log('rate(' + rate + ') * q(' + q + ')');
    t.set_value(rate * q);
}

Dan
Top achievements
Rank 1
 answered on 19 Feb 2013
1 answer
86 views

I probably miss some fundamentals. 
1.On delete event the flow goes to AppointmentCreated event and then twice hit AppointmentDelete Event
On AppointmentInsert event the flow hits twice too and this create 2 records in the database

2. I show the same timeslotcontext menu on right and left mouse click.  On the right mouse click

OnClientAppointmentInserting is working properly.  On the left mouse click

OnClientAppointmentInserting gives me the error message right after

timeSlotClick event before timeSlotContextMenuItemClicking and OnClientAppointmentInserting
event, so , please advise how to handle this.

3. I have CSS issues in the AdvanceInsert or Edit form:  all my dropdowns do not show the arrow and scrolls, Recurrence editor does not show spin images

I created 3 support tickets 658678, 659352, 659845.  I am doing proof project for the Radscheduler
Thank you for your help 

My attachments in the ticket  659352

Thank you for your help

 

 

 

 

 

 

 

 

 

 

 

 

Plamen
Telerik team
 answered on 19 Feb 2013
2 answers
172 views
I have a RadCombobox inside a RadGrid and I want the RadCombobox's OnItemsRequested event to fire only when the user have enter 5 characters in the combobbox. Below is my markup,

 <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1NeedDataSource" AllowSorting="true"
            ShowStatusBar="true" OnItemCreated="RadGrid1ItemCreated" OnItemDataBound="RadGrid_OnItemDataBound" ClientIDMode="Predictable">
            <PagerStyle Mode="NumericPages" />
            <MasterTableView AutoGenerateColumns="False"
                Width="100%" CommandItemDisplay="Top" AllowMultiColumnSorting="True">
                <CommandItemSettings ShowAddNewRecordButton="True" ShowRefreshButton="False"></CommandItemSettings>
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="ItemPartNumb" HeaderText="Part Number">
                        <ItemTemplate>
                            <telerik:RadComboBox ID="rcbItemPartNumb" runat="server" Height="190px" Width="420px" ShowMoreResultsBox="True"
                                EmptyMessage="Select a Item Part Number" EnableLoadOnDemand="True" OnItemDataBound="RcbItemPartNumbItemDataBound"
                                MarkFirstMatch="true" HighlightTemplatedItems="true" OnSelectedIndexChanged="rcbItemPartNumb_OnSelectedIndexChanged"
                                EnableVirtualScrolling="true" OnItemsRequested="RcbItemPartNumbItemsRequested" AllowCustomText="True"
                                ClientIDMode="Predictable" AutoPostBack="True">
                                <HeaderTemplate>
                                    <ul>
                                        <li class="col1">Item Part Number</li>
                                        <li class="col2">Description</li>                                        
                                    </ul>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <ul>
                                        <li class="col1">
                                            <%# DataBinder.Eval(Container.DataItem, "ItemPartNumb") %></li>
                                        <li class="col2">
                                            <%# DataBinder.Eval(Container.DataItem, "ItemDescription") %></li>                                        
                                    </ul>
                                </ItemTemplate>                                
                            </telerik:RadComboBox>                            
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>                                                                 
                    <telerik:GridBoundColumn DataField="ItemDescription" HeaderText="Description" UniqueName="ItemDescription">                        
                    </telerik:GridBoundColumn>                    
                    <telerik:GridTemplateColumn UniqueName="Quanities" HeaderText="Quanities">
                        <ItemTemplate>
                            <asp:TextBox runat="server" ID="txtQuanities" Height="10" Width="30" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>                    
                </Columns>                                
            </MasterTableView>                 
        </telerik:RadGrid>   

Jack
Top achievements
Rank 1
 answered on 19 Feb 2013
6 answers
117 views
I have a RadFileExplorer on mi app. I want show a  different   folder for each kind of use.
So, I set the viewpath dinamically. I created a mapping file Beacause the folders aren't on my app's  directory.
The RadFileEplorer shows the files, but  the paging doesn't works, and  always show me the same files.
 The Filtering  and the  sorting doesn't  works neither.  
  
 You can see in the atached files ,  the pagination shows same files on the first and on the second page.               
                 
here is The mapping File, it looks well and works.
<?xml version="1.0" encoding="utf-8" ?>
<CustomFileBrowserProvider>
  <Paths>
    <genericHandlerPath>FileSystemHandler.ashx</genericHandlerPath>
  </Paths>
  <Mappings>
    <Mapping>
      <PhysicalPath><![CDATA[ D:\MarceloEscobar\Descargas del Reloj\Central]]></PhysicalPath>
      <VirtualPath><![CDATA[descargascentral]]></VirtualPath>
    </Mapping>
  </Mappings>
</CustomFileBrowserProvider>

Here is the RadFileExplore declaration 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="progress">
            <telerik:RadFormDecorator ID="FormDecorator1" runat="server" Skin="Office2007" />
            <asp:Label runat="server" Font-Size="Large" ID="lblEncabezado" CssClass="label" Text="Incorporar Archivos del Reloj:" />
             <telerik:RadFileExplorer ID="FileExplorer1" runat="server" DisplayUpFolderItem="false" AllowPaging="true" EnableOpenFile="true" PageSize="7"   EnableAsyncUpload="false" EnableCopy="false" EnableCreateNewFolder="false" Height="310px" OnClientFileOpen="OnClientFileOpen" OnClientMove="OnClientMove" Skin="Office2007" VisibleControls="Grid" Width="600px">
                <Configuration  SearchPatterns="*.REI" />
            </telerik:RadFileExplorer>
                 <br />


and here is mi code.

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            Dim ruta = "descargascentral"
            FileExplorer1.Configuration.ContentProviderTypeName = _
            GetType(CustomFileSystemProvider).AssemblyQualifiedName
            Dim rutas As String() = New String() {ruta}
            FileExplorer1.Grid.ClientSettings.AllowRowsDragDrop = False
            FileExplorer1.Configuration.ViewPaths = rutas
            FileExplorer1.Grid.ClientSettings.Scrolling.AllowScroll = True
        End If
End Sub


I can't set the initialpath property because i don't know if the folder contais files or no.

   thanks for your helping

update: also doesn't allow me to navigate within subfolders.
Dobromir
Telerik team
 answered on 19 Feb 2013
1 answer
113 views
I have a numericTextbox that in Firefox when I enter a number it is displayed to the right of the control.

In IE and Chrome is working fine.

I tried changing the aligments but the same problem occurs

Here is the code.
<telerik:RadNumericTextBox  NumberFormat-DecimalDigits="0" ID="txtGreaterThan" Type="Number"  MaxLength="7" MinValue="0" MaxValue="9999999"  Width="85px" runat="server" />
Eyup
Telerik team
 answered on 19 Feb 2013
1 answer
131 views
Hi everyone,

we are deploying a solution on Windows Azure and our soultion references a lot of time (there are 10-15 different webapps, each one with a copy) Telerik.Web.UI.dll.

The problem is that our package has becoming huge (300-400MB) and uploading a new version is getting problematic. One solution we found and achived with other libraries is to create a statup task that downloads the MSI from the Azure Blob Storage and installs everything. The prerequisites for this solution are:

1. must exists a quiet mode install
2. dll must go to GAC (so apps can reference them without having a local copy in bin folder)

I downloaded the MSI file and, using the /? parameter, I found that exists a /quiet parameter that respect prerequisite 1.
After running that I see - running gacutil - that only Telerik.Web.UI.Design is put into the GAC. No way in seeing Telerik.Web.UI.

How can I accomplish this? 

Bonus points for who answer to this question too: installation seems to take a lot of time (15-20 mins), it is probably because it installs everything (demo, documentation, vs extensions...). Is it possibile to install just DLLs?

Thanks!
Marco
Teodor
Telerik team
 answered on 19 Feb 2013
1 answer
141 views
I have the expanddirection set to "Up" and the "enablescreenboundrydetection" set to false and no matter what I do it still opens down ... and I've been somewhat unable to find documentation that tells me how to utilize the expanddirection other than stackoverflow. http://stackoverflow.com/questions/9178911/forcing-radcombobox-drop-down-direction

My combo is populated utilizing allowcustomtext so I'm not sure if that makes a difference  - Q2 2011

Sean
Top achievements
Rank 1
 answered on 19 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?