Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
130 views
My issue is very similar to the case described in: http://www.telerik.com/community/forums/aspnet-ajax/combobox/2010-1-415-radcombobox-automatic-load-on-demand-broken-after-any-postback.aspx

I have a RadComboBox with LoadOnDemand=true and have implemented the ItemsRequested method in my codebehind. I'm using AutoPostBack=true.

My problem is that after selecting an item (and the postback completes), I see this behaviour:

1) I clicked the arrow to open the combobox
2) The ItemsRequested event fires on the server
3) The combobox opens and shows only the selected item
4) I click elsewhere on the screen to blur the combobox
5) I open the combobox again
6) All the list items appear in the combobox but ItemsRequested wasn't called again.


I'm puzzled why this is happening. If I am trying to open the combobox (after a postback) and this triggers the ItemsRequested event, why do the items not appear in my browser until I re-open the combobox?

Is this a bug in RadComboBox, or is there some client JS I could use to get the items re-populating on a subsequent click? Is there a common use case for RadComboBox using both LoadOnDemand and AutoPostBack, or am I trying to use it in an unintended way?
Simon
Telerik team
 answered on 25 Oct 2010
1 answer
109 views
Hi,

I'm dealing with a scenario where I want to construct a grid with multiple datasets. I.e. One grid control with multiple tables within it (each table with a different datasource).

I return the XML data from Sql Server and load the XML into multiple datasets using the DataSet's ReadXml() function.

Each DataSet in turn gets added to a dictionary with a GUID to reference it back when I need to make changes to a specific dataset.

I was looking at using the GridTableView class but I'm not sure if this will fulfill my needs.

For a quick experiment I tried doing the following:

foreach (KeyValuePair<Guid, DataSet> ds in dataSetCollection)
{
GridTableView gtv = new GridTableView(RadGrid1);
gtv.DataSource = ds.Value; //ds.Value is a DataSet object
gtv.DataBind();
RadGrid1.MasterTableView.DetailTables.Add(gtv);
}

The above doesn't seem to do anything, just a blank grid.

What am I missing here or is there any alternative route I can take to achieve the same?

Thanks for your help.
Tsvetina
Telerik team
 answered on 25 Oct 2010
1 answer
87 views
Hello,
i have a problem that i could not solve by simple adding "position:relative" to the scrollable parent.

I'm using the radSlider inside a grid's FilterTemplate, just like you use in the GRid -> FilterTempalte example on your Demos page.

The difference is that i'm using the :

<Scrolling SaveScrollPosition="true" AllowScroll="true" UseStaticHeaders="true" />

the problem is, of course, with the slider not moving along with the scroll bars of the grid...and actually appear outside the grid fix width and adding horizonal scroll bar to my page.

I added the css class:

 

 

.rgDataDiv { position: relative !important; }

as i noticed the parent scrollable control is a div with the class i mentioned before...and still the same problem within IE7.

I attach the grid control definition :

<telerik:RadGrid ID="gridCases" runat="server" AllowPaging="true" AllowCustomPaging="false" PageSize="30" Width="894px" EnableAjaxSkinRendering="true" GridLines="None" Height="455" AllowSorting="true" style="border-left-style:none !important; border-right-style:none !important; position:relative;">

I attach also the FilterTempalte part of the slider:

<div style="float:left; padding: 5px 7px 0 0;">$0</div>
<div style="float:left;">
    <telerik:RadSlider runat="server" ID="RadSlider1" IsSelectionRangeEnabled="true"
    MinimumValue="0" MaximumValue="1010" SmallChange="5" ShowDecreaseHandle="false"
    ShowIncreaseHandle="false" Width="120px" SelectionStart='<%# startSlider %>'
    SelectionEnd='<%# endSlider %>' OnClientValueChanged="ClientValueChange" OnClientSlideStart="ClientSlideStart"
    OnClientSlideEnd="FreightRangeChanged" />
</div>
<div style="float: left; padding: 5px 0 0 7px">$1000</div>
<div style="clear: both">
    <asp:Literal ID="Literal1" runat="server" Text='<%# "Showing: $" & startSlider & " to $" & endSlider %>' />
</div>

Thank you in advance
Tsvetie
Telerik team
 answered on 25 Oct 2010
2 answers
102 views
One of the fields that I get back from the database has a max length of 200 characters.  I want to only show about 80 characters when in grid view, with an elipsis at the end of the data so that the user knows there is more text.  All the text would be shown when in edit mode.  What would be the best way to accomplish this?  Thanks.
Kathy
Top achievements
Rank 1
 answered on 25 Oct 2010
1 answer
52 views
I am running IE8 and 2010 Q2 of the telerik controls.  I am using a custom skin that is setting properties on the rgHeader element.  According to IE8 developer tools, some properties in my custom skin are being overriden by settings from webresource.axd.

The final style applied to my grid header is .radGrid .rgHeader when it should be .radGrid_SharedList .rgHeader.  Why would this other sytel get applied to my grid instead of just the style from the skin?
Dimo
Telerik team
 answered on 25 Oct 2010
1 answer
54 views
After programamtically changing the expanded GridItem setting the property RadGridItem.Expanded to true, the RadGrid_ItemCommand event is not fired. It should be automatically fired since it should behave the same as expanding the item with a mouse click.
Princy
Top achievements
Rank 2
 answered on 25 Oct 2010
4 answers
171 views
hi

I've run into another wee issue, I have a text box (bog standard one) that when I type in part or all of a company name populates a dropdown commbobox (with checkboxes), that all works fine what  need to do is when they select a company from the new list I want it to update another list, but I dont seem to have anyway of capturing the fact that the text has changed in the combobox. I've tried all manner of ways, behind and in the page but I cant get the  OnTextChanged="CaseType_TextChanged" in the same way it works for the text box. Ive tried  ddlCaseList.TextChanged +=new EventHandler(ddlCaseList_TextChanged); but to no avail. I just need to know where to put the the call which captures the event that will fire the event handler!


any thoughts ?

thanks
Pavlina
Telerik team
 answered on 25 Oct 2010
2 answers
101 views
Hi guys,

I am using your Editor and I have 2 issues :

1- On Deployment I get the following error :

Could not find a part of the path 'c:\windows\system32\inetsrv\~\App_Code\ToolsFile.xml'.

I have set ToolsFile="~/App_Code/ToolsFile.xml" in Editor Control. the xml file is located inside the App_Code folder.

2- I can't find a way to able rtl writing in the editor. I have a multilingual website and this is a show stopper
.

Any suggestions? Thanks.




Joseph
Top achievements
Rank 1
 answered on 25 Oct 2010
1 answer
93 views
Can I reference the same ColumnEditor from two different column's ColumnEditorID property in the same RadGrid? It would appear I cannot. If not, I suppose I do not see the advantage that declarative column editors have over TemplateColumns.
Tsvetina
Telerik team
 answered on 25 Oct 2010
2 answers
51 views
Hi All,

I have an issue where if I use the MediaManager to link in a wmv file to the RadEditor it hangs IE6 on the following Reponse.Redirect.

On the Button_Click event I am calling a method to save to the database.
<asp:Button runat="server" ID="SubmitButton" Text="Submit For Approval" CausesValidation="true" OnClick="SubmitButton_Click" OnClientClick="javascript:window.scrollTo(0,0);" />

Which calls the method in the code behind.
    Protected Sub SubmitButton_Click(ByVal sender As ObjectByVal e As EventArgsHandles SubmitButton.Click
        CreateNewArticle()
    End Sub

    Private Sub CreateNewArticle()

        Dim newArtID As Int32 = 0
        Dim body As String = String.Empty
        Dim art As Article = Nothing
        Dim artBody As ArticleDetail = Nothing

        Try
            'create the new article
            art = Article.CreateArticle(-1,
                                        articletitle.Text,
                                        articlesummary.Text,
                                        False,
                                        Date.Now,
                                        System.Web.HttpContext.Current.User.Identity.Name.Remove(0, InStr(System.Web.HttpContext.Current.User.Identity.Name, "\")).Replace("."" ").ToUpper,
                                        GetVisibiliy)
            art.UpdatedDate = Date.Now

            If articlebody.Content.Contains("<img"Then
                art.ThumbnailImage = Mid(articlebody.Content, InStr(articlebody.Content, "src=") + 5, InStr(InStr(articlebody.Content, "src=") + 5, articlebody.Content, "/>") - (InStr(articlebody.Content, "src=") + 5)).Replace(Chr(34), "").TrimEnd
            Else
                art.ThumbnailImage = "~/Content/Images/JCBLogo.png"
            End If

            'create the article detail
            artBody = ArticleDetail.CreateArticleDetail(-1, -1, articlebody.Content.Replace("&nbsp;"" "))

            'save to the db
            Using insertContext As New JCB_IntranetEntities
                insertContext.AddToArticles(art)
                insertContext.AddToArticleDetails(artBody)
                insertContext.SaveChanges()
            End Using

            newArtID = art.ArticleID

        Catch ex As Exception
            ErrorLogging.AddNewErrorLogEvent(ex)
            Throw
        Finally
            If articlebody.Content IsNot Nothing Then
                articlebody.Content = Nothing
                articlebody.Dispose()
            End If
            If artBody IsNot Nothing Then artBody = Nothing
            If art IsNot Nothing Then art = Nothing
        End Try

        'If the save worked then redirect to the article
        If newArtID > 0 Then
            Response.Redirect(String.Format("~/Articles/Article.aspx?ArticleID={0}", newArtID))
        End If

    End Sub
The data saves correctly but hangs on the Response.Redirect at the bottom of the method. I have checked the Page Load in the called page and the code runs through as expected. I did check to see if it was a problem with the target page by changing the redirect to www.google.com and experienced the same behaviour.

This only seems to happen if I embed a video into the editor, if I use just text & images the save and redirect works without issue. I have also confirmed that it works in Firefox & IE7/8.

Any thoughts you have would be welcome.

Regards

Phil Murray
Rumen
Telerik team
 answered on 25 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?