Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
143 views
I have a RadGrid at the top of the page and a RadAjaxPanel at the bottom.  When a row from the RadGrid is clicked on to select it, I want the RadAJAXPanel to update.  The RadAjaxPanel has textboxes that will fill with information from the selected RadGrid row.

How to I use the RadAJAXManager to trigger the RadAJAXPanel to update when a row is clicked on in the RadGrid?

Thank you.
George
Top achievements
Rank 1
 answered on 23 Jul 2013
7 answers
613 views
I have a textbox control in a column template. When in edit mode (Popup), if I change the value of the text box and while leaving focus on the text box, click on update, the old value of the text box is posted back. If I tab out of the text box then click on update, the new value is posted back.
Is there a setting that I am missing, or has anyone else had this problem.
Our Telerik controls are the latest version.
Geoff
Top achievements
Rank 1
 answered on 23 Jul 2013
0 answers
109 views
I'm using Visual Studio 2012 Ultimate bit at work. The OS is Windows 7 x32. We have a large web application (Asp Web Form based) which relies heavily on the telerik controls. We also use JustCode, and Telerik reports.

However recent updates to Q2 2013 has caused serious problems. Now in aspx files, just code underlines red on all telerik controls and switching to the design mode gives error on all the controls. I've tried various solutions and even searched the forums to no avail. 

Here is the screenshot of the VS 2012, webpage with telerik controls in design mode

any solutions?


Update: (Fixed the issue of all designers except Telerik Report viewer)

I resolved the issue by checking out all the files, and running the upgrade Wizard. However the Upgrade Wizard was unable to add the httpHandler for the report in web.config. so I added the following line:

<add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler"
      validate="false" />

even after which the report viewer designer kept giving error in design mode but when executed the app the report viewer buttons started displaying in the page in a weird way. all the buttons were displayed as 100% width and each one displayed on a single line.



Mercede
Top achievements
Rank 2
 asked on 22 Jul 2013
2 answers
270 views

Background
I am using a RadGrid with GridNumericColumns, but I can reproduce this using just a RadNumericTextbox on a page.

Telerik.Web.UI.dll 2013.2.611.35.
IE10, IE7, Chrome, Firefox

Issue
When entering a decimal value into a RadNumericTextbox, if there are no values greater than 0 to the left of the decimal point, and the first non-zero digit is seven digits to the right of the decimal point, the number will be displayed in the field in scientific notation on focus. 0.0000007 will be displayed as 7e-7 if the user enters the number, selects outside the textbox, and then selects the textbox again. I would like it to remain in standard decimal notation.

Code

<telerik:RadNumericTextBox ID="rntTest" runat="server" DataType="Decimal" NumberFormat-DecimalDigits="15">
</telerik:RadNumericTextBox>

 

Additional Notes
The user in the previous thread seemed to be having an identical issue. Perhaps this bug has been reintroduced?
Previous Issue

Zachary
Top achievements
Rank 1
 answered on 22 Jul 2013
4 answers
350 views

What I'm trying to accomplish is very simple (but I can't seem to find a way on my own).
I would like to open a row with EditMode="InPlace" with double click on that row, while I would like to open the whole form editing if I click on a command button in the grid (for example the GridEditCommandColumn button).

To open the row in edit mode on double click I just:
<ClientEvents OnRowDblClick="RowDblClick" />
 
' and then...
 
    <telerik:RadScriptBlock runat="server">
        <script type="text/javascript">
            function RowDblClick(sender, eventArgs) {
                sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
            }
        </script>
    </telerik:RadScriptBlock>

The problem is how to switch from one edit mode to another in code behind based on how the user accessed edit mod, from double clik or from GridEditCommandColumn button.
If I put "InPlace" as default edit mode and then in code behind:
Protected Sub RadGrid1_EditCommand(sender As Object, e As GridCommandEventArgs)
    RadGrid1.MasterTableView.EditMode = GridEditMode.EditForms
End Sub

This works and open the form edit mode. The problem is.. If I for example issue a custom ItemCommand for one of the two, let's say "FullEditCommand" and there I switch to "GridEditMode.EditForms", how can I then retrigger the Edit command to go on with the editing?
Alsow I have to explicitly set "GridEditMode.InPlace" when I access editing with double click on a row, otherwise the grid would remember the last setting so I cannot pass from one to another.

Any hint pointing in the right direction is much appreciated as always. Thanks in advance.
Massimiliano
Top achievements
Rank 1
 answered on 22 Jul 2013
1 answer
60 views
Users can select different skins in their profile, so we change the SkinManager to the selected skin in a MasterPage. This woks, but however the Skin="Black" has issues. RadConfirm/Alert, etc has Black forecolor on Black background. Editor you cant see the toolbar icons or 'preview' and 'html' links.

Ive attached the screen shots.

version 2013.2.611.40

 
Vessy
Telerik team
 answered on 22 Jul 2013
1 answer
141 views
Hi,

When updating to 2013.2.611.45 version, I have found that the buttons (Pin, Close, Minimize...) of Window with Metro skin go wrong with css classes, making them unable to display correctly.

With Pin button:

.RadWindow .rwPinButton, .RadWindow.rwInactiveWindow .rwPinButton:hover

{ background-position: -2px -502px; }

The above should be .RadWindow .rwPinButton:hover, .RadWindow.rwInactiveWindow .rwPinButton:hover

as currently it overrides the following class:
.RadWindow .rwPinButton {

    background-position: -180px 0;

}

 
With Close button and others too:

.RadWindow .rwCloseButton, .RadWindow.rwInactiveWindow .rwCloseButton:hover

{

    background-position: -2px -762px;

}
.RadWindow .rwCloseButton {

    background-position: -90px 0;

}


At present, I have to manually create such classes with !important to have them display as desired.
Please correct these in the next build.

Bozhidar
Telerik team
 answered on 22 Jul 2013
1 answer
155 views
I have a situation where I have a collection of parent objects named "contact" bound to the radgrid.  That contact object has a child object called "products".  It's a one to many relationship from contact to products (one contact has many products, but will be limited to around 10 products per contact). 

So I'm basically rolling up the description of the product collection into one string for display purposes in the last column of the grid, but I'm also keeping them as separate properties in the products object for updating and adding records to it.

So it's displayed like this in the grid:

contact name        contact address       contact phone      products covered
---------------------------------------------------------------------------------------------------
Bob Jones            123 oak st.               123-123-1234       loans, accounts, sales

But it's standard object in code.

class products
{
    int contactid;
    int productid;
    string description;
}

When I go into edit mode I would like to be able to have checkboxes for each product type description so I can select or deselect them for each contact before saving them.  I followed an example I found to edit child objects in a radgrid and it ends up just giving me a single textbox with a comma separated list of products exactly how they are listed in the grid.  I need to be able to have checkboxes for each product item in the edit popup box.  Is there a way to do this?  I've had no luck finding an example.
Eyup
Telerik team
 answered on 22 Jul 2013
1 answer
113 views
Hi,

I'm using  RadToolTipManager in runtime .. while mouseover the grid it should display the value it working in IE but not in Firefox .Kindly guide


RadToolTipManager2.TargetControls.Add(lnkPrdName.ClientID, true);


<rad:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <%--<rad:AjaxUpdatedControl ControlID="gridProductDRDT" LoadingPanelID="" />--%>
                    <rad:AjaxUpdatedControl ControlID="divGridDRDT" LoadingPanelID="LoadingPanel1" />
                    <%--<rad:AjaxUpdatedControl ControlID="lblInjectScript" LoadingPanelID="" />--%>
                    <rad:AjaxUpdatedControl ControlID="RadToolTipManager2" LoadingPanelID="" />
                    <rad:AjaxUpdatedControl ControlID="divAuditTrailDetatils" LoadingPanelID="" />
                    <rad:AjaxUpdatedControl ControlID="DivSuccess" LoadingPanelID="" />
                    <%--<rad:AjaxUpdatedControl ControlID="gridAuditTrail" LoadingPanelID="" />--%>
                </UpdatedControls>
            </rad:AjaxSetting>
Marin Bratanov
Telerik team
 answered on 22 Jul 2013
6 answers
261 views
I receive this error while trying to drag to reorder columns in RadGrid + NeedDataSource scenario.
The grid is all built inside aspx page.
In code behind I only use NeedDataSource and ItemDataBound to show some boolean columns as formatted text instead of checboxes.

The error is:

Server Error in '/' Application.
 
The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
 
[HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.]
   System.Web.UI.ControlCollection.RemoveAt(Int32 index) +12539142
   Telerik.Web.UI.GridBatchEditingHelper.CreateColumnEditorsPanel() +314
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +1632
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +1116
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +95
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +222
   Telerik.Web.UI.GridTableView.PerformSelect() +244
   Telerik.Web.UI.GridTableView.DataBind() +441
   Telerik.Web.UI.GridTableView.OnPreRender(EventArgs e) +53
   System.Web.UI.Control.PreRenderRecursiveInternal() +113
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4297


and

Stack Trace:
 
System.Web.HttpUnhandledException (0x80004005): Generata eccezione di tipo 'System.Web.HttpUnhandledException'. ---> System.Web.HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
   in System.Web.UI.ControlCollection.RemoveAt(Int32 index)
   in Telerik.Web.UI.GridBatchEditingHelper.CreateColumnEditorsPanel()
   in Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)
   in Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
   in System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
   in System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
   in Telerik.Web.UI.GridTableView.PerformSelect()
   in Telerik.Web.UI.GridTableView.DataBind()
   in Telerik.Web.UI.GridTableView.OnPreRender(EventArgs e)
   in System.Web.UI.Control.PreRenderRecursiveInternal()
   in System.Web.UI.Control.PreRenderRecursiveInternal()
   in System.Web.UI.Control.PreRenderRecursiveInternal()
   in System.Web.UI.Control.PreRenderRecursiveInternal()
   in System.Web.UI.Control.PreRenderRecursiveInternal()
   in System.Web.UI.Control.PreRenderRecursiveInternal()
   in System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   in System.Web.UI.Page.HandleError(Exception e)
   in System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   in System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   in System.Web.UI.Page.ProcessRequest()
   in System.Web.UI.Page.ProcessRequest(HttpContext context)
   in ASP.admin_users_users_aspx.ProcessRequest(HttpContext context)
   in System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   in System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
Exception Data (0 items):
 
 
 
Base Exception Data (0 items):
Massimiliano
Top achievements
Rank 1
 answered on 22 Jul 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?