Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
386 views
Hey guys

Trying to set focus to a specific control in a radwindow content template.  I have the following in my Onclientshow (taken from another thread).  Thanks!

<script type="text/javascript">
    function OnClientShow(sender, args) {
        var pnum = $get('<%# rwDialog.FindControl("radnMvPropNo").ClientID %>');
        pnum.focus();
    }
</script>

The problem is that at run time, the findcontrol server side block is turning up ''
<script type="text/javascript">
 function OnClientShow(sender, args) {
 var pnum = $get('');
 pnum.focus();}
</script>

Becase this is in a user control, I suspect I need to do something different to find the control:
"WctlShippingCart_rwDialog_C_radnMvCustNo_wrapper" is what is has become.


The content layout is as follows:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="True"
    Modal="True" Behavior="Default" InitialBehavior="None">
    <Windows>
        <telerik:RadWindow runat="Server" ID="rwDialog" Modal="true" Title="Move Selected Properties"
            OnClientShow="OnClientShow" AutoSize="True" Behavior="Close, Move" Behaviors="Close, Move"
            VisibleStatusbar="False">
            <ContentTemplate>
                <table width="220px">
                    <tr>
                        <td style="width: 12%">
                        </td>
                        <td style="width: 32%">
                            Customer #
                        </td>
                        <td style="width: 1%">
                        </td>
                        <td style="width: 1%">
                        </td>
                        <td style="width: 7%">
                        </td>
                        <td style="width: 32%">
                            Property #
                        </td>
                        <td style="width: 12%">
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <telerik:RadNumericTextBox runat="Server" ID="radnMvCustNo" Width="50px" Culture="English (United States)"
                                Skin="Vista" MaxLength="4" MaxValue="9999" MinValue="1000">
                                <NumberFormat DecimalDigits="0" GroupSeparator="" />
                            </telerik:RadNumericTextBox>
                        </td>
                        <td>
                        </td>
                        <td style="text-align: center">
                            -
                        </td>
                        <td>
                        </td>
                        <td>
                            <telerik:RadNumericTextBox runat="Server" ID="radnMvPropNo" Width="50px" Skin="Vista"
                                Culture="English (United States)" MaxValue="9999" MinValue="1000" MaxLength="4">
                                <NumberFormat DecimalDigits="0" GroupSeparator="" />
                            </telerik:RadNumericTextBox>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td colspan="5" style="text-align: center">
                            <br />
                            <asp:Button runat="Server" ID="btnMoveOK" Text="Move" />
                              
                            <asp:Button runat="Server" ID="btnMoveCancel" Text="Cancel" />
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
Svetlina Anati
Telerik team
 answered on 01 Feb 2011
0 answers
104 views
Hello,

      I have used RadTree in my web page.due to record will come more, i have to put it into RadPane and set the overflow property for RadPane.

     Its working well for other browser, but i got design problem with IE6.

     Node text get overflow and scrollable well, but node image dosen't get scroll.

     Please help me for same.
Kaushal
Top achievements
Rank 1
 asked on 01 Feb 2011
4 answers
138 views
Hello

I would like to know how to customize the Hyperlink Manager. Here is a rough outline of what the UI flow should be:

1. Highlight text in RadEditor to turn into Hyperlink
2. click on Hyperlink Manager button
3. Hyperlink Manager dialogue opens
4. click on a button by URL textbox (similar to/or using Document Manager button)
5. bring up dialogue/file browser to current site map/pages
6. select page (by Name/possibly in treeview) that will provide a relative URL (e.g. Page.aspx?id=1253)
7. populate Hyperlink Manager URL textbox with relative URL

Thanks
Rumen
Telerik team
 answered on 01 Feb 2011
4 answers
117 views
When tooltip show my window scroll to top

This happen in DEMO sometimes with this options:
- Relative To: BROWSERWINDOW
- Position: CENTER

Why?
Svetlina Anati
Telerik team
 answered on 01 Feb 2011
1 answer
90 views
is it possible to have the drag and drop functionality within a gird in the cardview layout?

Thanks,
Veli
Telerik team
 answered on 01 Feb 2011
1 answer
60 views
Hi,

We are on the search for which controls we should buy for our ASP.NET development and we see that your controls
can make us very happy.

We would like to ask a couple of questions. We reviewed some demos but we don't stay there only cause they're demos :)

Does your Grid supports custom popup edit form? What I mean is something like the FormTemplate we've seen but popup like and more complex. Say have a tabcontrol and inside tabpages numerous controls binded to the record? Any functional example of something like this would be great. After asking we will try to create this on demo purpose evaluating your controls.

Is your AjaxManager which looks so nice works with every control?

Skinning supports all Web Site project pages? Can we embed your themes into our folder containing our CSS, images and other theme files of our own?

It's really nice to see your good work. And patient to cooperate with you.

Thank you.
Veli
Telerik team
 answered on 01 Feb 2011
1 answer
149 views
Hi:

I've read this example (http://www.telerik.com/help/aspnet-ajax/radgrid-filter-template.html) with great interest.  I'm not using framework 3.5 yet so I'm looking at the 2nd implementation option mentioned in this article.  In particular, the FilterCombo_SelectedIndexChanged even: 

Protected Sub FilterCombo_SelectedIndexChanged(o As Object, e As RadComboBoxSelectedIndexChangedEventArgs)
 Dim filterExpression As String
 filterExpression = "([CategoryName] = '" + e.Value + "')"
 RadGrid1.MasterTableView.FilterExpression = filterExpression
 RadGrid1.MasterTableView.Rebind()
End Sub

My question is this:  What if I have 5 columns, each wtih its own filter (some textbox, some combo, some checkbox), and they are all already set to some filter values respectively.  Looking at the above codes, it would seem that when we select a filter value from FilterCombo, the grid will rebind using ONLY the filterExpression that is associated with the FilterCombo while ignoring the filter values of all the other columns. Is that true?  If so, then it is undesirable. 

What can I do, so that within the FilterCombo_SelectedIndexChanged event, I can evaluate the existing filter values of all other filtering columns, and then combine them all into a comprehensive MasterTableView.FilterExpression ?

Thanks!
Tsvetina
Telerik team
 answered on 01 Feb 2011
1 answer
171 views
i have an existing app. (vs2010 pro., iis7(running local), apppool integrated - .net 4.0..tried 3.5 still doesn't fix it).  Whe i tried add a sample page for the RAD treeview control and run my app (local) i get this error: '~/Telerik.Web.UI.WebResource.axd' is missing in web.config

i searched the forum about adding the ref. to httphandles.  right click on the script mgr. add ref.  now when i try to run the app in debug i now get this: Unable to start debug on web server.    No matter what lines i add or remove from the handler as soon as i add Telerik_Web_UI_WebResource_axd it crashes. 

this is my system.webserver

<system.webServer>
<
handlers>
<
remove name="WebServiceHandlerFactory-Integrated" />
<
remove name="ScriptHandlerFactory" />
<
remove name="ScriptHandlerFactoryAppServices" />
<
remove name="ScriptResource" />
<
add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<
add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<
add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<
add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
</
handlers>
<
validation validateIntegratedModeConfiguration="false" />
<
defaultDocument>
<
files>
<
clear />
<
add value="default.aspx" />
<
add value="Default.htm" />
<
add value="Default.asp" />
<
add value="index.htm" />
<
add value="index.html" />
<
add value="iisstart.htm" />
</
files>
</
defaultDocument>
</
system.webServer>

 

Nikolay Tsenkov
Telerik team
 answered on 01 Feb 2011
1 answer
93 views
When I use image the url is:
http://localhost/MyApplication/Images/Image.jpg

and after uploading image from RadEditor the url returned from RadEditor becomes
/MyApplication/Images/Image.jpg

I've used StripAbsoluteImagesPaths="true" in RadEditor.
My Telerik verion is 2010.1.309.35

I want the image url should be relative like this:
Images/Image.jpg


Regards,
Daud.
Rumen
Telerik team
 answered on 01 Feb 2011
2 answers
141 views
I have a relatively simple page that contains a tagstrip, and depending on what tab is clicked I want to bind a listview for that appropriate pictures, including paging on the listview, this seems to work fine except for paging on the listview.

When I click to go to the next page, the need datasource is executed twice the first time my viewstate variable is nothing, even though it's been set when I click the tab, the second time it is something and the listview is bound, but the paging doesn't change.

I was getting a javascript serialization error earlier but it's went away for now.

Any ideas?

Aspx
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadTabStrip ID="RadTabStripSpecies" runat="server" MultiPageID="RadMultiPage1">
    </telerik:RadTabStrip>
    <div class="DesignWidth">
        <telerik:RadListView runat="server" ID="RadListViewPictures" AllowPaging="True" DataKeyNames="p_PictureID"
            EnableViewState="False">
            <ItemTemplate>
                <div class="rlvI" style="padding: 0px; margin: 5px; border: 10px ridge #C0C0C0; overflow: hidden;">
                    <img alt='<%# Eval("p_ImageFileName") %>' src='<%# Eval("p_ImageFileName","SquareThumbnail.ashx?p={0}") %>'
                        border="0" />
                </div>
            </ItemTemplate>
            <EmptyDataTemplate>
                <div class="RadListView RadListView_<%# Container.Skin %>">
                    <div class="rlvEmpty">
                        There are no items to be displayed.</div>
                </div>
            </EmptyDataTemplate>
            <LayoutTemplate>
                <div class="RadListView RadListViewFloated RadListView_<%# Container.Skin %>">
                    <div class="rlvFloated rlvAutoScroll">
                        <div id="itemPlaceholder" runat="server">
                        </div>
                    </div>
                    <telerik:RadDataPager ID="RadDataPager1" runat="server" PageSize="18" EnableViewState="False">
                        <Fields>
                            <telerik:RadDataPagerTemplatePageField>
                                <PagerTemplate>
                                </PagerTemplate>
                            </telerik:RadDataPagerTemplatePageField>
                            <telerik:RadDataPagerButtonField FieldType="FirstPrev" FirstButtonText="first" NextButtonText="next"
                                PrevButtonText="previous" LastButtonText="last" />
                            <telerik:RadDataPagerSliderField />
                            <telerik:RadDataPagerButtonField FieldType="NextLast" PrevButtonText="previous" LastButtonText="last"
                                NextButtonText="next" FirstButtonText="first" />
                            <telerik:RadDataPagerTemplatePageField>
                                <PagerTemplate>
                                </PagerTemplate>
                            </telerik:RadDataPagerTemplatePageField>
                        </Fields>
                    </telerik:RadDataPager>
                </div>
            </LayoutTemplate>
        </telerik:RadListView>
    </div>
</asp:Content>

Codebehind
 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Me.BindRadTabStripSpecies()
        End If
    End Sub
  
    Private Sub BindRadTabStripSpecies()
        Dim dt As New DataTable
  
        Try
            dt = Me.objDataAccess_Species.GetSpecies_Pictures
        Catch ex As Exception
            Me.SystemMessage("Error", "Data Retrieve Failed!", ex.Message)
            Exit Sub
        End Try
  
        Me.RadTabStripSpecies.CausesValidation = False
        Me.RadTabStripSpecies.DataTextField = "Name"
        Me.RadTabStripSpecies.DataNavigateUrlField = ""
        Me.RadTabStripSpecies.DataFieldID = "s_SpeciesID"
        Me.RadTabStripSpecies.DataValueField = "s_SpeciesID"
        Me.RadTabStripSpecies.DataFieldParentID = "sg_ParentSpeciesGroupID"
        Me.RadTabStripSpecies.DataSource = dt
        Me.RadTabStripSpecies.DataBind()
    End Sub
  
    Private Sub RadTabStripSpecies_TabClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTabStripEventArgs) Handles RadTabStripSpecies.TabClick
        e.Tab.Selected = True
        ViewState("Selects_SpeciesID") = CType(Me.RadTabStripSpecies.SelectedTab.Value, Integer)
        Me.RadListViewPictures.Rebind()
    End Sub
  
    Private Sub RadListViewPictures_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadListViewNeedDataSourceEventArgs) Handles RadListViewPictures.NeedDataSource
        If IsNothing(ViewState("Selects_SpeciesID")) Then
            Exit Sub
        End If
  
        Dim s_SpeciesID As Integer = CType(ViewState("Selects_SpeciesID"), Integer)
  
        Dim dt As New DataTable
  
        Try
            dt = Me.objDataAccess_Picture.GetPicture_p_SpeciesID(s_SpeciesID)
        Catch ex As Exception
            Me.SystemMessage("Error", "Data Retrieve Failed!", ex.Message)
            Exit Sub
        End Try
  
        Dim Pictures As String = System.Configuration.ConfigurationManager.AppSettings("Pictures")
        Dim PicturesThumbs As String = System.Configuration.ConfigurationManager.AppSettings("PicturesThumbs")
  
        'Add a couple computed columns concatenating our Picture key value
        'dt.Columns.Add("ImageThumbURL", GetType(String), String.Format("'{0}' + {1}", PicturesThumbs, "p_ImageFileName"))
        'dt.Columns.Add("ImageURL", GetType(String), String.Format("'{0}' + {1}", Pictures, "p_ImageFileName"))
  
        Me.RadListViewPictures.DataSource = dt
    End Sub
Tsvetoslav
Telerik team
 answered on 01 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?