Problem: $find('') return null

the problem is :

$find('<%=RadWindow1.ClientID %>') always return null.

i spent much time found out where is the problem.

 

if you added follow code to the RadAjaxManager , you will met the problem.

<telerik:AjaxSetting AjaxControlID="btnShowAddOutlayForm">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadWindow1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>

because, after you clicked button "btnShowAddOutlayForm", the ajax request will update whole RadWindow1.

then the problem was happened.

 

to avoid this problem :

1. remove about code from RadAjaxManager.

2. try to place one "UpdatePanel" or "RadAjaxPanel" in to RadWindow1, then you can update contents in the RadWindow on the server side.

<telerik:RadWindow ID="RadWindow1" runat="server" Animation="Fade" Behaviors="Close,Move"
    Modal="True" AutoSize="false" Title="Test Title" VisibleStatusbar="False" Height="430"
    Width="500" Skin="WebBlue" Visible="true">
    <ContentTemplate>
    <asp:UpdatePanel ID="UpdatePanel2" runat="server" ChildrenAsTriggers="False" UpdateMode="Conditional">
    <ContentTemplate>
        <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
            <div>
                <!--you code here.-->
            </div>
        </telerik:RadAjaxPanel>
            </ContentTemplate>
</asp:UpdatePanel>
    </ContentTemplate>
</telerik:RadWindow>

 

over

Reproduced in: https: //www.cnblogs.com/nevernet/archive/2010/04/30/1724628.html

Intelligent Recommendation

spring4 solve json return null value "null" string problem

pom.xml       Code:           spring configuration:  ...

return null

Sometimes a function has been set return type which is Node in this case. and returns an error if you want something on a non-Nodereturn null...

Use MyBatis select database to find out the data but the return object is null

8/4/2018 11:03:14 PM Today's test project appears to use the MyBatis select database to find out the data but the return object is null Mybatis configuration file: The java entity class corresponding ...

Return null to "" in the return parameter

When the interface returns parameters in the project, the string will appear null, and the front-end judgment is more difficult. FastJson is used in the project. Reference address:...

When the return value is a Map, there is only the return value of the field, the field does not return a null value problem

The reason: Mybatis default if the data field is empty, then the field is omitted is not displayed, you can add a profile, defined query data is empty or null. Reproduced in: https: //my.oschina.net/y...

More Recommendation

BindingException for SpringBoot problem: Mapper method ... return null from a method with...

Code: problem: org.apache.ibatis.binding.BindingException: Mapper method … attempted to return null from a method with a primitive return type (…). Cause: The return type is incorrect So...

There is a problem with the dynamically loaded class ToolProvider.getSystemJavaCompiler() Return NULL and dynamically load the pack

Xiao G today using Java dynamic loading problems are summarized as follows, see laughter Question 1: In the spring boot project, a new dynamic loading class is used by tool.jar. It runs normally on ec...

Huawei cell phone call to resolve Safe return value is null problem

In system development projects need to call the album, to be able to get a normal return values ​​on other android phone, but Huawei is the return value is null, please see the code below After the ab...

Use FFmpegMediaMetadataRetriever and MediaMetadataRetriever get keyframe fail (return null) problem

We all know that there may be multiple key frames of video in a long, and often the first frame is black, so we use the key point at 1/4 time frame for thumbnail generation video. But later we found s...

When the resultType in Mybatis is map, the null value field does not return the problem

Problem Description In the above query, when the addr field value is null in the database, the returned result is as follows: Normally what we want should be like this: Solution willnullValue becomes ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top