Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
76 views
I'd love this control (or another similar one) to be able to return JSON, and have it populate based on a template defined in the control markup...

Like the MS jQuery templating...except I still want all the events and bits that go along with this control.
Pero
Telerik team
 answered on 10 Dec 2010
3 answers
74 views
Hello,

I have a RadDatePicker with the attribute dir="rtl".
This attribute causes to the navigations text button to be inverted (see the attached jpg).
The tooltip is ok.

The code is:

<telerik:RadDatePicker ID="RadDatePicker1" runat="server" dir="rtl">
</telerik:RadDatePicker>

My goal is to set the popup button on the left side to the input date.

Thank you,
Oren
Iana Tsolova
Telerik team
 answered on 10 Dec 2010
1 answer
65 views
Hi. I am just starting to try to use the grid control. What I am trying to do encompasses several different things and any help would be appreciated. Once I've done it once I will then know how to do it all in the future. Thanks

The page that I have needs a single grid that is actually derived from 3 fairly simple tables:

Table 1
RsId - unique primary key auto generated in the database
RType - int (will always be 0 for this page)
Description - varchar

Table 2
Cid- unique primary key auto generated in the database
RsId - linked to Table1:RsId  (actually is a 1:1 relationship but database assumes 1 to many)
CType - int
CMax - int

Table 3
LRid - unique primary key auto generated in the database
RsId - linked to table1:RsId
LType - char()
LText - nchar()

There are reasons why table 1 and table 2 are not merged into a single table. Questions:
1. What is the easiest way to build a hierarchical grid with two levels of hierarchy: first effectively representing a join of table1 and table2 (since they effectively have a 1:1 relationship) and the detailsview having related Table 3 records
2. When I "Add new record" I want to create a table1 record so I can have an insert query in my sqldatasource. If I don't have RType in my grid how do I define the sql command such that RType is always set to int 0.
3. When I "Add new record" in the master view is there an event that I can use to create the table2 record that will match the new table1 record or create the new records in both tables.
4. In table2 CType has a set of predefined potential values. How do I define CType as a drop down where the grid control's definition contains the int value (that will be the value stored in the database) and the text to display in the drop down?

Thanks

Update:
Finding my way on [1] but several things are far from obvious. It's not clear what the best way is to create the hierarchical structure but I have managed to do it (maybe not the best way - who knows). However, I have had to create 2 sqldatasources (one for the masterview and one for the details). I couldn't see an automatic way to get the wizard to create the second datasource so I created it manually and then edited the code for the grid control to define the data source under

<

 

DetailTables>

 

 

<telerik:GridTableView runat="server" AllowAutomaticDeletes="True" DataSourceID="SqlDataSource2" Width="100%" AllowFilteringByColumn="False"

 

 

AutoGenerateColumns="True" CommandItemDisplay="Top">

 

However, I have had to specify autogeneratecolumns because its not obvious to me at the moment how I define the columns for the details view using the object property builder for the grid. This is a problem because I don't want all of the columns to be visible. How do you create and define the details view?

Found how to do [2]
I think I can do [3] but haven't implemented it yet
Looking for solution to [4]
Trying to work out how to define the Insert query for the details view (ie for Table3)
Iana Tsolova
Telerik team
 answered on 10 Dec 2010
4 answers
155 views
Hello again.

I have a nested grid scenario, and on updating a record in the child grid, I need to ReBind() the parent grid.

e.Canceled = true;
grdProfileIntakes.Rebind();

However, doing this collapses the grid.  I need it to refresh and then expand the appropriate nodes to where it was.  Going through the documentation, I think I have two possible solutions.  First is using Grid.SelectedIndexes.Add(indexOfSelectedParentTableRow, indexOfParentTable), second is using Grid.MasterTableView.Items[indexOfSelectedItem].Expanded = true.

Both methods need the index of the selected item, specifically the index of the parent  of the selected child item.  How can I get this value?

TIA

kitster
Kit
Top achievements
Rank 1
 answered on 10 Dec 2010
15 answers
278 views
I would like to have a message displayed on top of the RadDockZone when there are no RadDocks on it.  This will help the user better know that it is ready and waiting for RadDocks to be added to it.

I have worked through a possible solution with the AjaxLoadingPanel, showing it when RadDockZone.get_docks().length = 0, but I keep getting the "object is null" javascript error.

if ($find("<%=rdzLeft.ClientID%>").get_docks().length == 0)  
{  
    var objEmptyZoneLoadingPanel = $find("<%=lpEmptyZone.ClientID%>");  
    objEmptyZoneLoadingPanel.show("<%=rdzLeft.ClientID%>");  

I've also considered having <div>s displayed over top of each RadDockZone, only showing them when the associated RadDockZone is empty.  I was having a difficult time setting the style of these <div>s to appear where I wanted them.

<!-- Empty RadDockZone messages --> 
<div runat="server" id="divEmptyLeftZone" class="DashboardItemPanelLeft_Empty">No Dashboard Items (Left)</div> 
<div runat="server" id="divEmptyRightZone" class="DashboardItemPanelRight_Empty">No Dashboard Items (Right)</div> 
 
<!-- RadDockLayout for dashboard items to go --> 
<telerik:RadDockLayout runat="server" ID="rdlDockLayout">  
    <telerik:RadDockZone runat="server" ID="rdzLeft" MinHeight="300px" CssClass="DashboardItemPanelLeft" HighlightedCssClass="HighlightedZone" /> 
    <telerik:RadDockZone runat="server" ID="rdzRight" MinHeight="300px" CssClass="DashboardItemPanelRight" HighlightedCssClass="HighlightedZone" /> 
</telerik:RadDockLayout> 

Are there any built-in ways to address my goal?  Perhaps an "EmptyZoneMessage" for the RadDockZone?
Pero
Telerik team
 answered on 10 Dec 2010
3 answers
92 views
We are a shop that currently uses VS2008. We would like to upgrade our apps to VS2010 initially using the 3.5 framework. Sometime later, we would like to upgrade our apps to the 4.0 framework.

We had an architect in our company try and convert VS2008 to VS2010 project and worked fine except for the Telerk tools. He could not get the present version of the DLL to work. Our current version is: 2009.3.1314.35

What is the proper upgrade path in order to accomplish the above scenario?
Sebastian
Telerik team
 answered on 10 Dec 2010
1 answer
106 views
Hi,

I am having a result set with the structure of
Level1                         Level2           Level3               CalcField
---------------------------------------------------------------------------
Akron                Cleveland OH         2007-QTR 1     206172.0000
Akron                Cleveland OH         2007-QTR 2     225291.0000
Akron                Cleveland OH         2007-QTR 3     210866.0000
Allen                  Dallas-Fort Worth  TX 2009-QTR 1 27241.0000
Allen                  Dallas-Fort Worth  TX 2009-QTR 2 62850.0000
Allen                  Dallas-Fort Worth  TX 2009-QTR 3 100539.0000

And the output of the treelist should be,
Akron
        Cleveland OH               642329.0000
               2007-QTR 1         206172.0000
               2007-QTR 2         225291.0000
               2007-QTR 3         210866.0000
Allen  
       Dallas-Fort Worth         90091.0000
               TX 2009-QTR 1   27241.0000
               TX 2009-QTR 2   62850.0000

I have gone through the samples with ParentKeyname and DataKeyNames Concept.But i dont have the parentid concept in my query.
Can anyone help me..its urgent..
Any best way to achieve this?

Tsvetoslav
Telerik team
 answered on 10 Dec 2010
10 answers
212 views
I was wondering if Telerik has plans to create a mobile controls bundle that is based on the ASP.Net AJAX controls and skins. I noticed component one has a mobile and iphone products out (very limited selection i must say) and was hopping Telerik will do the same sooner or later. As far as i know there aren't many controls for mobile websites out on the market, and I personally would like to keep my mobile websites consistent with their desktop versions. I know in theory we can use the .net controls but they do seem to add a lot to the size of a page.
Sebastian
Telerik team
 answered on 10 Dec 2010
6 answers
95 views
Hi,

   I have used Radwindow in my project which returns location value that is selected in that window.. I have used javascript for returning location value.. The Problem is it works fine in IE8 browser, but the value is not getting returned in Safari..
<telerik:RadWindowManager ID="RadWindowManager2" OnClientShow="" runat="server" OnClientClose=""
       ReloadOnShow="false">
       <Windows>
           <telerik:RadWindow ID="radWindowLocationPopup" OpenerElementID="" OffsetElementID=""
               ClientCallBackFunction="CallBackFunctionService" Behavior="Close" VisibleTitlebar="false"
               Modal="true" Width="578px" runat="server" Height="450px" NavigateUrl=" " VisibleStatusbar="false">
           </telerik:RadWindow>
       </Windows>
   </telerik:RadWindowManager>

and the code in javascript are,
function OpenRadWindowLocaltionPopup(externalScheduling) {
    var Url = "./Locationpopup.aspx?EnableScheduling=" + externalScheduling;
    var oWnd = radopen(Url, "radWindowLocationPopup");
    oWnd.SetUrl(oWnd.GetUrl());
    return false;
}
function CallBackFunctionService(radWindow, returnvalue) {
    try {
        if (returnvalue != "") {
            var textBoxLocation = document.getElementById("ctl00_ContentPlaceHolder1_textBoxExternalLocation");
            var hiddenLocationID = document.getElementById("ctl00_ContentPlaceHolder1_hiddenFieldLocationId");
            var hiddenLocationName = document.getElementById("ctl00_ContentPlaceHolder1_hiddenLocationName");
            var rtnValue = returnvalue.split("~");
            hiddenLocationID.innerText = rtnValue[1];
            textBoxLocation.value = rtnValue[0];
            hiddenLocationName.value = rtnValue[0];
        }
        else {
            document.getElementById("ctl00_ContentPlaceHolder1_textBoxExternalLocation").value = "";
        }
        CheckExternalSchedulingEnable();
    }
    catch (err) {
    }
    return false;
}

Do i need to do any change in javascript to make it work efficiently in safari.. Please guide me..

Thanks,
Hema.
Georgi Tunev
Telerik team
 answered on 10 Dec 2010
4 answers
389 views
Hi,
after postback I set focus to RadComboBox. But I would also like the cursor to be positioned at the end of the text field in radcombobox.
How can I position the cusrsor at the end?
Thanks:)
Yana
Telerik team
 answered on 10 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?