Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
88 views
I've observed that spaces in text are being removed in my radGrid when retrieving using javascript. The spaces are present in the html, just not able to get the full data when I retrieve it. I'm using code similar to what is documented in Telerik documentation.
http://www.telerik.com/help/aspnet-ajax/grid-getting-cell-values-for-selected-rows-client-side.html

Specifically, I have text similar to "A  B", where there are two spaces between A and B, but code only returns 1 of the spaces. Is this a bug in Telerik javascript functions, or am I doing something wrong?

Snippet of code relevant to my issue is below.
function CheckSelectedRows(strCtrlColumnName, strColumnName) {
    var gridType = 'GrdApplication';
    var grid = $find(gridType);
    var MasterTable = grid.get_masterTableView();
    var Rows = MasterTable.get_dataItems();
    for (var i = 0; i < Rows.length; i++) {
        var cell = MasterTable.getCellByColumnUniqueName(Rows[i], strCtrlColumnName);
            var curRow = MasterTable.getCellByColumnUniqueName(Rows[i], strColumnName);
            if (Selectedvalue != '') {
                Selectedvalue = Selectedvalue + '\r\n' + curRow.innerHTML;
            }
        }
}

Ken O.
Top achievements
Rank 1
 asked on 20 Jun 2012
0 answers
75 views
I have a simple 2 column grid with startswith filters and a filterdelay set to 500. It works correctly as long as the grid is not in a Ajax Panel. Once it is in a Ajax panel. it will only sort on the first column selected.
Ken
Top achievements
Rank 1
 asked on 20 Jun 2012
1 answer
74 views
Hi there

I have run into the strangest problem.

I have two RadGrid's with NestedTemplates on two separate pages.

When I log in as my admin user they both work fine, but when I log in with a different user they don't want to expand?

The users are accessing the SAME pages, all that differs is one query that populates the MainTable in one of the grids. The second client page is EXACTLY the same regardless of the user logged in, but yet, they can't expand the Nested Rows?

I am totally confused and can't think of any reason this should be happening?
Jako
Top achievements
Rank 1
 answered on 20 Jun 2012
1 answer
59 views
I have a small grid that has AllowMultiRowSelection="false" and I have an OnRowDeselecting event handler which, for testing, simply calls eventArgs.set_cancel(true)

If I select a row by clicking on it, and then click another row to select it, both rows will be selected! This is improper behavior! If I add handlers for all of the de/selection events, I can see that, despite the fact that I have set multirow selection FALSE, and despite the fact that I cancelled the deselectin event, the selecting and selected events for the other row still fire, resulting in multiple rows selected!
Eyup
Telerik team
 answered on 20 Jun 2012
1 answer
61 views

I have a RadGrid on my page, and have the ReorderColumnsOnClient property set to true. This all works fine.

However, I also have a requirement to hide columns which are dragged *off* the grid.

Anybody have any ideas on how I might do this?

PS - I'd prefer to do this with the the regular Telerik events, as opposed to using undocumented functionality which might break on the next version.

Here's the prototype aspx I created.

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        How do I detect a column has been dragged off the grid?
    </h2>
    <asp:ScriptManager runat="server" />
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
        GridLines="None">
        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
        </ClientSettings>
        <MasterTableView DataKeyNames="ProductID" DataSourceID="SqlDataSource1">
            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="ProductID" DataType="System.Int32" HeaderText="ProductID"
                    ReadOnly="True" SortExpression="ProductID" UniqueName="ProductID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName"
                    UniqueName="ProductName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CategoryName" HeaderText="CategoryName" SortExpression="CategoryName"
                    UniqueName="CategoryName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UnitPrice" DataType="System.Decimal" HeaderText="UnitPrice"
                    SortExpression="UnitPrice" UniqueName="UnitPrice">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UnitsInStock" DataType="System.Int16" HeaderText="UnitsInStock"
                    SortExpression="UnitsInStock" UniqueName="UnitsInStock">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        SelectCommand="SELECT [ProductID], [ProductName], [CategoryName], [UnitPrice], [UnitsInStock] FROM [Alphabetical list of products]">
    </asp:SqlDataSource>
</asp:Content>

And the web.config's 
<add name="NorthwindConnectionString" connectionString="Data Source=.;Initial Catalog=Northwind;Integrated Security=True" providerName="System.Data.SqlClient" />


Eyup
Telerik team
 answered on 20 Jun 2012
3 answers
172 views
Hello,

I am using the ExtractValues method in my UpdateCommand method to retrieve a mapping of column names to values from an edited row. However, when I edit a row, the value mapped to its column stays the same in the hashtable, as well as in the grid. What could be the possible explanations for this?

protected void GrdConfig_UpdateCommand(object sender, GridCommandEventArgs e)
{
     Hashtable newValues = new Hashtable();
     ((GridEditableItem)e.Item).ExtractValues(newValues);
     Alert.Show(newValues["ColumnName"].ToString());
     ...
     Working SQL code
     ...
}
Pavlina
Telerik team
 answered on 20 Jun 2012
17 answers
884 views
Hi all!

I'm working in this ASPNET MVC project and i need to use a RadScheduler control.

As i found out in Telerik website the only way for it to work in MVC is to use WebServices and a SchedulerProvider.

We have set up a DbSchedulerProvider and a WebService based on the "WebServices" example of RadScheduler but we are facing some problems:

1. We cannot edit or delete the Appointment
2. We cannot see the delete icon

The markup we are using is as follows:

        <telerik:RadScriptManager runat="server" ID="RadScriptManager1"></telerik:RadScriptManager>
        
        <telerik:RadScheduler ID="RadScheduler1" runat="server"
            SelectedView="MonthView"
            SelectedDate="2009-02-02"
            TimeZoneOffset="03:00:00"
            StartEditingInAdvancedForm="false"
            ProviderName="SchedulerDataProvider"
            Culture="pt-PT"
            FirstDayOfWeek="Monday"
            LastDayOfWeek="Sunday">
            <AdvancedForm Modal="false" />
            <TimelineView GroupBy="Calendar" GroupingDirection="Vertical" />
            <WebServiceSettings Path="~/HoursMapValidation/HoursMap.asmx" ResourcePopulationMode="ServerSide" />
        </telerik:RadScheduler>

Notice that we had to use the ProviderName attribute to our Provider Name(SchedulerDataProvider) as declared in web.config.

What can cause this problem?

We are stuck with this for a couple of days now and we may have to use the ContextMenu if we cannot solve the problem in reasonable time.

Best Regards
Peter
Telerik team
 answered on 20 Jun 2012
1 answer
95 views
Firstly am very fresh to this components. I already used css to lay asp:labels and asp:textboxes etc ..even grid control and calender cntrls in asp.
We need UI help to design a big project which have lot of labels and its Associated Input fields to lay ...2 column ..3 column upto 4
So how we have writte our CSS.

I just go thru the a page which is fully filled with telerick controls. And i found we cant change their color or margins or paddings thru CSS. Only we can control its width from an external CSS file. Also dropdowns are rendering inside a table so i cant control its width with SELECT tag.

Also i found that in grid if column increase width also increase will break layout ..Pls help me
Thanks in Adv
 
UI Designer
Bozhidar
Telerik team
 answered on 20 Jun 2012
3 answers
79 views
I need to save the user id for the appointment. Rather than choose a user from the dropdown when making the appointment, I need to add a user id from a querystring. This scenario would be choosing a patient on the patient list page to the scheduler page with the patients user id to save with the appointment. 
What event would I use to save the info in C#?
I would like to save other information to my schedule table in SQL regarding the appointment. But I cant seem to find the best practice to do all of this.

Thanks.
Peter
Telerik team
 answered on 20 Jun 2012
2 answers
104 views
Hi,

The current default upload facility in the Editor for files is rather cumbersome when multiple files are involved.

Is it possible to switch the default behaviour within the Editor to use the AsyncUpload control rather than what seems to be the default one of the standard Upload control?

Thanks

Tim Metcalfe
Danny
Top achievements
Rank 1
 answered on 20 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?