Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
200 views
Hi there,

I'm using the RadWindow 2011 Q3 and for some reason it sporadically throws javascript errors in internet explorer 6. Here is my code:

<telerik:RadAjaxManagerProxy ID="UserAjaxManager" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="UserListGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="UserListGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RefreshList">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="UserListGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="DeleteSelectedItems">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="UserListGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="Search">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="UserListGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>


<
telerik:RadWindowManager ID="RadWindows" runat="server" Skin="Web20" Behaviors="Close,Move,Resize">
        <Windows>
            <telerik:RadWindow Height="362" Width="504" ID="ViewWindow" OnClientClose="updateRadGrid" RegisterWithScriptManager="false" runat="server" CssClass="actionWindow" NavigateUrl="UserEditor.aspx" VisibleStatusbar="false" VisibleTitlebar="true" ReloadOnShow="true">
            </telerik:RadWindow>
        </Windows>
     </telerik:RadWindowManager>
 
     <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            //View USER
            function showUserViewerWindow(userId)
            {
                var actionWindow = $find("<%=ViewWindow.ClientID %>");
                actionWindow.setUrl("UserViewer.aspx?userId=" + userId);
                actionWindow.show();
            }
 
            //UPDATEGRID
            function updateRadGrid(sender, eventArgs)
            {
                var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
                ajaxManager.ajaxRequestWithTarget("<%= RefreshList.UniqueID%>");
            }
        </script>
     </telerik:RadCodeBlock>

I have attached alerts to the $find function and I keep getting a null value in IE6, a problem I'm not encountering in any other browsers. Ultimately, Im trying to resize the windows specifically for IE because Autosize ="true" always results in scrollbars. I have attached a screen capture of the script error I'm receiving.
Marin Bratanov
Telerik team
 answered on 30 Jan 2012
4 answers
117 views
hi 
i have a RadGrid, popup edit templates at insert/update i need to keep the popup opened after insert/update, how can i accomplish this?


thank you
Tsvetina
Telerik team
 answered on 30 Jan 2012
1 answer
59 views
Hi,
   I have a grid that I am creating programmactically. Everything in the grid works fine. In the Column created Event I am setting the
Column.AutoPostback property to true. When I try to fiter on any of the columns I am getting this error

Microsoft JScript runtime error: 'value' is null or not an object

This is happening on all the column filters. Can someone tell me what is causing this since this is making the filtering useless for the grid? Please let me know since this is kind of a vague error from ajax and im having a hard time trying to find the cause and solution around it, your helps appreciated!!
Princy
Top achievements
Rank 2
 answered on 30 Jan 2012
1 answer
124 views

Hi,

I am using RadEditor in my web application.

Please suggest, how i can add text in editable and non editable area of RadEditor dynamically by coding in c#.
(For Example 3 to 4 lines of Address in non-editable part that come from database).

  i want to save the editable text after text change and i don't want this in any button click. 
 i have to save all the contents in MS Word  in user's system.

Aslo i want to hide all the tools of radeditor and implement copy & paste,

changing the text format on button click events  that are outsite the editor.

Thanks

Vikram 

Vijay
Top achievements
Rank 1
 answered on 30 Jan 2012
15 answers
805 views
Hello,

I'm currently using the client-side scrollIntoView() option to scroll to a node that is selected based on a user's search string. This is working, however, I'd like it to work a little bit differently and can't figure out how to achieve the desired functionality.

For example: The user searches and a match is found in the RadTreeView. The node is selected and the scrollIntoView() method is called. If the node that matches the search string is above the current scroll position, the SelectedNode appears at the top of the treeview. This is fine. What I would like to change is that if the node that matches is below the current scroll position then the SelectedNode appears at the bottom of the treeview. I would like the scrollIntoView method to automatically scroll so the SelectedNode is always at the TOP of the treeview, regardless of which way the SelectedNode was in relation to the current scroll position.

I have not been able to find out how to achieve this and I do not believe that it is built in either.

If anybody knows how to achieve this, I would greatly appreciate some guidance on what I need to do.

Thanks,
Casey
Peter
Telerik team
 answered on 30 Jan 2012
3 answers
81 views
Does Telerik charge to create a new skin?

I am having trouble trying to make the black skin which is Black/Lime green to be more of a Black/Red skin.
The sprite images is where its getting me as some have the Green fading and i cant quite get the colorize to look the same... as it starts to color text etc... i just want the icons/hover effect to be red no green
Bozhidar
Telerik team
 answered on 30 Jan 2012
1 answer
119 views
I kept getting error (Input string was not in a correct format.) loading image from database. some of the values are empty(null).
trying to work around null value, i use dbnull to check for null value and make the pix to be null. it gave me the error above.
Most of the solutions i get online did not work for me.

This is my code.
<div>
<asp:ScriptManager ID="scmn" runat="server" ></asp:ScriptManager>
<asp:UpdatePanel ID="upd" runat="server" >
    <ContentTemplate>
    <asp:SqlDataSource id="dsTrucks" runat="server"
    SelectCommand="SELECT DriverID, UPPER(FirstName) + ', ' + Lastname + ' ' + OtherName AS FullName, dateOfBirth, PlaceOfBirth, StateOfOrigin, Telefone AS Phone, HomeAddress, Picture FROM Trip.Driver ORDER BY FirstName, Lastname, OtherName"
            ConnectionString="<%$ ConnectionStrings:defaultcon %>">
        
    </asp:SqlDataSource>

        <telerik:RadListView ID="RadListView1" runat="server"
        ItemPlaceholderID="ListViewContainer" AllowPaging="True"
            DataSourceID="dsTrucks">
        <LayoutTemplate>
                <asp:PlaceHolder runat="server" id="ListViewContainer" /></LayoutTemplate>
                <ItemTemplate>
                <fieldset>
                    <legend><b>Driver No: </b><%#Eval("DriverID")%></legend>
                    <div class="details">
                        <div style="padding: 5px">
                    <table class="templateTable">
                        <tr>
                            <td rowspan="5">
                                <telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" DataValue='<%#Eval("Picture") == DBNull.Value ? null : Eval("Picture")%>'
                                AutoAdjustImageControlSize="True" Width="120px" Height="140px" ToolTip='<%#Eval("DriverID", "Driver {0} picture.") %>'
                                AlternateText='<%#Eval("DriverID", "Driver {0} picture.}") %>' ResizeMode="Fit" />
                                <a ID="A4" runat="server" class="thickbox"
                            href='<%# Eval("DriverID", "driver_attachpix.aspx?DriverID={0}&TB_iframe=true&height=320&width=400") %>'
                            title='<%# Eval("DriverID", "Change Picture for {0} ::") %>'>Change Picture</a>
                            </td>
                            <td>
                                Driver ID.
                            </td>
                            
                            <td class="value">
                                <asp:Label ID="lblDriverID" runat="server" Text='<%# Eval("DriverID") %>' />
                            </td>
                            <td>
                                Date of Birth
                            </td>
                            <td class="value">
                            <asp:Label ID="lblDateofbirth" runat="server" Text='<%# Eval("dateofBirth", "{0:d}") %>' />
                                
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Fullname
                            </td>
                            <td class="value" colspan="3">
                                <asp:Label ID="lblFullname" runat="server" Text='<%# Eval("Fullname") %>' />
                               
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Place of Birth
                            </td>
                            <td class="value">
                                <asp:Label ID="lblPlaceofBirth" runat="server" Text='<%# Eval("PlaceOfBirth") %>' />
                            </td>
                            <td>
                                State of Origin
                            </td>
                            <td class="value">
                                <asp:Label ID="lblState" runat="server" Text='<%# Eval("StateOfOrigin") %>' />
                            </td>
                        </tr>
                        <tr >
                            
                            <td >Telephone</td>
                            <td class="value"><asp:Label ID="lbphone" runat="server" Text='<%# Eval("Phone") %>' /></td>
                            <td >Home Address</td>
                            <td class="value"><asp:Label ID="lbAddress" runat="server" Text='<%# Eval("HomeAddress") %>' /></td>
                        </tr>

                        <tr >
                            
                            <td class="value">
                                <a ID="btnShowPopup" runat="server" class="thickbox"
                            href='<%# Eval("DriverID", "Driver_Details.aspx?DriverID={0}&TB_iframe=true&height=620&width=860") %>'
                            title='<%# Eval("DriverID", "Other details for {0} ::") %>'>Other details</a>
                            </td>
                            <td class="value">
                                <a ID="A1" runat="server" class="thickbox"
                            href='<%# Eval("DriverID", "Driver_Edit.aspx?DriverID={0}&TB_iframe=true&height=620&width=860") %>'
                            title='<%# Eval("DriverID", "Edit driver {0} details::") %>'>Edit details</a>
                            </td>
                            <td class="value">
                                <a ID="A2" runat="server" class="thickbox"
                            href='<%# Eval("DriverID", "Truck_RecentTrips.aspx?Driver={0}&TB_iframe=true&height=520&width=700") %>'
                            title='<%# Eval("DriverID", "Recent trips for {0}") %>'>Recent trips</a>
                            </td>
                            <td class="value">
                            <a ID="A3" runat="server" class="thickbox"
                            href='<%# Eval("DriverID", "AssignDriver.aspx?Driver={0}&TB_iframe=true&height=220&width=400") %>'
                            title='<%# Eval("DriverID", "Assign truck for {0}") %>'>Assign Truck</a>
                            </td>
                        </tr>
                       
                        
                    </table>
                </div>
                    </div>
                </fieldset>
                </ItemTemplate>
        </telerik:RadListView>

           
        
    </ContentTemplate>
</asp:UpdatePanel>
    
</div>

Can any1 please help?

Tsvetina
Telerik team
 answered on 30 Jan 2012
2 answers
78 views
Hi,    
    
    I use RadTreeView inside Collapsible panel extender. I couldn view the last node in the tree. But when i expand or collapse the collapsible panel extender, the last node is visible. Below is the code i used in design    
 
<div class="left width350" id="divAdministrationModules" runat="server">
                                <div class="divborder maarginleft20 width350">
                                    <asp:Panel ID="panelAdministrationModules" CssClass="" runat="server">
                                        <div class="divSearchHeader width350">
                                            <asp:Label ID="LabelAdministrationTitle" runat="server" Text="Administration Modules"
                                                CssClass="divSearchHeaderText" />
                                            <div class="floatRight">
                                                <asp:ImageButton ID="ImageButtonAdministration" runat="server" ImageUrl="~/images/collapsible.gif"
                                                    AlternateText="(Show/Hide Details...)" />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <asp:Panel ID="panelAdministrationModulesContent" runat="server"  CssClass="maarginleft20 width350"
                                        Style="overflow: hidden;">
                                        <telerik:RadTreeView OnClientNodeChecked="AfterCheck" ID="treeViewAdministrationFunctionals"
                                            TriStateCheckBoxes="true" CheckBoxes="true"  runat="server" autopostbackoncheck="false"
                                            Width="350px">
                                        </telerik:RadTreeView>
                                    </asp:Panel>
                                    <ajaxToolkit:CollapsiblePanelExtender ID="AdministrationMenu" BehaviorID="cpbExtender2"
                                        runat="Server" TargetControlID="panelAdministrationModulesContent" ExpandControlID="panelAdministrationModules"
                                        CollapseControlID="panelAdministrationModules" Collapsed="false" ImageControlID="ImageButtonAdministration"
                                        ExpandedImage="~/images/Uncollapsible.png" CollapsedImage="~/images/collapsible.png"
                                        SuppressPostBack="true" />
                                </div>
                            </div>

Any Ideas would be great

Thanks,
Hema.
Hemamalini
Top achievements
Rank 1
 answered on 30 Jan 2012
0 answers
145 views

 

Hi Team,

 

We are using the telerik rad combo box (Version-2.7.2.0.) in our project.

We came across some issues with Rad combo box.

Follwing are the replication steps for the issue

  • Browse the webpage, Select Telerik  rad combo box
  • Keep the screen ideal for some time.Do not do any operation on page.
  • After sometime try to select any other record from rad combo box
  • This error message occurs:(ScrrenShot1)

 

On click of “Ok” button.We got one more error.:(ScrrenShot2)

Below are the details of telerik rad control and my application.

1)     It is web application developed in asp.net1.1

2)     It uses telerik rad combo box of version 2.7.2.0.

3)     It uses load on demand property with Item Requested event.

 

We have done some analysis. Below are findings

1)     The error pop up is coming from Rad combo box in built .JS file.

 

 

Can you please provide reason and solution for the following problem?

Reason for above error and solution.

Any service release of telerik control for this issue and whether it is compatible with asp.net1.1

 

 

Thanks & Regards,

Namrata

 

 

 

 

 

Namrata
Top achievements
Rank 1
 asked on 30 Jan 2012
6 answers
275 views
Version:  5.3.11.1116
Grid properties in aspx:
<telerik:RadGrid runat="server" ID="Grid" PageSize="20" Width="100%" EnableViewState="false" CssClass="basicList">
<MasterTableView  AutoGenerateColumns="false" AllowPaging="true" AllowCustomPaging="true" AllowSorting="true" DataKeyNames="ID">

We are using custom sorting and paging, and filtering.  We retrieve data via a stored procedure that returns the data sorted (but then the grid also sorts... see #2). 

We are experiencing two problems:
1)
Event sequence is causing 2-3 calls to the database on sorting or filtering -- first from NeedDataSource, and then from the sort or filter.  This raises scalability concerns.  How can we resolve?  When I use the following in the NeedDataSourc event as suggested in another post, the sort doesn't happen:
      if (e.RebindReason != GridRebindReason.PostbackViewStateNotPersisted)
            {
                LoadData(false);
            }
How can we retrieve data once and only once in all scenarios (initial load, sorting, fitlering, page size change, page index change, etc.)?

2)  In addition to reloading the data on sort, we are seeing an incorrect sort in at least one scenario.  Our default sort is descending on a datetimeoffset datatype column.  On page load, sort appears to be correct.  When one clicks on that column header, it correctly sorts ascending on those dates.  But when the column is clicked again to sort descending, it does not sort correctly --
e.g., it sorts a range from 12/08/2011 5:05 PM down to  12/05/2011 3:39 PM
then a range from  12/29/2011 3:33 PM down to  11/11/2011 4:58 PM,
and then a range from 01/04/2012 2:36 PM down to 01/04/2012 2:31 PM
The database is returning the data correctly sorted, so the grid is clearly resorting. 
Clicking again then correclty sorts by our default descending sort.  In this third state, the column now shows no sorting icon, so it's presumably correct because the grid is not resorting incorrectly at this point. 
But I haven't been able to find where or why.
How can we eliminate this incorrect sort?  Why & where/when (what event) is it happening?


Our LoadData() method accepts a boolean rebind parameter and calls Grid.Rebind() if true.

We have coded to the following events:
Grid.PageIndexChanged:  Calls LoadData(true) 
Grid.PageSizeChanged:  Calls LoadData(true)
Grid.SortCommand:  Calls LoadData(true)
Grid.ItemCommand: Calls LoadData(false) and Grid.Rebind()
Grid.ItemDataBound
Grid.NeedDataSource: Calls LoadData(false)

Page_Load: If not a postback, calls LoadData(false)

I can send this page code privately if needed.


Thank you.
Veli
Telerik team
 answered on 30 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?