Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
Hi everyone.  I am having an issue with the Webservice binding client binding example here: http://demos.telerik.com/aspnet-ajax/grid/examples/client/livedata/defaultcs.aspx.  It works fine up to 10 rows of data, but anything after 10 rows the elements inside the template column come back as null when trying to get the object via javascript.

You can reproduce this by opening up the sample web site up in visual studios and then adding a couple more stock tickers to the App_Code/Grid/QuoteWebService.cs web service. 
// Lines 48 and 92 
string stockTickers = "MSFT, YHOO, GOOG, HPQ, DELL, AAPL, NOVL, IBM, IBN, IBKR, INO, AMAT, BAC, CIT, DIS, EBAY"; 

Then view the Grid/Examples/Client/LiveData/DefaultCS.aspx in a web browser and you will see that it errors on the 11th row saying that it cannot find the image element inside of the template column.

Both of the spanControl and image returns null in the DefaultCS.aspx page.
var spanControl = args.get_item().get_cell("Change").getElementsByTagName('span')[0]; 
var image = args.get_item().get_cell("Change").getElementsByTagName('img')[0]; 

Tsvetoslav
Telerik team
 answered on 01 Sep 2009
3 answers
172 views
Hi

I am having trouble with two windows on a page (maybe?).

I have a page with a grid, and two windows like this:

<telerik:radwindowmanager ID="RadWindowManager1" runat="server"   
        Title="MyWindows">  
        <Windows> 
        <telerik:RadWindow ID="RadWindow1" runat="server"   
                NavigateUrl="~/windows/request_list.aspx" OpenerElementID="divRequest"   
                CssClass="windowBody" Animation="None" Left="" Top="" BackColor="#5F6060"   
                Width="450px" Height="300px" 
                DestroyOnClose="False" ReloadOnShow="True" ShowContentDuringLoad="True"   
                Behaviors="Close,Move,Resize" Modal="True" VisibleStatusbar="False" VisibleOnPageLoad="False">  
        </telerik:RadWindow> 
          
        <telerik:RadWindow ID="RadWindowCurrency" runat="server"   
                ToolTip="Click to change currency setting"   
                NavigateUrl="~/windows/currency-swap.aspx" OpenerElementID="divChangeCurrency" 
                CssClass="windowBody" Animation="None" Left="" Top="" BackColor="#5F6060" 
                Width="350px" Height="360px"    
                DestroyOnClose="False" ReloadOnShow="True" ShowContentDuringLoad="True"   
                Behaviors="Close,Move,Resize" Modal="true" VisibleStatusbar="False">  
            </telerik:RadWindow> 
                       
        </Windows> 
        
    </telerik:radwindowmanager> 


The second window (RadWindowCurrency) works when the page has just been loaded
but will NOT open in the following circumstances:

1 ) after the first window has been opened and close again

2 ) after there has been a postback of the grid (which is in a separate radajaxpanel)

There is obviously some interaction, but what do you suggest a try to sort this out?

Thanks

Clive

Georgi Tunev
Telerik team
 answered on 01 Sep 2009
0 answers
95 views
I want to grouping like this
1) First group by Marks
2) Inside of above grouping inner grouping  is group by Age
3) and those who hv Marks and age is same is display below the combined header
See th sample below


EmpNo              Ename         Age           Marks
 Marks : 54                                         Avg: 20
1                     rahul            25                 54
 Total   : 1

 Marks : 55                             Avg: 30
2                     kfsjfksfks       28              55
3                     fksdfjskf         28              55
 Total   : 2

Marks : 64                                               Avg: 30
3                     fksdfjskf         29              64
Combined
   |---                 kailsh            28             64
   |---                nitin                28            64
   |---                abc                 28            64
 Total   : 4


Thanks
Please reply urgently How to grouping like above and How to Hide the subgroup fotter

reply me urgent

Rahul
Top achievements
Rank 1
 asked on 01 Sep 2009
1 answer
89 views
Hi,
  I am loading a page in RadDialog instead of a page redirect and enabled the page as HTTPS. The page is getting loaded in the RadDialog but when i close it its giving a pop up mentioning "The page contains secure/nonsecure warning".

The stand alone page is with https is loading correct and I tried with Window.open without radwindow then also it works correctly.

I tried all these thing given from telerix below
http://www.telerik.com/support/kb/aspnet-ajax/editor/secure-nonsecure-warning-with-radeditor-under-ssl-https.aspx

Please let me know if there is any workaround,is IE 7 and radWindow is having this problem.

Thanks,
Gan
Georgi Tunev
Telerik team
 answered on 01 Sep 2009
1 answer
370 views
If you see my site (www.theplaygrounds.co.uk) you get a YSOD as follows:

Could not load type 'Telerik.Web.UI.RadUploadHttpModule'.


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: Could not load type 'Telerik.Web.UI.RadUploadHttpModule'.


I am going to the root (url as above) and I have not made use of this specific control in anywhere on my site. This YSOD occurs on any page in the site.

Can anyone give me clues as to why this error is happening?

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: Could not load type 'Telerik.Web.UI.RadUploadHttpModule'.



Kamen Bundev
Telerik team
 answered on 01 Sep 2009
2 answers
83 views
Hello,

I have a problem with RadComboBox, when i switched to IE8.0, i found the rad combo box behavior so strange, it became so long and when you open it , it opens to the wrong direction, i have applied the compatibility option from IE tools , and now it became normal, but my problem is that i can't do that for all clients who will use my site, so a solution has to be found before.
Any suggestions will be appreciated,,

Kind Regards,
Shatha J
Top achievements
Rank 1
 answered on 01 Sep 2009
2 answers
160 views
Hi there,

I've read in this forum that it's possible to obtain a value that the user changed on the Edit Form as follows:

            if ((e.Item is GridEditFormInsertItem) && (e.Item.OwnerTableView.IsItemInserted)) 
            { 
                GridEditFormInsertItem editformItem = (GridEditFormInsertItem)e.Item; 
                TextBox textBox = (TextBox)editformItem[columnName].Controls[0]; 
                return textBox.Text; 
            } 

But how would you do the same thing in the ItemUpdated handler?

There have been a few posts regarding obtaining a value from the grid in the ItemUpdated handler:

http://www.telerik.com/community/forums/aspnet-ajax/grid/get-item-name-from-grid.aspx

However, if the user modified the value, this method still returns the previous value.

Is there any way to obtain the value that the user entered in the TextBox from the GridUpdatedEventArgs instance?

Thanks,
Mark

Mark DeMichele
Top achievements
Rank 1
 answered on 01 Sep 2009
1 answer
357 views
Hi,

i have a RadToolbar and a RadGrid.

In the RadGrid i selected Items to delete them. Before i deleting i want to confirm this event by a radConfirm.

But no matter what i do always the postback is running.

Here my code:
<script type="text/javascript">  
 
    var RadGrid1;  
    var RadConfirmState = false;  
 
      
    function GetGridObject(sender, eventArgs) {  
        RadGrid1 = sender;  
    }  
 
      
    function OnClientButtonClicking(sender, args) {  
        var comandName = args.get_item().get_commandName();  
        if (comandName == "Save") {  
            var DataItems = $find("<%=Grid1.ClientID %>").get_masterTableView().get_dataItems();  
            var masterTable = $find('<%= Grid1.ClientID %>').get_masterTableView();  
            for (i = 0; i < DataItems.length; i++) {  
                var cell = masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[i], "ckbDelete");  
                var checkbox = cell.getElementsByTagName("INPUT")[0];  
                if (checkbox != null) {  
                    if (checkbox.checked == true) {  
                        OpenConfirm();  
                    }  
                }    
            }  
        }  
        //alert('RadConfirmState: ' + RadConfirmState);  
          
       // CAN NOT CANCEL EVENT  
        args.set_cancel(!RadConfirmState);  
        //return false;  
    }  
 
    function OpenConfirm() {  
        radconfirm('<h3 style=\'color: #333399;\'>Are you sure?</h3>', confirmCallBackFn, 330, 100, null, 'RadConfirm custom title');  
    }  
    function confirmCallBackFn(arg) {  
        radalert("<strong>radconfirm</strong> returned the following result: <h3 style='color: #ff0000;'>" + arg + "</h3>", null, null, "Result");  
        RadConfirmState = arg;  
    }  
 
</script> 
 
<table class="style1" cellpadding="0" cellspacing="0">     
    <tr>    
        <td style="width: 100%">     
            <telerik:RadToolBar ID="rtbOne"      
                                style="display: block; float: none"       
                                runat="server"      
                                OnClientButtonClicking="OnClientButtonClicking"    
                                OnButtonClick="rtbOne_ButtonClick"      
                                Width="100%">     
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>    
                <Items>    
                        
                    <telerik:RadToolBarButton runat="server"      
                        ImageUrl="~/Image_01.png"      
                        CommandName="Save" Text="Save"      
                        ToolTip="Save...">     
                    </telerik:RadToolBarButton>                                                
                </Items>    
            </telerik:RadToolBar>    
        </td>    
     </tr>    
</table>    
    <telerik:RadGrid ID="Grid1" runat="server" BorderStyle="Solid"      
        AllowMultiRowEdit="True" Width="100%"      
        AutoGenerateColumns="False" onitemdatabound="Grid1_ItemDataBound"      
        OnItemCreated="Grid1_ItemCreated"    
        OnNeedDataSource="Grid1_OnNeedDataSource"      
        oncancelcommand="Grid1_CancelCommand" GridLines="None">     
        <HeaderContextMenu>    
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>    
        </HeaderContextMenu>    
        <PagerStyle Mode="NumericPages"></PagerStyle>    
        <ClientSettings allowrowsdragdrop="false" AllowColumnsReorder="false"       
                ReorderColumnsOnClient="false">     
                <Selecting AllowRowSelect="True" />    
                <Scrolling AllowScroll="false" UseStaticHeaders="false" />    
                <ClientEvents OnGridCreated="GetGridObject"></ClientEvents>    
        </ClientSettings>    
        <MasterTableView EditMode="InPlace" GridLines="Both" BorderStyle="Solid" GroupsDefaultExpanded="true" runat="server">     
             
            <GroupByExpressions>    
                <telerik:GridGroupByExpression>    
                    <SelectFields>    
                        <telerik:GridGroupByField      
                                FieldName="Text_one"      
                                HeaderText=" "    
                                HeaderValueSeparator=" ">     
                        </telerik:GridGroupByField>    
                    </SelectFields>       
                    <GroupByFields>    
                        <telerik:GridGroupByField      
                                FieldName="Text_one"      
                                SortOrder="Ascending">     
                        </telerik:GridGroupByField>    
                    </GroupByFields>                                       
                </telerik:GridGroupByExpression>    
            </GroupByExpressions>    
             
            <Columns>    
                <telerik:GridEditCommandColumn  UniqueName="editCommand"      
                    HeaderImageUrl="~/Images/Edit.gif"      
                    ButtonType="ImageButton"      
                    CancelImageUrl="~/Images/Cancel.gif"      
                    UpdateImageUrl="~/Images/Save.gif"      
                    EditImageUrl="~/Images/Edit.gif">     
                <ItemStyle Width="20px"></ItemStyle>    
                </telerik:GridEditCommandColumn>    
                 
                <telerik:GridCheckBoxColumn UniqueName="ckbDelete"      
                    HeaderImageUrl="~/Images/Close.gif">     
    
                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>    
                    <ItemStyle Width="20px" />    
                </telerik:GridCheckBoxColumn>    
    
                <telerik:GridBoundColumn DataField="Id" UniqueName="Id"      
                    Visible="false">     
                </telerik:GridBoundColumn>    
        
                                                        
                <telerik:GridTemplateColumn HeaderText="Text Group" GroupByExpression="" Groupable="true"    
                    DataField="CT" UniqueName="CT" Visible="false">     
                    <ItemStyle Width="200px"/>     
                    <ItemTemplate>    
                        <asp:Label runat="server" Text='<%# Eval("text") %>'      
                            CssClass=""></asp:Label>    
                    </ItemTemplate>    
                </telerik:GridTemplateColumn>    
    
                <telerik:GridTemplateColumn HeaderText="Description" DataField="Temptext"      
                    UniqueName="Temptext">     
                    <ItemTemplate>    
                        <asp:Label runat="server" Text='<%# Eval("Temptext") %>' CssClass=""></asp:Label>    
                    </ItemTemplate>    
                </telerik:GridTemplateColumn>    
                  
            </Columns>                        
        </MasterTableView>    
        <FilterMenu>    
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>    
        </FilterMenu>    
    
    </telerik:RadGrid>    
 

Thanks
Princy
Top achievements
Rank 2
 answered on 01 Sep 2009
1 answer
105 views
Hi, I have a combobox inside an updatepanel (Q2 2009).

After selectedIndexChanged, I can't click on dropdown arrow. This bug is happening in Firefox and Chrome.
in IE it's fine.

This updatepanel is inside LoggedInTemplate:

<

 

asp:UpdatePanel runat="server" ID="formupdatepanel">

 

 

 

<ContentTemplate>

 

 

 

<telerik:RadComboBox ID="formlist" runat="server" AutoPostBack="true"

 

 

 

OnSelectedIndexChanged="formlist_selectedindexchanged" OffsetX="-40" OffsetY="-155" AllowCustomText="true" EmptyMessage="Select a form">

 

 

 

<Items>

 

 

 

<telerik:RadComboBoxItem Text="Absence Form" Value="Absence Form" />

 

 

 

<telerik:RadComboBoxItem Text="Satisfaction Form" Value="Satisfaction Form" />

 

 

 

</Items>

 

 

 

</telerik:RadComboBox> <br />

 

 

 

<div runat="server" ID="formdiv"></div>

 

 

 

</ContentTemplate>

 

 

</asp:UpdatePanel>

On My code behind, in selectedIndexChanged event,

I put formdiv.InnerHtml = CallForm()
Where CallForm is just an object tag to play Flash.

Also, I have to manually put the items on on the aspx page. When I put them in RadBuilder, it doesn't work.

Any help is appreciated

 

 

 

 

Andreas
Top achievements
Rank 1
 answered on 01 Sep 2009
2 answers
153 views
  Hi,
    I have this code snip of what my signiture looks like .....
 protected void RadMenu1_OnItemClick(object sender, RadMenuEventArgs e)  
        {  
        RadMenuItem ItemClicked = e.Item;  
        string mText = ItemClicked.Text.ToString(); 

    I am trying to figure out how to keep the loading panel from running when i just click on the menu. I thought that I could just cancel the flow in the click_event itself , like e.Cancel ?
   Here is my code for the loading panel ..... 
 <telerik:RadAjaxManagerProxy ID="RadAjaxManageriq1" runat="server" > 
        <AjaxSettings>          
            <telerik:AjaxSetting AjaxControlID="equipmentGrid">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="equipmentGrid" 
                      LoadingPanelID="RadAjaxLoadingPanel1" />    
                   <telerik:AjaxUpdatedControl ControlID="RadToolTipGeneralHelp" />                       
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
     </telerik:RadAjaxManagerProxy>   
      
      
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="5">  
        <table style="width: 100%; height: 100%;">  
            <tr style="height: 100%">  
                <td align="center" valign="middle" style="width: 100%">  
                    <asp:Image ID="Image2" ImageUrl="~/mybodyscience/iqimages/Loading_Images/loading3.gif" 
                        BorderWidth="0px" Height="45px" Width="145px" AlternateText="Processing Data ...." 
                        runat="server"></asp:Image> 
                </td> 
            </tr> 
        </table> 
    </telerik:RadAjaxLoadingPanel> 
     
 thanks for any advice ...  



IQworks
Top achievements
Rank 1
 answered on 01 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?