Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
171 views
            <telerik:RadTreeView ID="rtvQuickshop" 
                                 runat="server" 
                                 LoadingMessage="Loading ... " 
                                 CheckBoxes="true" 
                                 PersistLoadOnDemandNodes="false" 
                                 EnableViewState="false" 
                                 ShowLineImages="false" 
                                 EnableEmbeddedScripts="false" 
                                 OnNodeDataBound="rtvQuickshop_OnNodeDataBound" 
                                 OnClientNodeChecking="NodeChecking" 
                                 OnClientNodePopulating="NodePopulating" 
                                 Skin="Web20"
                <WebServiceSettings Path="~/QuickShop.asmx" Method="GetNodes" /> 
             
            </telerik:RadTreeView> 

I have the following RadTreeView and in the client NodeChecking event I have the following

function NodeChecking(sender, eventArgs) 
    var node = eventArgs.get_node(); 
    if(node.get_checked()) 
    { 
        node.set_text('<img src="/Images/Refreshing.gif" alt="Removing from basket, please wait..." class="qs_refresh" /> <span class="qs_normal">Removing from basket, please wait...</span>'); 
    } 
    else 
    { 
        node.set_text('<img src="/Images/Refreshing.gif" alt="Adding to basket, please wait..." class="qs_refresh" /> <span class="qs_normal">Adding to basket, please wait...</span>'); 
    } 

But node.set_text does not work??????????????????????????????????????
Ivan Danchev
Telerik team
 answered on 24 Aug 2015
3 answers
93 views

    I have an ASP form which includes a Menu in the master page. In the attached image you will see it as a mobile-mode control with the "burger", to the left of the page title "LulaVision".

 I have a problem with one page based on this master, which includes a databound Panel control.

 The menu expands, but contents appear behind the Panel control even after adjusting the z-order settings.

 I have pushed the Panel down by 100px so that you can see it expand, yet additional items render BELOW the Panel, which is contrary to the defined layering in z-order.

Looking for suggestions on how to fix.

 Using v2015.2.623.45

Ivan Danchev
Telerik team
 answered on 24 Aug 2015
4 answers
111 views
Is there a way to add a custom button to the ImageGalllery toolbar that calls a javascript function?
Cheri Verdend
Top achievements
Rank 1
 answered on 24 Aug 2015
7 answers
156 views
I have a RadGrid in a RadWindow.  On an iPad3 when it loads up the width of it jumps as if it's trying to make room for a scrollbar and then jumps back.  This happens several times a second and is quite annoying.  If you zoom or drag the page around at all the flickering stops, but it'd be better if it didn't do it at all.

It doesn't seem to happen to all grids, so before I go to the trouble of figuring out exactly what triggers it has anyone else seen the same issue?
Pavlina
Telerik team
 answered on 24 Aug 2015
1 answer
149 views
Dear Team,

 

I'm using RadDataPager inside a ListView. I need to reset the current page index to 1 in one specific scenario using javascript.

 

I'm using the below javascript code to reset the grid. but it is unable to find the DataPager Control. Please help on achieving the required functionality. 

var gridImages = $find("#<%=RadDataPagerLibraryVideos.ClientID %>");
gridImages.set_currentPageIndex(1);

 

ListView:

 
<telerik:RadListView CssClass="thumbnail" AllowPaging="true" ItemPlaceholderID="VideosHolder" runat="server" ID="LibraryVideoListView" DataKeyNames="AssetID" OnNeedDataSource="LibraryVideoListView_NeedDataSource" OnItemDataBound="LibraryVideoListView_ItemDataBound">
                          <LayoutTemplate>
                                     <fieldset id="LibraryVideoListView">
                                  <telerik:RadDataPager ID="RadDataPagerLibraryVideos" runat="server" PagedControlID="LibraryVideoListView"
                                      PageSize="15" OnPageIndexChanged="RadDataPagerLibraryVideos_PageIndexChanged">
                                      <Fields>
                                          <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                          <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                          <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                          <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
                                          <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                                              TextBoxWidth="15" />
                                          <telerik:RadDataPagerTemplatePageField>
                                              <PagerTemplate>
                                                  <div style="float: right">
                                                      <b>Items
                                                              <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                                          to
                                                              <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.StartRowIndex+Container.Owner.PageSize %>" />
                                                          of
                                                              <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                                          <br />
                                                      </b>
                                                  </div>
                                              </PagerTemplate>
                                          </telerik:RadDataPagerTemplatePageField>
                                      </Fields>
                                  </telerik:RadDataPager>
                              </fieldset>
                              <div class="horizontal-list center-block">
                                  <asp:Panel ID="VideosHolder" runat="server" />
                              </div>
                          </LayoutTemplate>
                          <ItemTemplate>
                              <div class="imgLibraryItem">
                                  <a href="#" class="videoSelected thumbnail has-hover" assetid='<%# Eval("AssetID") %>'>
                                      <asp:Image runat="server" ID="imgVideoThumbnail" CssClass="libraryImg" />
                                  </a>
                              </div>
                          </ItemTemplate>
                      </telerik:RadListView>

 

Thanks in Advance,

Phani

Eyup
Telerik team
 answered on 24 Aug 2015
3 answers
183 views

I am currently using the RadImageGallery to allow users to add pics for a failure report.  I am currently embedding the pictures within the project and creating an directory if needed.  However, I have found that these images get erased easily and I would like to just upload and pull the images directly from the database.  Basically store the images in the database.  Does RadImageGallery have the ability to upload images to the database in that format?  I

 

thanks

 

doug

Maria Ilieva
Telerik team
 answered on 24 Aug 2015
2 answers
112 views

Is there a client-side test to determine whether a page is contained within a RadWindow or not?

Sometimes, pages can be navigated to directly from the browser's address bar, showing content that is originally designed to be inside a RadWindow.

 If this were to happen, I would like to perform a test that determines if the page is contained within a RadWindow or not so that I can then decide how do show the page.

 Can anyone provide ideas/samples for this?

Stanimir
Telerik team
 answered on 24 Aug 2015
5 answers
95 views
Is there a good example of Telerik controls replacing the generic Dynamic Data page templates? I can't seem to find anything online, and the examples out there aren't specifically what I'm looking for. From what I can tell there doesn't seem to be an equivalent of the DynamicDataManager in the Telerik controls, and there's no good explanation or equivalent on how it all works together. Do you guys have any sort of walkthrough on how that can be done? All the examples I've found so far are old and don't seem to be supported any more.
Helen
Telerik team
 answered on 24 Aug 2015
5 answers
163 views

When my users select a file to upload, the File Select box closes then immediately re-opens again for each previously selected file.  For example, if I select one file, it works fine.  When a second file is selected, the file select box closes, but then opens again with the name of the first file selected.  If I select a third file, the File Select box opens twice more, once for each of the previously selected files.

In my implementation, I display the selected files myself and then trigger the upload after the files are selected.  The upload of the selected files works fine.  Any ideas??

My RadAsyncUpload control is defined this way:

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" style="display:none;" MultipleFileSelection="Disabled" Skin="Silk" TargetFolder="uploads" HideFileInput="true" ManualUpload="true" EnableInlineProgress="false" OnClientFileSelected="RadUpload_OnClientFileSelected" OnClientFilesUploaded="RadUpload_OnClientFilesUploaded" OnClientFileUploaded="RadUpload_OnClientSingleFileUploaded" OnClientFileUploading ="RadUpload_OnClientFileUploading" OnClientFileUploadFailed="RadUpload_OnUploadFailed" OnClientValidationFailed ="RadUpload_OnClientValidationFailed" UploadedFilesRendering="BelowFileInput" HttpHandlerUrl="~/Handler.ashx" DisablePlugins="true" OnClientFileUploadRemoving="RadUpload_FileRemoving">


I start the selection by clicking a button which calls this javascript function:

function RadUpload_StartSelection(sender, args) {

   $telerik.$(".ruFileInput").click();

}

function RadUpload_OnClientFileSelected(sender, args) {

//fired for each file that was selected. We add the file to our list

//with a "[X]" link to remove it (which calls RadUpload_removeFile)

$telerik.$(args.get_row()).addClass("ruUploading"); //adding this css class to the row prevents it from displaying under the control

//now add the filename and [X] anchor to our file list

var $List = $("#divFileList");

if ($List.html().length>0) $List.html($List.html()+" + ");

$List.html($List.html()+args.get_fileName()+" <a href='#' id='" + args.get_row()._mapIndex + "' onclick='RadUpload_removeFile(this);return false;'>[X]</a>");

}


 
 
 
Ivan Danchev
Telerik team
 answered on 24 Aug 2015
6 answers
189 views

Hello

We are wishing to replace a couple google maps with the Telerik map control with openstreet tiles.  In most cases this has been a straight forward effort.  

In one instance, we have a pin that we can drag and drop on the map to identify a location.  Is this possible with the Telerik control?  If so, can you provide some sample code using openstreet that includes also capturing the lat/lon of the dropped pin?

 

Thanks in advance

Ianko
Telerik team
 answered on 24 Aug 2015
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
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
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
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?