Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 views
Before I go writing a function for this is there anything out there that shows how to "not" use the built in prev/next buttons that overlay on top of the tabs, but rather use your own onclick events on other links to do get_nextTab etc.?

I can't use margin etc. because I want to put them on the same area as the tab but not directly on the tabs, yes I know that there is a js hack floating around the forums but that doesn't work for firefox etc. so doesn't really work if i want it to be cross browser.

Yana
Telerik team
 answered on 11 Jan 2010
3 answers
220 views
I am a new user of Telerik components and are impressed by their use and the support that is offered.
I have a problem: I have a Radgrid composed GridTemplateColumn inside which there are "asp: TextBox". The user types in these TextBox and a "asp: Button" outside the RadGrid to save what has been edited by the user. Then the server side I have somehow the data entered by the user.

Can you help?
It would be useful to post the code to be used as an example.

Alessandro
Martin
Telerik team
 answered on 11 Jan 2010
1 answer
128 views
Hi,

i have the following in a RadGrid:
<telerik:GridTemplateColumn HeaderText="Duration" UniqueName="Duration"> 
                <ItemTemplate> 
                    <asp:Label runat="server" ID="lblConferredDate" Text='<%# Eval("ConferredDate") %>'></asp:Label> 
                </ItemTemplate> 
                <EditItemTemplate> 
                    <telerik:RadDatePicker  ID="rdpConferredDate" runat="server" DateInput-EmptyMessage="No Date" DbSelectedDate='<%# Bind("ConferredDate") %>'> 
                    </telerik:RadDatePicker > 
                </EditItemTemplate> 
            </telerik:GridTemplateColumn>  

The issue is that when i try to bind to the editItemTemplate i get exception about the mindate. What i would like is that if a date is less than the mindate of the control then set the value to null or empty.

Can anyone tell/show me how to handle bind exceptions? 
Princy
Top achievements
Rank 2
 answered on 11 Jan 2010
3 answers
101 views
I am seeing an issue when trying to manually auto-complete a combobox on a page that has an anchor in the URL

My url is like EditOrder.aspx?o=10000#editedItem

In my page I have a method:
        protected int GetQueryStringID(string qryParam) {  
            int retVal = 0;  
 
            if(Request.QueryString[qryParam] == null || Int32.TryParse(Request.QueryString[qryParam], out retVal) == false)  
                retVal = 0;  
 
            return retVal;  
        }  
 

From a java script call in a Rad Combobox I am
 
//  Force the server-side populate once the combobox is fully opened.  
function OnItemNumberOpened(sender, eventArgs) {  
    var cb = sender;  
    cb.requestItems(cb.get_text(), false);  
}  
 

When this call happens Request.QueryString["o"] = "10000#" causing the page to fail.  Other Ajax calls on this page are working just fine.  I have worked around it by stripping off everything after the "#", but I was just wondering if this was a know issue with the ComboBox control and if it would be fixed in an upcoming release?

Using IE7 BTW.

Thanks,
Kevin M. Betts
Web Developer
Kimball Midwest
Simon
Telerik team
 answered on 11 Jan 2010
1 answer
88 views
Dir sir,
I have a problem you need help,
in demo ComboBox / Related ComboBoxes :
function LoadCities(combo, eventArqs)
{    
    var item = eventArqs.get_item();
    citiesCombo.set_text("Loading...");
    // this will fire the ItemsRequested event of the
    // cities combobox passing the countryID as a parameter
    citiesCombo.requestItems(item.get_value(), false);                    }
I want to get more value of comboContinent, then how?

Thanks for support,
Brgs,

Princy
Top achievements
Rank 2
 answered on 11 Jan 2010
5 answers
274 views

Hi,
In this example below, how can we change the alternate text or tooltip for the buttons between the listboxes?
I wanted to add the tooltip as move left, move right, etc.

URL: http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/draganddrop/defaultcs.aspx

Thanks
Yana
Telerik team
 answered on 11 Jan 2010
6 answers
257 views
Hi
I got a problem with a dynamically created RadGrid.
My definition is the following:
protected void Page_Init(object sender, EventArgs e) 
        { 
            createGrid("rgSchedules", "TK_ID", true, this.phSchedulesGrid, out this.rgSchedules); 
            createSchedulesGridColumns(this.rgSchedules); 
            this.rgSchedules.SelectedIndexChanged += new EventHandler(rgSchedules_SelectedIndexChanged);             
        } 
 
        void rgSchedules_SelectedIndexChanged(object sender, EventArgs e) 
        { 
            // nothing happens but PostBack for test purposes 
        } 
 
        private void createGrid(string gridId, string datakeyName, bool autoPostBack, PlaceHolder ph, out RadGrid localGrid) 
        { 
            RadGrid grid = new RadGrid(); 
            grid.DataSourceID = "odsSchedules"; 
            grid.EnableViewState = false; 
            grid.ID = gridId; 
            grid.BorderStyle = BorderStyle.None; 
            grid.AutoGenerateColumns = false; 
            grid.AllowSorting = true; 
            grid.AllowPaging = false; 
            grid.AllowMultiRowSelection = false; 
            grid.Height = 450; 
            grid.Width = 450; 
            grid.GridLines = GridLines.None; 
            grid.PagerStyle.Visible = false; 
            grid.ClientSettings.EnablePostBackOnRowClick = autoPostBack; 
            grid.ClientSettings.EnableRowHoverStyle = true; 
            grid.ClientSettings.Selecting.AllowRowSelect = true; 
            grid.ClientSettings.Scrolling.AllowScroll = true; 
            grid.ClientSettings.Scrolling.UseStaticHeaders = true; 
            grid.ClientSettings.Scrolling.SaveScrollPosition = true; 
            grid.ClientSettings.Resizing.AllowColumnResize = true; 
            grid.ClientSettings.Resizing.ClipCellContentOnResize = false; 
            grid.ClientSettings.Resizing.EnableRealTimeResize = true; 
            grid.ClientSettings.Resizing.ResizeGridOnColumnResize = true; 
            grid.MasterTableView.DataKeyNames = new string[] { datakeyName }; 
            grid.MasterTableView.OverrideDataSourceControlSorting = true; 
            localGrid = grid; 
            ph.Controls.Clear(); 
            ph.Controls.Add(grid); 
        } 
        private void createSchedulesGridColumns(RadGrid grid) 
        { 
            grid.Columns.Clear(); 
 
            string nameCaption = this.GetLocalResourceObject("appointment").ToString(); 
 
            DynamicGrid.AddBoundFieldToGridView("TK_BEZEICHNUNG", nameCaption, grid); 
            DynamicGrid.AddDateTimeFieldToGridView("TK_ANFANG", this.GetLocalResourceObject("begin").ToString(), 
                grid); 
        } 
 

As you can see the grid performs a PostBack on click on a row. So if the grid or another control on the page performs a PostBack the grid gets some new, completly empty columns. They are exactly as many as the defined ones (in our case 2).

Did I miss anything? What am I doing wrong?

Best regards
Ferdinand
Ferdinand
Top achievements
Rank 1
 answered on 11 Jan 2010
1 answer
86 views
Hi,

I've a radgrid :

<

 

telerik:RadGrid ID = "m_radRecipientsGrid" runat="server"

 

 

CellPadding = "0"

 

 

AllowMultiRowSelection="True"

 

 

GroupingEnabled="False"

 

 

HorizontalAlign="Left"

 

 

OnNeedDataSource="m_radRecipientsGrid_NeedDataSource"

 

 

GridLines="None"

 

 

Height ="225px"

 

 

Width = "99%"

 

 

OnItemCommand = "m_radRecipientsGrid_ItemCommand"

 

 

OnSelectedIndexChanged="m_radRecipientsGrid_SelectedIndexChanged" TabIndex="15">

 

 

<MasterTableView AllowPaging="true"

 

 

AllowSorting="true"

 

 

AllowFilteringByColumn="true"

 

 

PagerStyle-Mode="NextPrevAndNumeric" PageSize="10">

 

 

<Columns>

 

 

<telerik:GridClientSelectColumn Reorderable="False" UniqueName="ClientSelectColumn">

 

 

<HeaderStyle Width="30px">

 

 

</HeaderStyle>

 

 

</telerik:GridClientSelectColumn>

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

<GroupingSettings CaseSensitive="false" />

 

 

<ClientSettings EnablePostBackOnRowClick ="true" >

 

 

<Scrolling AllowScroll="True"

 

 

UseStaticHeaders="True" />

 

 

<Selecting AllowRowSelect="true" EnableDragToSelectRows ="true" />

 

 

<Resizing AllowColumnResize="true"

 

 

ClipCellContentOnResize="true"

 

 

EnableRealTimeResize="true"

 

 

ResizeGridOnColumnResize="false" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 


When I select items in the grid,
I get the javascript error: 'this._owner' is null or not an object

How to get rid of this error.
Daniel
Telerik team
 answered on 11 Jan 2010
5 answers
125 views
I'm switching over our grids from our outdated infragistics grids.

One feature that was on the infragistics was that on Demand On Load on a grid, so you expand a row and it hits server and pulls child back. So like the RadGrid's ServerOnDemand.

What I'm trying to re-create but having problems, is that once those child items have been loaded, client should be able to collpase and expand that row without hitting the server but now the client has the data for that row. but I can't figure out how to do that using the RadGrid.

I'm using the AjaxManager as well.

So is this even possible?

So quick summary
click row, hits server gets child items display
On collpase it client collpases dosn't hit server ( can't figure this out)
if you expand the same row or a row that has already been expanded then you expand it using client and don't hit server (just show what you already know)
Veli
Telerik team
 answered on 11 Jan 2010
1 answer
168 views
Hi.

The provider gets the logged on user's appointments and displays them accordingly. However, a user needs to be able to view other user's calendars (though not edit them). Therefore I need to send a parameter to the provider in order to display the correct user's appointments.

The trouble so far has been that I do not seem to bind the data correctly.
I use a DropDownList to change the active user, and when I first choose a user (say John) nothing changes. When I choose another user (say Laura), John's data is displayed. Choosing a third user, displays Laura's data and so forth. Therefore there must be something wrong with the timing. 

Moreover, if I change the timeview, e.g. from Day to Month, the data of the original user is displayed.

I only set the original UserID in the Page_Load event and inside an if (!IsPostBack) check.
When the selected index is changed in the DropDownList, the ddlChange is fired, and UserID is updated for the RadScheduler. See code below.
    private void Page_Load(object sender, EventArgs e) 
    { 
        if (User.Identity.IsAuthenticated) 
        { 
            MembershipUser mu = Membership.GetUser(); 
            UserID = (Guid)mu.ProviderUserKey; 
        } 
         
        if(!IsPostBack) 
        { 
            UserProvider p = (UserProvider )RadScheduler1.Provider; 
            p.UserID = UserID;             
        } 
    } 
 
    protected void ddlChanged(object sender, EventArgs e) 
    { 
        DropDownList ddl = (DropDownList)PanelBar.Items[0].Items[0].FindControl("ddlUsers"); 
        string tmpUserID = ddl.SelectedValue.ToString(); 
        if (tmpUserID == "0")  //Meaning that the default/original user is selected 
        { 
            //UserID is the original user's id 
            RadScheduler1.Attributes["UserID"] = UserID.ToString(); 
             
            UserProvider p = (UserProvider )RadScheduler1.Provider; 
            p.UserID = UserID; 
             
            RadScheduler1.ReadOnly = false; 
        } 
        else 
        { 
            RadScheduler1.Attributes["UserID"] = tmpUserID.ToString(); 
             
            UserProvider  p = (UserProvider )RadScheduler1.Provider; 
            p.UserID = new Guid(tmpUserID.ToString());   
             
            RadScheduler1.ReadOnly = true; 
        }        
        RadScheduler1.DataBind();  
    } 

Hope you might help me with this :)
Thanks in advance.
Peter
Telerik team
 answered on 11 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?