Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
52 views
Please take a look at the pic below, as you can see, I have resized my page to fit within the windows, however, the horizontal scroller (as I have marked red), still show up like that (looks like my page is so so horizontally large), it makes my Visual Studio become hang sometime, due to the fact the page is so "large". Please help me how to fix it.

http://imageshack.us/f/577/screenshotva.png

* I noticed that it's happen whenever I drop in any RadComboBox in the page. (The problem is gone after I remove ALL the RadComboBox on the page). Is it a bug within RadComboBox?
Dimitar Terziev
Telerik team
 answered on 15 Jun 2011
1 answer
49 views
hi

i have loaded a treeview from backend now i want to know how to get the value of the checked node in javascript
Shinu
Top achievements
Rank 2
 answered on 15 Jun 2011
7 answers
87 views
Hi,
I need to traslate (localization) the days names in week view to hebrew and could'nt find how to do that through the Localization-... properties of the RadScheduler control.
For example from Sunday to ראשון
Is there a resource file i need to update for the translation?
Thank you.
Veronica
Telerik team
 answered on 15 Jun 2011
1 answer
75 views
When tabbing to the 'select' button on the RadAsyncUpload control and pressing enter, the default click behaviour isn't executed (i.e. the file dialog isn't displayed). Is there a way to get this to work; I've tried binding to the keypress event but the control isn't available in $(document).ready.

This is requirement for disability access, in particular user with sight impairment using screen readers.

Thanks in advance

Dave
Peter Filipov
Telerik team
 answered on 15 Jun 2011
2 answers
127 views
Hi,

Just want to know how to pass parameter from a window to another. In my case, I have a grid and when I open a window, I want to pass the value of the selected row to the new window and put it in a TextBox. To do so, I retrieve the value of the selected row and I put it in a HiddenField. In my new window, I was able to take the parameter and set it in the textbox, but the textbox wasn't refresh. So, here is my code :

document.getElementById("myTextBox").value = GetRadWindow().BrowserWindow.JsFn();

The JsFn() just return the value of the hidden field.

So, once there, how do a refresh my textbox. Or is it a more simple or efficient way to pass a parameter ? Thank you for your answer.
David
Top achievements
Rank 1
 answered on 15 Jun 2011
1 answer
329 views

hi

i use RadAsyncUpload for upload images to my site.

but when adobe flash player not installed in users computer and wants to upload, i get this error

System.Web.HttpException (0x80004005): The file '/Telerik.RadUploadProgressHandler.ashx' does not exist.
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
at System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at http://elix.ir:80/Telerik.RadUploadProgressHandler.ashx?AsyncProgress=true&RadUrid=510fe1ef-2edf-4e70-be7c-40fe89b586a00&_=1245777283396

any body can tell me how can i fix this error?

I use telerik.web.UI v2011.1.419.40

and my web.config is:
 

<?xml version="1.0"?>
<configuration>
    <system.web>
        <compilation debug="true" defaultLanguage="C#" targetFramework="4.0">
            <assemblies>
                <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </assemblies>
        </compilation>
        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
            <controls>
                <add tagPrefix="tlk" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
            </controls>
        </pages>
        <httpHandlers>
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
            <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
        </httpHandlers>
    </system.web>
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
            <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
            <add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" />
        </handlers>
    </system.webServer>
</configuration>

Peter Filipov
Telerik team
 answered on 15 Jun 2011
1 answer
89 views
In editor field, change any font-name other than default font name, then change the font-size. Then we can see the font-name will automatically set to default font name of the browser.
Rumen
Telerik team
 answered on 15 Jun 2011
1 answer
128 views
I am using a radgrid where in the ClientSettings, I have AllowScroll="true" and UseStaticHeaders="true".  This grid is in a user control sitting on a webform that is loaded into a MasterPage content area. There are other user controls loaded on demand within a series of tabs.

 What's happening is that the grid is sizing correctly on the page but the masterpage the first time the user control is accessed.  When another user control is subsequently accessed and then the I switch back to the user control with my RadGrid on it the grid's data section has shrunk down to 10px.  The result is you can not see all of the rows in the grid.  Here is the same markup of the grid element before and after:


<div id="ctl00_TabControl_element_FXProduct_element_view_FXProduct_FXProduct_RadGrid1_GridData" class="rgDataDiv" style="overflow: auto; width: 100%; height: 450px;">
<div id="ctl00_TabControl_element_FXProduct_element_view_FXProduct_FXProduct_RadGrid1_GridData" class="rgDataDiv" style="overflow: auto; width: 100%; height: 10px;">

This issue is only happening when the grid has the AllowScroll="true" client setting set to true.  If it is set to false this issue does not occur.

I am attaching some screen shots to demonstrate the issue.

I am using version 2010.1.415.35 of the rad controls.  This is occurring on both IE 8 and Firefox 3.6 and 4.0.

Here is the markup of my control

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FXOrderProducts.ascx.cs" Inherits="FXOrderProducts" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadGrid
    ID="RadGrid1"
    runat="server"
    AllowPaging="True" 
    pagesize="100"
    OnRowDrop="RadGrid1_RowDrop"
    OnItemUpdated="RadGrid1_ItemUpdated"
    OnUpdateCommand="RadGrid1_UpdateCommand"
    OnDeleteCommand="RadGrid1_DeleteCommand"
    AllowMultiRowSelection="True"             
    OnItemDataBound = "RadGrid1_OnItemDataBound"
    OnNeedDataSource="RadGrid1_NeedDataSource"
    OnItemCreated="RadGrid1_ItemCreated" 
    OnExcelExportCellFormatting="RadGrid1_ExcelExportCellFormatting"                   
    EnableAJAX = "true"
    Skin="Windows7" Height="450px">
    <MasterTableView DataKeyNames="Id" Width="100%" TableLayout="Fixed" AutoGenerateColumns="False" >
        <NoRecordsTemplate>
            <div style="height: 30px; cursor: pointer;">No products to view</div>
        </NoRecordsTemplate>
        <PagerStyle Mode="NumericPages" PageButtonCount="10" />                    
        <Columns>
            <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="30px"  ItemStyle-Width="30px"  />                    
 
            <telerik:GridBoundColumn DataField="GroupName" HeaderText="Group"
            SortExpression="GroupName" UniqueName="Group" ReadOnly="True" DataFormatString="<nobr>{0}</nobr>" >                   
            </telerik:GridBoundColumn>      
                          
            <telerik:GridBoundColumn DataField="ProductName" HeaderText="Product"
            SortExpression="ProductName" UniqueName="ProductName" ReadOnly="True" DataFormatString="<nobr>{0}</nobr>" >                   
            </telerik:GridBoundColumn>  
                          
            <telerik:GridBoundColumn DataField="Product.Vendor" HeaderText="Mfg."
            SortExpression="Product.Vendor" UniqueName="Vendor" ReadOnly="True" DataFormatString="<nobr>{0}</nobr>"  >                   
            </telerik:GridBoundColumn>                                      
                      
            <telerik:GridBoundColumn DataField="Description" HeaderText="Description"
            SortExpression="Description" UniqueName="Description" ColumnEditorID="GridDescriptionEditor" EditFormColumnIndex="1" ItemStyle-Width="70px" HeaderStyle-Width="70px" DataFormatString="<nobr>{0}</nobr>"   >                   
            </telerik:GridBoundColumn>
                                        
            <telerik:GridBoundColumn DataField="Family" HeaderText="Family"
            SortExpression="Family" UniqueName="Family" ReadOnly="True" DataFormatString="<nobr>{0}</nobr>">                   
            </telerik:GridBoundColumn>                                         
                      
            <telerik:GridBoundColumn DataField="Price" HeaderText="List Price"
            SortExpression="Price" UniqueName="Price" ReadOnly="true" DataFormatString="{0:C}" >  
            </telerik:GridBoundColumn>  
                      
            <telerik:GridBoundColumn DataField="ProductProgram.Program" HeaderText="Program"
            SortExpression="ProductProgram.Program" UniqueName="Program" ReadOnly="True" DataFormatString="<nobr>{0}</nobr>" Display="false">                   
            </telerik:GridBoundColumn>                                                                                                                                                                                 
 
            <telerik:GridBoundColumn DataField="CalculatedPrice" HeaderText="Sell Price"
            SortExpression="CalculatedPrice" UniqueName="CalculatedPrice" DataFormatString="{0:C}" ColumnEditorID="GridSellPriceEditor" EditFormColumnIndex="0" >  
            </telerik:GridBoundColumn>  
                      
            <telerik:GridBoundColumn DataField="Quantity" HeaderText="Qty"
            SortExpression="Quantity" UniqueName="Quantity" ReadOnly="False" ColumnEditorID="GridQuantityEditor" EditFormColumnIndex="0" ItemStyle-Width="40px" HeaderStyle-Width="40px" >  
            </telerik:GridBoundColumn>  
                      
            <telerik:GridBoundColumn DataField="ExtendedPrice" HeaderText="Ext Price"
            SortExpression="ExtendedPrice" UniqueName="ExtendedPrice" ReadOnly="true" DataFormatString="{0:C}" >  
            </telerik:GridBoundColumn>
                      
            <telerik:GridBoundColumn DataField="ProdCost" HeaderText="Cost"
            SortExpression="ProdCost" UniqueName="Cost" DataFormatString="{0:C}" ColumnEditorID="GridCostEditor" EditFormColumnIndex="0">  
            </telerik:GridBoundColumn
                                                       
            <telerik:GridBoundColumn DataField="Margin" HeaderText="Margin"
                SortExpression="Margin" UniqueName="Margin" ReadOnly="True" DataFormatString="{0:C}" Display="false">  
            </telerik:GridBoundColumn>
 
            <telerik:GridBoundColumn DataField="MarginPercent" HeaderText="Margin %"
                SortExpression="MarginPercent" UniqueName="MarginPct" ReadOnly="True" >                   
            </telerik:GridBoundColumn>
 
            <telerik:GridBoundColumn DataField="Product.Status" HeaderText="Status"
                SortExpression="Product.Status" UniqueName="Status" ReadOnly="True" >                   
            </telerik:GridBoundColumn>
                          
            <telerik:GridCheckBoxColumn UniqueName="Optional" DataField="Optional" HeaderText="Opt." ItemStyle-Width="40px" HeaderStyle-Width="40px"  >
            </telerik:GridCheckBoxColumn
 
            <telerik:GridBoundColumn DataField="Optional" HeaderText="Optional"
            SortExpression="Optional" UniqueName="Optional" ReadOnly="True" Visible="false" >                   
            </telerik:GridBoundColumn>
 
            <telerik:GridButtonColumn  CommandName="Delete" Text="Delete" UniqueName="Delete" ConfirmText="Are you sure you want to delete this item?"
            HeaderStyle-Width="35px" ButtonType="ImageButton" ImageUrl="~/Images/Icons/Power2Order/Delete_16x16.png">
            </telerik:GridButtonColumn>
        </Columns
        <EditFormSettings UserControlName="SmartParts/SalesOrder/FXEditProduct.ascx" EditFormType="WebUserControl"
            <EditColumn UniqueName="EditCommandColumn1">
            </EditColumn>                 
        </EditFormSettings>
    </MasterTableView>
    <ClientSettings
        AllowRowsDragDrop="True" 
        EnableRowHoverStyle="true">
        <Selecting
            AllowRowSelect="true"
            EnableDragToSelectRows="false" />
        <Scrolling
            AllowScroll="true"
            UseStaticHeaders="true" />
        <ClientEvents
            OnRowDropping="onRowDropping"
            OnRowDblClick="GridRowDblClick"
            OnGridCreated="GridCreated" />   
        <Resizing
            EnableRealTimeResize="True"
            ResizeGridOnColumnResize="False"
            AllowColumnResize="True" />                                    
    </ClientSettings>
</telerik:RadGrid>
Maria Ilieva
Telerik team
 answered on 15 Jun 2011
10 answers
123 views
Need a little help here...I have a page within Sitefinity that is made up of 2 user controls. UserControl1 is the left half of the page, UserControl2 is the right side of the page. Each of these user controls have a RadGrid in them that open automatically in edit mode for a single record. I need to create a button inside UserControl2 that fires off the Update command for both RadGrids and then reloads the page so that both grids will return to edit mode with the new values.

Can you tell me what the code behind would look like for that button to reference and fire off the update command on those grids inside the user controls? Thanks for the assistance.
KARAN
Top achievements
Rank 1
 answered on 15 Jun 2011
1 answer
60 views
Hi, 

i am working on grid population at client side by page methods. i am using like this

PageMethods.GetData(currentPageIndex * pageSize, pageSize, sortExpressionsAsSQL, filterExpressions.toList(), updateGrid);

updateGrid is a client side method in which i bind the resultset to grid. in item command some time it goes into updategrid method and sometimes not i donot know why when i click on page button. 

plz help

Regards,


Faisal
Tsvetina
Telerik team
 answered on 15 Jun 2011
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?