Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
174 views
Attached is an image that helps add a visual component of what is happening to a form that we have loading in a RadWindow.

The pop-up window does seem to load the style-sheets but doesn't apply all the styles.  ie.  RadButtons on primary form pick up the colors but in the RadWindow they do not.  We use a RadDropDownList on both pages and the primary screen picks up the style but the pop-up window does not. 

Any suggestions of why? 

If you were to look at the source of parent window and look at the style for the button it gathers the information from "Telerik.web.ui.webresource.axd" but in the pop-up it reads "Webresource.axd". 
Kurt Kluth
Top achievements
Rank 1
 answered on 22 Oct 2014
0 answers
110 views
Hi everyone,

I wanted to ask about binding data in CodeBehind by SQL - Is that possible? I tried many options and any of them don't work. If could somebody link a demo, which works on newest Visual Studio and Microsoft SQL Server Managment Studio or write some code - I will be glad.

Binding data from ASP.NET doesn't work. I'm using Iron Speed Designer. It generates some extra code, I've got error with InfiniteFrame (what's that? dunno).

I've read some articles about it and still nothing.

Thanks everyone

Kurt
Top achievements
Rank 1
 asked on 22 Oct 2014
3 answers
136 views
Is there any documentation/demos on programmatically creating radToolBarDorpDowns? I am creating a vb.net web application that has a radgrid and I will like to include a radtoolbar with the dropdown items generated from database values.  I am working in Visual Studio 2013.

Thanks
James
Top achievements
Rank 1
 answered on 22 Oct 2014
1 answer
93 views
Hi,

I am trying to show/hide the filter row on the grids initial load.  I have the following script set and based on the alert messages the code is running correctly but the filter row isn't being displayed when it should be.



Can you tell me what I am missing.

Thanks for you assistance.

Tracy
function GridInitialLoad(sender, eventArgs) {
    
    var masterTable = sender.get_masterTableView();
    var rbtFilter = $telerik.findControl(sender.get_element(), "rbtFilters");
    var i = 0;
    var result;
    var toggleList;
     
    if (rbtFilter) {
        toggleList = rbtFilter.get_selectedToggleStateIndex();
        switch (toggleList) {
            case 0:
                rbtFilter.set_toolTip('Show Filter Row');
                masterTable.hideFilterItem();
                alert('hide');
                break;
            case 1:
                rbtFilter.set_toolTip('Hide Filter Row');
                masterTable.showFilterItem();
                alert('show');
                break;
        }
         
    }
 
    var rbtGroup = $telerik.findControl(sender.get_element(), "rbtGrouping");
    if (rbtGroup) {
        toggleList = rbtGroup.get_selectedToggleStateIndex();
        switch (toggleList) {
            case 0:
                rbtGroup.set_toolTip('Show Group Panel');
                result = $telerik.$(".rgGroupPanel");
                for (i = 0; i < result.length; i++) {
                    result[i].className = "hideGroupPanel";
                }
                break;
            case 1:
                rbtGroup.set_toolTip('Hide Group Panel');
                result = $telerik.$(".hideGroupPanel");
                for (i = 0; i < result.length; i++) {
                    result[i].className = "rgGroupPanel";
                }
                break;
        }
    }
 
            
 
   }

<telerik:RadGrid ID="rgvMainGrid"       runat="server"                  DataSourceID="SQLDS_EmailAddresses"  
                    EnableEmbeddedSkins="true"         Skin="Office2010Silver"         EnableAjaxSkinRendering="true"        Height="550px"  Width="1230px"
                    EnableViewState="true"             AutoGenerateColumns="false"     AllowMultiRowSelection="false"     
                    AllowFilteringByColumn="true"      EnableHeaderContextMenu="true"  EnableHeaderContextFilterMenu="true"  ShowGroupPanel="true"  
                      
                    AllowAutomaticDeletes="false"      AllowAutomaticInserts="false"   AllowAutomaticUpdates="false"                                 
                    AllowSorting="true"                EnableLinqExpressions="false"   AllowPaging="true"  PageSize="100"    >                                 
                   <ItemStyle              Wrap="true"  />
                   <AlternatingItemStyle   Wrap="true" />
                   <ActiveItemStyle        BackColor="CornflowerBlue"/>
                   <EditItemStyle           Font-Size="10px" />
                    
                   <HeaderStyle            HorizontalAlign="Center"/>
                   <PagerStyle             AlwaysVisible="true"        Mode="NextPrevNumericAndAdvanced"/>
                   <EditItemStyle      BackColor="CornflowerBlue"/>     
                   <ClientSettings     AllowColumnsReorder="true"      ReorderColumnsOnClient="true"       ColumnsReorderMethod="Reorder"   AllowDragToGroup="true"  EnablePostBackOnRowClick="false"    EnableRowHoverStyle="false"  
                       <ClientEvents   OnGridCreated="GridInitialLoad" OnRowSelected="SetSelectedItem" />
                       <Resizing       AllowColumnResize="true"        EnableRealTimeResize="true"         ResizeGridOnColumnResize="true"  AllowRowResize="false" />
                       <Selecting      AllowRowSelect="true"/>
                       <Scrolling      AllowScroll="true"              UseStaticHeaders="true" />                       
                   </ClientSettings>
                   <GroupHeaderItemStyle Font-Size="11px"              Font-Names="calibri"                Font-Bold="true"  Height="12px"/>
                   <MasterTableView    Name="Users"                    DataSourceID="SQLDS_EmailAddresses"   DataKeyNames="EmailAddressID, EmailName"  ClientDataKeyNames="EmailAddressId, EmailName"
                                       Width="1213px"                  EnableViewState="true"              EditMode="InPlace"            CommandItemDisplay="Top"   TableLayout="Fixed"
                                       EnableGroupsExpandAll="true"    GroupLoadMode="Client"              EnableNoRecordsTemplate="true"  ShowHeadersWhenNoRecords="true" >                                                                                                             
                   <NoRecordsTemplate>There are no records that match the criteria you selected!</NoRecordsTemplate>
                    



Angel Petrov
Telerik team
 answered on 22 Oct 2014
1 answer
135 views
Hi,

We are using version 2014.2.724.40 of you ASP.NET for AJAX controls.

I'm experimenting with creating RadDocks dynamically via your client-side api.  I have a couple of questions.

Q1) I've read in many forum posts that it cannot reliably / effectively / safely be done.  Is that still true?

Currently, I'm cloning an existing RadDock using javascript, then I want to change a few of the properties that are saved with the Dock's state.  The first property I want to set or change, is the Dock's UniqueName property.  When I look at the RadDock in debug mode, I see that it has a set_uniqueName() method.  But you don't document that method in your help file.   When I use it to set the uniqueName property, it works.  I also use the undocumented set_tag() method...

Q2)  How dangerous is it to use the Dock's set_uniqueName and set_tag methods, since they aren't documented?  I obviously don't want to risk using a method that might be changed or removed in the future.

I use the Dock's Tag property to indicate what user control I want to load in the RadDock.  After I set these properties, I do an ajaxRequest postback to save the state of all the RadDocks.  All of this is working.

My last step is to figure out how to reload the content of the newly added RadDock, without refreshing any of the other RadDocks.

Presently, the new cloned RadDock contains the same user control as the one I cloned it from.  But I know I've saved the new state of it because if I reload the page (which reloads all the RadDocks), then the new cloned RadDock contains the correct user control.

Q3)  Is there a client-side method I can use to reload the content (refresh) a specific RadDock, without refreshing the others?

Thanks,
Michael
Slav
Telerik team
 answered on 22 Oct 2014
3 answers
148 views
Hello,

I am working on a project with a RadMenu and a RadGrid.

How to set the RadAjaxManager to recognize a RadMenuItem in code behind?

Thanks,
Daniel. 
Viktor Tachev
Telerik team
 answered on 22 Oct 2014
1 answer
95 views
Hello.

We have an old application created in silverlight that we now need to replicate in asp.net webforms.  Here's an image of the old page silverlight treeview we need to replicate (note the data aligned to the right as well):
http://netmarketingllc.com/client/myfiles/Treeview_Siverlight.jpg

I tried replicating this in the telerik treeview but haven't had much luck with the formatting.  Here's my telerik attempt:
http://netmarketingllc.com/client/myfiles/treeview_telerik.jpg

To set it up this way, I had tried an html table, but it seems to be jumping to the next line.  Here's a sample of some html I was inserting (via c# code):
"<table style='width:100%;'><tr><td style='width:50%;text-align:left;'><b>" + id + "</b> " + headerName + "</td>"
+ "<td style='width:50%;text-align:right;color:blue;'>Total Cost: $" + (totalCost ?? 0).ToString("0.00") + "</td></tr></table>";

Any idea how I can get my treeview to look similar to the original silverlight version?  In particular, how to keep telerik from doing a line break?
Thanks
Hristo Valyavicharski
Telerik team
 answered on 22 Oct 2014
3 answers
445 views
I have a search button and a RadGrid which will have a template to include a link button. The link button is used to download file. While click the search button, it will bind the GridView.I put a telerik:RadAjaxLoadingPanel to include the RadGrid and add following code:
 <telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadButtonSearch">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGridHistory" LoadingPanelID="RadAjaxLoadingPanelHistory" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>

The problem is that the download link doesn't work while clicking. I think it's related with AJAX behavior and Response object. Whether there is a way to disable the AJAX post back for the link button in template column of RadGrid?
Viktor Tachev
Telerik team
 answered on 22 Oct 2014
1 answer
105 views
I would like to build a database data driven list of check boxes that are editable when the page is first loaded, i.e., automatically goes into edit mode for each record in the list.  The record would consist of the data text and a check box, indicating whether the data item was enabled/disabled.  I would like the user to be able to check/uncheck the box without having to go into edit mode.  And, then, be able to save any changes back to the database.

Any assistance would be appreciated.
Marin
Telerik team
 answered on 22 Oct 2014
1 answer
110 views

Hi

Through Telerik's controls i found difficult to use UploadControl to work with multiple target folders 

This is My Code I tried Like this

Client Side Code
==============
  <telerik:RadAsyncUpload id="Rad1" runat="server" />

 foreach (UploadedFile f in Rad1.UploadedFiles)
                {
                    f.SaveAs(DocSLoc + f.GetName() ;
                  }

When I try with the above code I am getting the following error
E:\MyApp\App_Data\RadUploadTemp\1413543533059HomeError.jpg 



Boyan Dimitrov
Telerik team
 answered on 22 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?