Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
91 views
Hello Telerik, 

I recently noticed a problem in my Wep App and I think it should be easy to solve. I probably just forgot one thing, but I can't seem to find it.

Basically, as seen in the pictures, there's a RadGrid that contains various items and once you click on the reference number in the list (a LinkButton),
it pops up a RadWindow with details about that order (second picture).

My problem is the following, once I close the RadWindow, it closes properly and everything is fine and it takes me back to the RadGrid.
If I click on another item, it pops up the first RadWindow I opened, and then on top of that opens the new one.

I can close the window, select another link and then the first, second and now third will be there.
The last one clicked being on top of all and the first one being the last under every other ones. 

I don't really know where to search and I can provide code if you want but there is alot of code so.. it would be long.

Thank you!
Mark
Top achievements
Rank 1
 answered on 28 Oct 2014
1 answer
172 views
I have a nested radgrid, with a single detailtable. I have set it up with a RadContextMenu.

The problem is that I only want the RowContextMenu to be shown only in the mastertable - not the detailtable.

My initial thought was to differ on the tableview names:

function RowContextMenu(sender, args)
{
    alert(args.get_tableView().get_name());
}

But I can't prevent the contextmenu from showing, by cancelling the firing event.

Suggestions?

The Telerik build is rather old: 2012.1.411.35

Regards,
Anders.

<telerik:RadGrid>
    <%--OMITTED--%>
    <ClientSettings>
        <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
        <Selecting AllowRowSelect="false" />
    </ClientSettings>
    <%--OMITTED--%>
</telerik:RadGrid>
<telerik:RadContextMenu ID="RadContextMenu1" runat="server" OnItemClick="RadContextMenu1_ItemClick">
    <Targets>
        <telerik:ContextMenuControlTarget ControlID="RadGrid1" />
    </Targets>
    <CollapseAnimation Duration="200" Type="OutQuint" />
    <Items>
        <telerik:RadMenuItem runat="server" Text="Kopier">
        </telerik:RadMenuItem>
        <telerik:RadMenuItem runat="server" Text="Slet" Enabled="False">
        </telerik:RadMenuItem>
    </Items>
</telerik:RadContextMenu>
Angel Petrov
Telerik team
 answered on 28 Oct 2014
0 answers
198 views
RadChart is obsolete as of Q1 2014 and is not supported by Telerik as of Q3 2014.

RadChart is discontinued in favor of RadHtmlChart—a more modern and flexible charting component.

RadChart will remain in the Telerik.Web.UI.dll assembly, so you can still use it if needed.

You may find useful the RadHtmlChart documentation and live demos as well as the following resources regarding migrating from RadChart:

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 28 Oct 2014
1 answer
111 views
I have a grid and I only want the ApprovedAmt and isChecked to be editable when the form is loaded. How can I do this?
 <telerik:RadGrid ID="gridFundingBills" runat="server" Width="1100px" AllowMultiRowSelection="True"
                        CssClass=" MyGridClass"
                        AutoGenerateColumns="False"
                        OnNeedDataSource="gridFundingBills_NeedDataSource"
                        OnItemDataBound="gridFundingBills_ItemDataBound"
                        OnSelectedIndexChanged="gridFundingBills_SelectedIndexChanged"
                        OnPreRender="gridFundingBills_PreRender"
                        AllowMultiRowEdit="True">
                        <MasterTableView DataKeyNames="FundingDtlID" EditMode="InPlace">
                            <Columns>
                                <telerik:GridBoundColumn DataField="CustomerNm" FilterControlAltText="Filter CustomerNm column" HeaderText="Property" SortExpression="CustomerNm" UniqueName="CustomerNm">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="VendorNm" FilterControlAltText="Filter VendorNm column" HeaderText="Vendor" SortExpression="VendorNm" UniqueName="VendorNm">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="BankAcct" FilterControlAltText="Filter BankAcct column" HeaderText="Bank" ReadOnly="True" SortExpression="BankAcct" UniqueName="BankAcct">
                                </telerik:GridBoundColumn>
                                <telerik:GridHyperLinkColumn UniqueName="BillNo" HeaderText="Bill Reference Number" DataTextField="BillNo" DataNavigateUrlFields="BillUrl" DataNavigateUrlFormatString="http://{0}" Target="_blank">
                                </telerik:GridHyperLinkColumn>
                                <telerik:GridBoundColumn DataField="BillURL" FilterControlAltText="Filter BillURL column" ReadOnly="True" SortExpression="BillURL" UniqueName="BillURL" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="BillPeriod" FilterControlAltText="Filter BillPeriod column" HeaderText="Bill Period" ReadOnly="True" SortExpression="BillPeriod" UniqueName="BillPeriod" ItemStyle-Width="150px" HeaderStyle-Width="150px">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="DueDt" DataType="System.DateTime" FilterControlAltText="Filter DueDt column" HeaderText="Due Date" SortExpression="DueDt" UniqueName="DueDt" DataFormatString="{0:d}" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="TotalAmt" DataType="System.Decimal" FilterControlAltText="Filter TotalAmt column" HeaderText="TotalAmt" SortExpression="Total Due" UniqueName="TotalAmt" DataFormatString="{0:F}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="RemainingAmt" DataType="System.Decimal" FilterControlAltText="Filter RemainingAmt column" HeaderText="Remaining Balance" ReadOnly="True" SortExpression="RemainingAmt" UniqueName="RemainingAmt" DataFormatString="{0:F}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="FundingDtlID" DataType="System.Guid" FilterControlAltText="Filter FundingDtlID column" HeaderText="FundingDtlID" ReadOnly="True" SortExpression="FundingDtlID" UniqueName="FundingDtlID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="BankAcctID" DataType="System.Guid" FilterControlAltText="Filter BankAcctID column" HeaderText="BankAcctID" ReadOnly="True" SortExpression="BankAcctID" UniqueName="BankAcctID" Visible="false">
                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="ApprovedAmt" DataType="System.Decimal" FilterControlAltText="Filter ApprovedAmt column" HeaderText="Amount Approved" ReadOnly="False" SortExpression="ApprovedAmt" UniqueName="ApprovedAmt" DataFormatString="{0:F}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                                </telerik:GridBoundColumn>
                                <telerik:GridCheckBoxColumn DataField="isChecked" DataType="System.Boolean" FilterControlAltText="Filter isChecked column" HeaderText="Pay in<br />Full" ReadOnly="False" SortExpression="isChecked" UniqueName="isChecked" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="75px">
                                </telerik:GridCheckBoxColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings AllowKeyboardNavigation="true" EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                            <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true"></Selecting>
                            <%-- <Scrolling AllowScroll="true" ScrollHeight="500px" UseStaticHeaders="true" />--%>
                            <%-- <ClientEvents OnGridCreated="GridCreated" />--%>
                        </ClientSettings>
                    </telerik:RadGrid>
Viktor Tachev
Telerik team
 answered on 28 Oct 2014
1 answer
106 views
I have two usercontrols in .aspx page and has a telerik panel.  Everything seems to be working fine even passing values between the diff. usercontrols.  the problem I'm having is updating screen values in usercontrol2 when something changes in usercontrol1.  (in code behind I'm seeing the values fine, but the screen controls don't reflect any changes)

So how can I refresh usercontrol2 to see the updates?  example: _lblLocationId in usercontrol2 gets a new value from usercontrol1's location change.  everything updates and I see the change in debug, but the page doesn't change to reflect the new locationId.

Dim ucContacts As ucContacts = CType(pb.Items(2).FindControl("ucContacts"), ucContacts)
Dim _lblLocationId As Label = ucContacts.Contacts_lblLocationId
_lblLocationId.Text = ddlLocations.SelectedValue

thanks
Doug
Boyan Dimitrov
Telerik team
 answered on 28 Oct 2014
4 answers
201 views
Hello,

Is it posible to validate if there is any selected date in a RadCalendar?

Sonia
Top achievements
Rank 1
 answered on 28 Oct 2014
1 answer
81 views
Hello Folks,

I've modeled my grid after the sample code provided under the section "Fetching additional records when the scroll bar reaches its endpoint" on this documentation page http://www.telerik.com/help/aspnet-ajax/grid-virtual-scroll-paging.html

Everything works well and as expected with the exception of this problem. In IE (any version), when I scroll to the bottom, the spinner image doesn't show. This is confusing to the user as there's no indication that the grid is fetching more records. Eventually, the records are loaded but it's hard to notice it happening.

The only difference between my code and the sample code is that I'm firing the AJAX request to load more records by triggering the click event on a hidden button. Here's my function to handle scrolling:

function HandleScrolling(sender, eventArgs) {
            if (eventArgs.get_isOnBottom()) {
                var grid = $find("<%=rgUserList.ClientID %>");
                var hiddenGroupTotalUserCount = document.getElementById('<%=hiddenGroupTotalUserCount.ClientID %>');
                var allRecordsCount = parseInt(hiddenGroupTotalUserCount.value);
                var currentlyDisplayedRecordsCount = grid.get_masterTableView().get_pageSize();
  
                if (currentlyDisplayedRecordsCount < allRecordsCount) {
                    //if the visible items are less than the entire record count trigger a click event for the load more users button
                    var button = document.getElementById('<%=buttonHiddenLoadMoreUsers.ClientID %>');
                    if (button) {
                        button.click();
                    }
                } else {
                    //Otherwise, hide the "scroll for more" label
                    scrollForMoreLabel = document.getElementById("<%=scrollForMoreLabel.ClientID%>");
  
                    if (scrollForMoreLabel != undefined) {
                        scrollForMoreLabel.style.visibility = "hidden";
                    }
                }
            }
        }

The hidden button calls a server side function. Here's the button markup:

<input runat="server" ID="buttonHiddenLoadMoreUsers" OnClick="ButtonHiddenLoadMoreUsers_Click" Style="width: 0; height: 0; display: none;" />

I've included an AjaxSetting for the hidden button in my RadAjaxManagerProxy here:

<telerik:RadAjaxManagerProxy ID="ajaxManager2" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="buttonHiddenLoadMoreUsers">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgUserList" LoadingPanelID="loadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>

The odd thing is, if I grab the scroll bar and move it to the bottom of the grid, the spinner shows and everything is fine. It only happens if I scroll to the bottom of the list. I put a break point in the HandleScrolling JS function (inside the "isOnBottom" check) and it seems to be getting called twice in IE when I scroll. The first time doesn't seem to fire the AJAX call, even though it hits the hidden button click function call. The second time does trigger it though. I'm not sure if this behavior has something to do with this problem.

I was wondering if you've seen this behavior before or can reproduce it. I appreciate your help.

Thanks,

Mohammed
Angel Petrov
Telerik team
 answered on 28 Oct 2014
1 answer
74 views
Are the SP releases more stable than the new feature releases?

For example, the pattern I see with Telerik AJAX is a new feature release (i.e. Q2), followed a month or 2 later with a SP (service pack) release (i.e. Q2 SP1).  When I look at the patch notes, I notice that the SP are almost all bug fixes, whereas the new feature releases are about an event mix of new features and bug fixes.  Am I correct to assume the SP releases are about fixing bugs - therefore more stable / less headaches for developers?  Or are SP releases just as stable as new feature releases?
Marin Bratanov
Telerik team
 answered on 28 Oct 2014
1 answer
200 views
I am working on upgrading some sites from   V2013.1.714.40 to V2014.2.724.40 and I am having an issue with the filters:  ConvertFontToSpan,ConvertToXhtml and FixUlBoldItalic


I am calling DisableFilter  on page load, but the filters don't appear to be working the same as  before. 


When I read the RadEditor.Content on server or preview in the HTML window I am getting the following results:


Results in  V2013.1.714.40  (Expected Result) 
This will appear below your profile photo <u>on page 4 of</u> your newsletter. Please include attorne<i>y name(s</i>) and/or the <b>firm n</b>ame, an address, ph<font color="#00b050">one number, e</font>mail address, and your firm website. A maximum of 12 lines are available<br>

Note: The Bolds are <b></b>, the Italic is <i></i>, Underline is <u></u> and the Font is <Font ></font>    

 
Results in  V2014.2.724.40 and V2014.1.403.40
This will appear below your profile photo <span style="text-decoration: underline;">on page 4 of</span> your newsletter. Please include attorne<em>y name(s</em>) and/or the <strong>firm n</strong>ame, an address, ph<span style="color: rgb(146, 208, 80);">one number, e</span>mail address, and your firm website. A maximum of 12 lines are available<br>

Note: The Bolds are now <strong></strong>, the Italic is now <span style="text-decoration: underline;"></span>, Underline is now <em></em> and the Font is now <Font <span style="color: "></span>    




Did something change in the way the filters are used?        


  <telerik:RadEditor ID="RadEditor1" runat="server"  Width="300px"  StripFormattingOnPaste="MSWord, MSWordNoFonts, MSWordRemoveAll, Css, Font, Span"
                                    StripFormattingOptions="MSWord, MSWordNoFonts, MSWordRemoveAll, Css, Font, Span"
           Skin="Default">
                              
                                     <Tools>
                                      <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="Save" Text="Save" />
                                        <telerik:EditorTool Name="Cancel" Text="Cancel" />
                                       
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="Cut" />
                                        <telerik:EditorTool Name="Copy" />
                                        <telerik:EditorTool Name="Paste" />
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="Undo" />
                                        <telerik:EditorTool Name="Redo" />
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="InsertSymbol" />
                                      </telerik:EditorToolGroup>
                                      <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="Bold" />
                                        <telerik:EditorTool Name="Italic" />
                                        <telerik:EditorTool Name="Underline" />
                                        <telerik:EditorTool Name="Subscript" />
                                        <telerik:EditorTool Name="Superscript" />
                                                                                <telerik:EditorTool Name="ForeColor" />
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="JustifyLeft" />
                                        <telerik:EditorTool Name="JustifyRight" />
                                        <telerik:EditorTool Name="JustifyCenter" />
                                        <telerik:EditorTool Name="JustifyFull" />
                                        <telerik:EditorTool Name="JustifyNone" />
                                      </telerik:EditorToolGroup>
                                      <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="InsertOrderedList" />
                                        <telerik:EditorTool Name="InsertUnorderedList" />
                                
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="InsertParagraph" />
                                        <telerik:EditorSeparator />
                                
                                 
                                        
                                        <telerik:EditorTool Name="AjaxSpellCheck" Text="Spell Check" />
                                      </telerik:EditorToolGroup>
                                    </Tools>
                                    <Content>
                                   
</Content></telerik:RadEditor>
 

   protected void Page_Load(object sender, EventArgs e)
    {
        RadEditor1.DisableFilter(EditorFilters.ConvertFontToSpan);
        RadEditor1.DisableFilter(EditorFilters.ConvertToXhtml);
        RadEditor1.DisableFilter(EditorFilters.FixUlBoldItalic);
        RadEditor1.DisableFilter(EditorFilters.MozEmStrong);
 
    }
Ianko
Telerik team
 answered on 28 Oct 2014
1 answer
168 views
I have a grid that is displaying a couple of values from an object data source along with an unbound GridClientSelectColumn:

<Columns>
   <telerik:GridBoundColumn ColumnGroupName="gridData"
                                              DataField="LocationID"
                                              ReadOnly="true"
                                              UniqueName="LocationID">
   </telerik:GridBoundColumn>

   <telerik:GridBoundColumn ColumnGroupName="gridData"
                                              DataField="LocationDesc"
                                              ReadOnly="true"
                                              UniqueName="LocationDesc">
   </telerik:GridBoundColumn>

   <telerik:GridBoundColumn ColumnGroupName="gridData"
                                               DataField="DefaultValue"
                                               Display="false"
                                               UniqueName="DefaultValue">
   </telerik:GridBoundColumn>

   <telerik:GridClientSelectColumn ColumnGroupName="gridData" 
                                                        UniqueName="Select">
   </telerik:GridClientSelectColumn>

</Columns>

The LocationID, LocationDesc, and DefaultValues are coming from the datasource and are bound.  What I'd like to do is set that GridClientSelectColumn to selected if the DefaultValue (which is a Boolean) from the datasource is true.

I've tried several different approaches but have not found one that works yet.  Can anyone enlighten me?
Eyup
Telerik team
 answered on 28 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?