Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
Hi,

i drop a chart and add series with programtically. My chart type is stacked bar. I see that stacked bar size is very less. Some values are displaying bottom of the bar. I try to increase the size of the bar but i could not able to increase.

Thanks.

Regards
Arshad
Vladimir Milev
Telerik team
 answered on 18 Jun 2009
0 answers
118 views
Hello,
2 months ago I suggested a Captcha control, answer from your team was ... thanks.
Without any visibility I implemented mine....

Now could I suggest some better follow up for 'people suggestions': please advise them if you start some dev effort. Could avoid duplicate search.

I you need some tool for this, use a CRM :)


Hope your captcha is ajax.net friendly.

Many thanks for attention.


CS
CSurieux
Top achievements
Rank 2
 asked on 18 Jun 2009
2 answers
228 views
I have a very strange scenario where my RadGrid is duplicating rows from a LINQ to Entities data source, i.e. an IEnumerable<Type> collection.  The actual query doesn't return duplicates, but these mysteriously appear in the grid.  The grid is set as an updated control in a RadAjaxManager, and data bound in the NeedDataSource event.  I really don't know where to start looking here.
Brady
Top achievements
Rank 1
 answered on 18 Jun 2009
3 answers
446 views
I currently have a radgrid that opens a nestedview template like so:
Protected Sub grid_applications_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles grid_applications.ItemCommand 
        If e.CommandName = "RowClick" Then 
            Dim item As GridDataItem = e.Item 
            If item.Expanded = True Then 
                item.Expanded = False 
            Else 
                item.Expanded = True 
            End If 
        End If 
    End Sub 
<NestedViewTemplate> 
    <asp:Label ID="GridRec" runat="server" Visible="false" Text='<%# Eval("record") %>' /> 
       <uc1:AppViewer ID="AppViewer1" runat="server" /> 
    </NestedViewTemplate> 

I want to change this now though so that the AppViewer UserControl opens in a RadWindow modal popup.  I am not sure how to do that programmatically as I want it to happen when the row is clicked, not a select link or button.

Also, in the radwinow I will have editing available, so when the radwindow is closed how do I automatically refresh the grid?

Thank you.

Shinu
Top achievements
Rank 2
 answered on 18 Jun 2009
1 answer
133 views
Hi,

I have 2 ComboBox bound to same SqlDataSource.

When showing page, the first ComboBox shows items twice.

Using version : 2009.1.527.35
Code :
    <asp:SqlDataSource ID="srcOriginUsers" runat="server"  
        ConnectionString=""  
        SelectCommand="Dir.sp_DirectoryUserSelect" SelectCommandType="StoredProcedure" > 
    </asp:SqlDataSource> 
 
                            <telerik:RadComboBox ID="lstFrom1" runat="server" DataSourceID="srcOriginUsers"  
                                DataTextField="FirstName" DataValueField="Id" AppendDataBoundItems="true"> 
                                <Items> 
                                    <telerik:RadComboBoxItem runat="server" Text="Aucun" /> 
                                </Items> 
                                <ItemTemplate> 
                                    <asp:Label ID="lbTitle" runat="server" Text='<%# Eval("LbTitle") %>' /> <asp:Label ID="lblFirstName" runat="server" Text='<%# Eval("FirstName") %>' /> <asp:Label ID="lblLastName" runat="server" Text='<%# Eval("LastName") %>' /> 
                                </ItemTemplate> 
                            </telerik:RadComboBox> 
                            <telerik:RadComboBox ID="lstFrom2" runat="server" DataSourceID="srcOriginUsers"  
                                DataTextField="FirstName" DataValueField="Id" AppendDataBoundItems="true"> 
                                <Items> 
                                    <telerik:RadComboBoxItem runat="server" Text="Aucun" /> 
                                </Items> 
                                <ItemTemplate> 
                                    <asp:Label ID="lbTitle" runat="server" Text='<%# Eval("LbTitle") %>' /> <asp:Label ID="lblFirstName" runat="server" Text='<%# Eval("FirstName") %>' /> <asp:Label ID="lblLastName" runat="server" Text='<%# Eval("LastName") %>' /> 
                                </ItemTemplate> 
                            </telerik:RadComboBox> 
 

Thanks.
Simon
Telerik team
 answered on 18 Jun 2009
6 answers
121 views
Hello Telerik,

I am currently working on integration of the Editor in our CMS.
Imagine the following configuration:

7 AJAX tabpanels (languages) with 4 Editor instances each. For speed sake I want to load the Editors OnClientClick.
What is the way to go to load the Editors on demand?

Are there any code snippets / examples for this?

Thanks in advance for your answer,

Marc
Rumen
Telerik team
 answered on 18 Jun 2009
0 answers
86 views
Hi

Actualy,  we need export option without radgrid,
we want to get export data without using radgrid.
is it possible..?

if any one know about , please reply me.
ravi
Top achievements
Rank 1
 asked on 18 Jun 2009
4 answers
270 views

Hi

We're creating a grid dynamically and are running into some issues.  Both the columns and datatypes are defined in the database. 
The grid consists of 1 GridBoundColumn and multiple GridTemplateColumns hence the radgrid is defined entirely in the code behind (in the Page_Init event).  Additionally, the rows of the datasource (based on a DataTable) we're using is built up dynamically in the .NET code as rows can have any number of columns.  This is populated in the RadGrid_NeedDataSource event.

We are using ASP.NET_AJAX_2009_1_402 and are creating the templates with classes implementing the IBindableTemplate interface.

On viewing the page the first time, the data displays in the grid in the correct number of columns (with correct column headings).  So far so good.

However, the problems we're facing are:

1. Even though AllowSorting is set to True, the GridTemplateColumn headers are not clickable  (the GridBoundColumn sorts fine).  How do we get the GridTemplateColumns to be sortable as well?

2. One of the static controls on the page is a check box control that controls the visibility of certain columns in the grid.  The user can choose to see those columns at run time.  The only way I could get this to work is to set the column.Visible property (to true or false depending on the state of the checkbox) in the Page_Load() event and call grid.Rebind().  This results in a rebind for every post back.  Is this the correct way to do this?

3. Clicking the 'Insert a new entry' link brings up the Insert form fine (with default values as programmed) but on clicking 'Insert', it crashes with an 'unable to cast to null' error.  The specific control we're using for our testing is the RadDatePicker .. the crash is caused when attempting a cast a Null to a RadDatePicker in the DataBind event of the DateTemplate (see code below). The

 

insertionObject.GetPropertyValue(columnName) I'm attempting to use is null - which is confirmed by the Utils.Log debugging that I'm doing.

 

    public void BindData(object sender, EventArgs e)  
    {  
        RadDatePicker radDatePicker = (RadDatePicker)sender;  
        if (radDatePicker.NamingContainer is GridEditFormInsertItem)  
        {  
            // Insert mode  
            GridEditFormInsertItem container = (GridEditFormInsertItem)radDatePicker.NamingContainer;  
 
            GridInsertionObject insertionObject = (GridInsertionObject)container.DataItem;  
            Utils.Log("Date BindData=" + columnName + ": Propval=" + insertionObject.GetPropertyValue(columnName).ToString());  
            radDatePicker.SelectedDate = ((RadDatePicker)insertionObject.GetPropertyValue(columnName)).SelectedDate;              
        }  
        else  
        {  
            // Edit mode  
            GridEditFormItem container = (GridEditFormItem)radDatePicker.NamingContainer;  
            radDatePicker.SelectedDate =  Utils.StringToDateTime(((DataRowView)container.DataItem)[columnName].ToString());  
        }  
    } 

4. Clicking the Edit link merely does a page refresh and does not display the Edit form.

5. When exporting the data to Excel or PDF, all the column headings appear fine.  However, only the data in the GridBoundColumn appears (i.e. data for the GridTemplateColumns is blank).

6. In your example on http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html, your templates implement ITemplate (and not IBindableTemplate).  I could not find a way to use the ITemplate as in your example.  I take it I need IBindableTemplate for this?

 

Do you have a working example of a grid that is dynamically created using templates like the problem we're facing?  That would be a great reference.

Thanks

Sebastian
Telerik team
 answered on 18 Jun 2009
1 answer
278 views
I can't seem to get these two client-side events to fire when the event comes from the proxy within a user control.  I've defined the javascript handlers on the RadAjaxManager to take care of the events.  The button within the user control gets ajaxified by its container, a RadMultiPage, which has a RadAjaxManagerProxy within it.  However, I'm trying to disable Ajax on this button so that a full postback can occur and a file can be output for consumption.  I'm currently using RadControls for ASP.NET AJAX Q1 2009 (build 527).

function OnRequestStart(sender, args) { alert("Request start"); }
function OnResponseEnd(sender, args) { alert("Response complete."); }

Right now I'm just using simple alert messages, but they never seem to happen.  My work-around solution was to use, but is this something that Telerik plans on addressing?:
RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(this.MyButton1);


Iana Tsolova
Telerik team
 answered on 18 Jun 2009
1 answer
97 views
Is there a property, similar to the RadTextbox property of FocusedStyle?

I'm looking to have the same behavior as my textboxes when they have the focus: FocusedStyle-BorderColor="#deb360"
Princy
Top achievements
Rank 2
 answered on 18 Jun 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?