Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
156 views
Hi

We have a radwindow with a rad toolbar across the top and a rad treeview underneath.  In a seperate javascript file, I'm trying to find out which treeview node is currently selected when a button on the toolbar is clicked.  I have stored the Client ID of the treeview as an attribute of the menu and im using the Ajax $find method to locate the treeview object.  The treeview appears to be being found correctly but when i call the get_selected method im getting an object not supported error message.  Is there something obvious im misisng?

Below is a cut down version of the code I have in my Javascript file:

function ToolbarItemClicked(sender, eventArgs) {  
 
    var toolbar = eventArgs.get_item().get_toolBar();  
    var toolbarItem = eventArgs.get_item();  
 
    var ctrlID = toolbar.get_attributes().getAttribute("TreeViewID");  
 
    var treeview = $find(ctrlID);  
    var node = treeview.get_selected();  
 
}

For your information we using the Q2 2009 build.

Thanks in advance.

Paul
Paul Mc
Top achievements
Rank 1
 answered on 10 Jul 2009
2 answers
245 views
Hello,

I was able to set up the RadGrid subtable's datasource, but i want the RadGrid subtable grid to use the main datagrid selection as a parameter.  How would I do that?  Basically, if a selection is made, how do I use that selection or something like an EmployeeID as a parameter in the RadGrid/Sub Grid and Master Table/SubTable relationship without much programming?  Or is programming required and can you share with me how you did it?
Tsvetoslav
Telerik team
 answered on 10 Jul 2009
2 answers
195 views
Hi,

In RadTextBox is possible to auto tab? when you get your maxlength skip to the next field automatically? there examples? thanks.

Best.
Ernandes
Top achievements
Rank 1
 answered on 10 Jul 2009
1 answer
92 views
Hello,

I've set my grid disabled as following:
myGrid.MasterTableView.Enabled = False 
It seems everythins in the grid is diable then.
When I want to expand the group, it is also disable...

I try to enable the expanding as following, but failed:
myGrid.MasterTableView.Enabled = False 
myGrid.ClientSettings.AllowGroupExpandCollapse = True 
Is it possible to enable the expanding group?
Thanks advance.

best regards
Chenghan
Pavlina
Telerik team
 answered on 10 Jul 2009
1 answer
134 views
Hello,

I'm loading user control(s) into my tooltips using AJAX. This is working ok, but when the user first clicks on the targetcontrol, the tooltip appears as a 10px high box with a full screen width. This happens in the loading phase (where a spinny should be shown) while the usercontrol is being loaded by ajax. When the user control loads, the tooltip suddenly changes to the right size (to fit the usercontrol content), but instead of being near to the target control, it positions itself at the far left of the screen.

I have noticed that if I specify exact width and height in tooltip manager, then the problem goes away - however, I cannot use these properties as I need the tooltip to grow/shrink to fit various different usercontrols with different height/width content.

Any ideas?
Matt
Adam Hubble
Top achievements
Rank 1
 answered on 10 Jul 2009
1 answer
66 views

Hi-

I'm trying to find a scheduling web control (ASP.NET, ASP.NET AJAX, or Silverlight) that will allow me to drag appointments to a different week than the one shown, when the control is in workweek or week view.  Are the demos not configured to allow this, or is this a limitation of the Telerik web scheduling control?

Thanks!
-Eric.

T. Tsonev
Telerik team
 answered on 10 Jul 2009
2 answers
206 views

 

 

Hi,

I am working on a RadGrid that has worked perfectly up till now, I use the event below to translate the true/false returned from the database into yes/no, I have other situtions where the translation maybe more complex e.g. a specific string to another string like 'yes' = 'this item has been delivered!'

where my problem is, is that I have introduced grid paging, now the first page is formatted correctly and all subsequent pages dont have the translations in them.

void
grdDelivery_ItemDataBound(object sender, GridItemEventArgs e) {

 

 

 

    if (e.Item is GridDataItem) {

 

 

 

        GridDataItem databounditem = e.Item as GridDataItem;

 

 

 

        if (bool.Parse(databounditem["deliveryclosed"].Text) == false) {

 

            databounditem[

 

"deliveryclosed"].Text = "No";

 

        }

 

else {

 

            databounditem[

 

"deliveryclosed"].Text = "Yes";

 

        }

    }

}

any help would be great.

Alex White
Top achievements
Rank 1
 answered on 10 Jul 2009
1 answer
202 views
I am trying to avoid retrieving all rows by setting an initial filter, but it is not working. The full list is returned. What is the correct FilterExpression syntax? Thank you for any help.

 

<telerik:RadGrid ID="RadGridCompany" runat="server" 
AllowFilteringByColumn="True" AutoGenerateColumns="False"
DataSourceID="EntityDataSourceCompany" GridLines="None" AllowPaging="true"
PageSize="100" onselectedindexchanged="RadGridCompany_SelectedIndexChanged"
onitemcommand="RadGridCompany_ItemCommand">
.
.  
            <MasterTableView DataSourceID="EntityDataSourceCompany" 
            FilterExpression = "(it.[OrganizationName] == 'Non Existent')">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>

                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridButtonColumn
                        CommandName="Select"
                        Text="Select"
                        UniqueName="Select">
                        <HeaderStyle Width="10%" />
                    </telerik:GridButtonColumn>
                    <telerik:GridBoundColumn DataField="OrganizationName" HeaderText="Company Name" 
                        ReadOnly="True" SortExpression="OrganizationName" UniqueName="OrganizationName"
                        AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"  FilterControlWidth="250px" >
                        <HeaderStyle Width="90%" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="OrganizationID" Display="False"
                        HeaderText="Organization ID" ReadOnly="True" SortExpression="OrganizationID"
                        UniqueName="OrganizationID">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>

.
.
<asp:EntityDataSource ID="EntityDataSourceCompany" runat="server"
ConnectionString="name=LQDModel" DefaultContainerName="LQDModel"
EntitySetName="Organization"  OrderBy="it.OrganizationName"
Select="it.[OrganizationName], it.[OrganizationID]">
</asp:EntityDataSource>

Tsvetoslav
Telerik team
 answered on 10 Jul 2009
5 answers
134 views
Is it possible to hide (not show)  a specific day (for example friday) in the week view. The result should be a week with 6 days (no friday).
T. Tsonev
Telerik team
 answered on 10 Jul 2009
1 answer
143 views
Hi,
I try moving my scheduler to be based on WebService, and group by resource
IT IS NOT WORKING AT ALL,
I don't see my appointments once in group by mode
the start/end time are display without any relation to my setting, and it crashes....

And once in group mode I get the following errors
: 'rows.0.cells' is

0.tBodies.0.rows[...].cells' is null





I tried the following to code:

     <telerik:RadScheduler ID="RadScheduler1" runat="server" HoursPanelTimeFormat="htt"
            Skin="Office2007" ValidationGroup="RadScheduler1" ShowFooter="false"
            SelectedView="DayView" DayEndTime="23:00:00" DayStartTime="00:00:00"
             GroupBy="Rooms" >
            <Localization AdvancedAllDayEvent="All day"></Localization>
            <AdvancedForm DateFormat="M/d/yyyy" TimeFormat="h:mm tt"></AdvancedForm>
            <WebServiceSettings Path="SchedulerData.asmx" ResourcePopulationMode="ServerSide" />
            </telerik:RadScheduler>
            
            
            
             <telerik:RadScheduler ID="RadScheduler1" runat="server" HoursPanelTimeFormat="htt"
                    Skin="Office2007" ValidationGroup="RadScheduler1" ShowFooter="false"
                    SelectedView="DayView" DayEndTime="23:00:00" DayStartTime="00:00:00"
                      >
                    <Localization AdvancedAllDayEvent="All day"></Localization>
                    <AdvancedForm DateFormat="M/d/yyyy" TimeFormat="h:mm tt"></AdvancedForm>
                    <WebServiceSettings Path="SchedulerData.asmx" ResourcePopulationMode="ServerSide" />
                    <DayView DayEndTime="23:00:00" DayStartTime="00:00:00" GroupBy="Rooms" />
            </telerik:RadScheduler>

I'm I doing something wrong?
I'm using version 2009, 2, 701, 35


T. Tsonev
Telerik team
 answered on 10 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?