Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
223 views
Hello,

I have data which should pass to print pdf. I want to display multiple Rad window but i will pass the values through for loop in another page and open that rad Window in another page.

Could we open the rad window with different  data.

I used the following code:
Session["RTF"] = strPatientSummary;
            if (Session["RTF1"] != "" && intCount==0)
                    {
                        RadWindow2.NavigateUrl = "~/Editor/PrintNote.aspx?Count" + intCount;
                        RadWindow2.Height = 600;
                        RadWindow2.Width = 950;
                        RadWindow2.Top = 40;
                        RadWindow2.Left = 100;
                        RadWindow2.Behavior = WindowBehaviors.Maximize | WindowBehaviors.Minimize | WindowBehaviors.Close | WindowBehaviors.Move | WindowBehaviors.Pin;
                        RadWindow2.Modal = true;
                        RadWindow2.VisibleOnPageLoad = true; // Set this property to True for showing window from code    
                        RadWindow2.VisibleStatusbar = false;
                        RadWindow2.Title = "Print Note";
                      }
                    else if (Session["RTF2"] != "" && intCount == 1)
                    {
                        RadWindow3.NavigateUrl = "~/Editor/PrintNote.aspx";
                        RadWindow3.Height = 600;
                        RadWindow3.Width = 950;
                        RadWindow3.Top = 40;
                        RadWindow3.Left = 100;
                        RadWindow3.Behavior = WindowBehaviors.Maximize | WindowBehaviors.Minimize | WindowBehaviors.Close | WindowBehaviors.Move | WindowBehaviors.Pin;
                        RadWindow3.Modal = true;
                        RadWindow3.VisibleOnPageLoad = true; // Set this property to True for showing window from code    
                        RadWindow3.VisibleStatusbar = false;
                        RadWindow3.Title = "Print Note";
                     }
and so no..

and
<telerik:RadWindowManager ID="RadWindowManager" runat="server" EnableViewState="false">
                                <Windows>
                                       <telerik:RadWindow ID="RadWindow2" OpenerElementID="btnPrintNote_Click" runat="server"
                                        Behaviors="None">
                                    </telerik:RadWindow>
                                    <telerik:RadWindow ID="RadWindow3" OpenerElementID="btnPrintNote_Click" runat="server"
                                        Behaviors="None">
                                    </telerik:RadWindow>
                                                                                                 
                                </Windows>
                            </telerik:RadWindowManager>

but this is limited to the rad window. It will display how many rad window in the RadWindowManager.
Marin Bratanov
Telerik team
 answered on 04 Apr 2012
1 answer
85 views
I'm using the advanced form, and when a user hits the "cancel" button it causes a post back that has some delay to it. 

Is there a way to avoid the delay?  I feel like "canceling" should be almost instantaneous.

Thanks!
Peter
Telerik team
 answered on 04 Apr 2012
2 answers
132 views
Hi,

I have radgrid with detailtable.
I want to exapnd the child item after inserting the parent.
Any one know the idea..?


Regards,
Raja.M
Raja M
Top achievements
Rank 1
 answered on 04 Apr 2012
11 answers
1.4K+ views
I have several RadCombo boxes (latest install of Prometheus) on a screen that I wish to use for editing and adding new orders. I am using LoadOnDemand (via RadComboBox1_ItemsRequested) to populate the combo boxes with data from a SQL server database.  However when editing an existing order how do I display the existing values in the database? The LoadOnDemand doesn't kick off until you actually access the combo box... I have seen several of the online demos that Telerik staff say to reference but none of them work...They say that LoadOnDemand dos not have any notion of binding or selecteditem/selectedvalue. They say instead to use the .Value and .Text property...however there is no such property as .value

To further complicate things several combo boxes are dependent on one another...i.e. select something from one combo box and the items in the second are "filtered"

Any help would be appreciated.
Kanna
Top achievements
Rank 2
 answered on 04 Apr 2012
2 answers
103 views

I'm currently evaluating the TreeView for the following Scenario:

  • data source is a webservice / WCF service
  • 2000+ items
  • service method allows partial loading

So I want to load only the root and the first sublevel of items and then lazy load items as nodes are expanded. My Questions:

  1. Should I build the nodes myself or use the DataSource property?
  2. Where do I find tutorials how to build a custom lazy load?
Plamen
Telerik team
 answered on 04 Apr 2012
4 answers
228 views
I have this code, I get data from DB, and i need to create another column in grid with de sum of column1 and 2.

view Razor:

@model List<Project.Models.VW_VisitasPorNumeroVisitas>
 
@{
    ViewBag.Title = "Index";
}
 
 
 
<h2>Visitas por Numero de Visitas</h2>
 
@(Html.Telerik().Grid(Model)
        .Name("RadGrid1")
        .Sortable()
        .Filterable()
        .Pageable()
        .Footer(true)
        .NoRecordsTemplate("No hay registros")
        .Columns(columns =>
        {
            columns.Bound(o => o.NumVisitas)
                .Title("Numero de Visitas")
                .Aggregate(agg => agg.Sum())
                .FooterTemplate(@<text> Visitas Totales: <span >@item.Sum</span> </text>);
            columns.Bound(o => o.TotalVisitas)
                .Title("Cantidad de Visitas");
                 
            columns.Bound(o => o.NumVisitas)
                .Title("% Visitas");
        })     
)

CS:

public ActionResult Index()
{
    var visitasPorNum = from a in db.VW_VisitasPorNumeroVisitas
                        select a;
 
    return View(visitasPorNum.ToList());
}


Eloy
Top achievements
Rank 1
 answered on 04 Apr 2012
5 answers
181 views
Hi

I have three rad listboxes with drag and drop feature. In each list box have Items with image associated to click event call a pupup window page. I have also added some attributes to each item. Eevrything works fine, only problem i am facing is when i drag and drop any item from one list box to another the dragged item is loosing its attributes and associated click event with it.

I tried comibination of several properties on listboxes control but no luck.

<

 

telerik:RadListBox ID="PageHierarchies" runat="server" Width="200px" Height="200px"

 

 

        TransferToID="ColumnHierarchies" AllowReorder="true" AutoPostBackOnReorder="false"

 

 

        AllowTransfer="true" AutoPostBackOnTransfer="false" EnableDragAndDrop="true"

 

 

        AutoPostBack="false" OnClientDragging="DraggingItem"  OnClientTransferred="ItemTransferrd" AllowAutomaticUpdates="true" EnableViewState="true" PersistClientChanges=true >

 

 

    <ButtonSettings ShowReorder="false" ShowTransfer="false" ShowTransferAll="false" />

 

 

</telerik:RadListBox>

Javascipt code to add attributes (higlighted in italic bold)

 

<

 

script type="text/javascript">

 

 

 

 

 

//<![CDATA[

 

 

 

 

 

 

var columnHirachcy;

 

 

var rowHirachcy;

 

 

var pageHirachcy;

 

 

var dimname;

 

 

var dimID;

 

 

var infosetname;

 

 

var strParms;

 

 

 

function

 

pageLoad(sender)

 

{

 

 

 

var listboxItem;

 

 

var membersCount;

 

 

var items;

 

 

var objJson;

 

 

columnHirachcy = $find(

"<%= ColumnHierarchies.ClientID %>");

 

rowHirachcy = $find(

"<%= RowHierarchies.ClientID %>");

 

pageHirachcy = $find(

"<%= PageHierarchies.ClientID %>");

 

 

objJson=window.top.GetIFrame().document[

'report1_json'];

 

 

//Column Hiraarchy

 

 

 

 

infosetname=objJson[0].name;

 

 

var infosetObj = window.top.getInfoSetByName(infosetname);

 

 

 

for(axisIndex=0;axisIndex<=2;axisIndex++)

 

{

 

switch(axisIndex)

 

{

 

case 0:

 

items=columnHirachcy;

 

break;

 

 

case 1:

 

items=rowHirachcy;

 

break;

 

 

case 2:

 

items=pageHirachcy;

 

break;

 

}

 

var dimCollection = infosetObj['axis' + axisIndex];

 

 

for(i=0;i<dimCollection.length;i++)

 

{

dimID = dimCollection[i].uname;

dimName = dimCollection[i].name;

 

membersCount =window.top.getMembersCount(infosetname,dimName,axisIndex,i);

 

var listboxItem =new Telerik.Web.UI.RadListBoxItem();

 

listboxItem.set_text(dimName +

"[" + membersCount + "]");

 

listboxItem.set_value(dimID);

listboxItem.set_selected(

false);

 

listboxItem.set_imageUrl(

"../Images/Filter.gif");

 

items.trackChanges();

items.get_items().add(listboxItem);

items.getItem(i).get_imageElement().setAttribute(

"alt",dimName);

 

items.getItem(i).get_imageElement().setAttribute(

"infosetName",infosetname);

 

items.getItem(i).get_imageElement().setAttribute(

"dimName",dimName);

 

items.getItem(i).get_imageElement().setAttribute(

"dimID",dimID);

 

items.getItem(i).get_imageElement().setAttribute(

"PivotingMode","Full");

 

items.getItem(i).get_imageElement().setAttribute(

"Hirarchy",listboxItem);

 

 

 

 

 

 

 

 

items.getItem(i).get_imageElement().onclick=

function(){

 

 

window.top.openSelectorForPivoting(

this.getAttribute('infosetName'),this.getAttribute('dimName'),this.getAttribute('dimID'),this.getAttribute('PivotingMode'),this.getAttribute('Hirarchy'));

 

 

};

 

 

 

 

 

items.commitChanges();

}

}

 

 

return false;

 

 

}

Bozhidar
Telerik team
 answered on 04 Apr 2012
1 answer
83 views
Please take a look at pic2.png: When I first place two Radcontrols (a ComboBox and a RadButton) right next to each other, I see a light-blue square on the right, when I click on that square, then the two controls overlap each other (Look at pic1.png).
I recalled that I didn't see it before in any version of Telerik AJAX. Is it a new feature? If yes, how to turn this off? (It's too annoying)

I tried to install Telerik on 3 different PC, same thing happen.

Thanks

Lamk.
Slav
Telerik team
 answered on 04 Apr 2012
1 answer
140 views
Hello People, good night, when  I try to use RadToolTip with Shadow seted to true, the control show us the following as you see in image attached.

The border top is working wrong. Someone who could help me with this task?

Best Regards
Princy
Top achievements
Rank 2
 answered on 04 Apr 2012
3 answers
110 views
Hi

I have attached a image in this post. Can you please guide is there a way to achieve similarly?

Regards
Arima
Peshito
Telerik team
 answered on 04 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?