Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 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
169 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
72 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
64 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
181 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
150 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
3 answers
92 views
Hi There,

I have multiple image editors loaded on a page. All have a OnClientLoad function which does a executeCommand('crop').
The dialogs are opened, but only the last image editor is showing the crop dialog. The other dialogs seem to be hanging and can't be opened/closed anymore.

Many thanks in advance for your support!

Vessy
Telerik team
 answered on 28 Oct 2014
1 answer
55 views
Hi,

I found an other problem in the grid. If you have two columns bound to the same datafield grouping will fail with the following error:
An item with the same key has already been added

Example:
<telerik:RadGrid ClientSettings-AllowDragToGroup="true" ShowGroupPanel="true" ShowFooter="true" runat="server" ID="rg" AutoGenerateColumns="False" GroupPanelPosition="Top">
                <MasterTableView>
                    <Columns>
                        <telerik:GridBoundColumn HeaderText="id" DataField="id"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="value 1" DataField="Value" UniqueName="Value1"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="value 2" DataField="Value" UniqueName="Value2"></telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

Code behind:
Protected Sub rg_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rg.NeedDataSource
        If e.IsFromDetailTable = False Then
 
            Dim dt As New DataTable()
            dt.Columns.Add("id", GetType(Integer))
            dt.Columns.Add("text", GetType(String))
            dt.Columns.Add("value", GetType(Double))
 
            Dim r As DataRow
 
            r = dt.NewRow()
            r("id") = "1"
            r("text") = "nr. 1"
            r("value") = 1.5
            dt.Rows.Add(r)
 
            r = dt.NewRow()
            r("id") = "2"
            r("text") = "nr. 2"
            r("value") = 2.5
            dt.Rows.Add(r)
 
            rg.DataSource = dt
        End If
    End Sub

 
Maria Ilieva
Telerik team
 answered on 28 Oct 2014
1 answer
80 views
I have a Radgrid with a RadComboBox in a templateColumn. My other columns are AutoGenerated. By default the template column comes as the first column in the grid. If I leave it like that, it will work just fine. But whenever I change the index of it (and it actually moves), the RadComboBox in the first 9 rows stops working. From row 10 until the last it works again. I also tried with Autogenerate= false. Same issue.The code is use to change the index is in the aspx.cs file, gets called on PreRender Event and looks like this:

GridColumn c = RadGrid1.MasterTableView.GetColumnSafe("Temp");
if (c != null)
{
int total = RadGrid1.MasterTableView.RenderColumns.Count() - 2;
for (int i = total; i >= 2; i--)
{
RadGrid1.MasterTableView.RenderColumns[i + 1].OrderIndex = i - 1;
}
c.OrderIndex = total + 1;
}
RadGrid1.MasterTableView.Rebind();
Kostadin
Telerik team
 answered on 28 Oct 2014
5 answers
438 views
Hi

i am probably missing something but in the demos etc i cant seem to find a way to draw a line between 2 points , i can put the points on the map fine, but i cant seem to find a way to draw a line between them on the map.

any help/instruction would be great thanks.

Peter.
Konstantin Dikov
Telerik team
 answered on 28 Oct 2014
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?