Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
63 views
On page load the radgrid is displaying but after postback it is gone.  The grid on page load looks like:

  <div id="RadGrid1" class="RadGrid RadGrid_Default">
 
<!-- 2010.2.929.20 --><table cellspacing="0" class="rgMasterTable" border="0" id="RadGrid1_ctl00" style="width:100%;table-layout:auto;empty-cells:show;">
 <colgroup>

After postback it looks like:

  <div id="RadGrid1" class="RadGrid RadGrid_Default">
 
<!-- 2010.2.929.20 --><input id="RadGrid1_ClientState" name="RadGrid1_ClientState" type="hidden" />
 </div>

Any thoughts.

Thanks

John
Pavlina
Telerik team
 answered on 22 Oct 2010
1 answer
134 views
When I set the ComboBox.Enabled to False, the text goes green as shown in the screenshot.

Only in Firefox with Windows 7 skin - fine in IE.

Please advise - thanks,

Rob
Yana
Telerik team
 answered on 22 Oct 2010
2 answers
166 views
Greetings All,

I am looking for a way to select a node using a keystoke. In other words, if the user presses the "R" key while focused on the RadTree the first node with text that starts with "R" would be selected. I have a requirement that needs this quick navigation. I was looking at the OnClientKeyPressing event and think I'll be able to use this, but was just wondering if anyone has done this before and has a good approach.

Regards,
Tom
Tom M
Top achievements
Rank 1
 answered on 22 Oct 2010
1 answer
143 views
Hi,

In my application, we are using RAdGrid for displaying data
and in footer we shows Avg of most of the columns, i have one column whose data are in this format 416:51:14

I need to sum all the data for this column and need to show that in the grid footer.

Here as the datatype iam getting is string, so i am not able to sum these values to my end.

Example:  416:51:14
                416:51:14 
                    2:05:51 
Total:      835:42:49

Help will be greatly appreciated.

Martin
Telerik team
 answered on 22 Oct 2010
2 answers
97 views
Hi, I kind of like the Radscheduler for it's appearance, and the recurrence engine, but what I really need is some way of exporting the scheduler items into different views. So for example

Weekly on Monday             Time                      Room                       Person
item 1                                  13:15 - 14:00        A                              person 1
item 2                                  14:00 - 15:15        A                              person 2
item 3                                  14:00 - 15:15        B                              person 1

Weekly on Thursday
item 4
item 5

One-time items                 Time                       Room                    Person
item 22                              13:15 - 14:00        B                           person 2

Could I bind them to some repeater or something?
And how about dealing with the recurring items then?

Peter
Telerik team
 answered on 22 Oct 2010
1 answer
163 views
I'm trying to use the GridHTMLEditorColumnEditor control with my grid but it just renders as a simple textbox when switching to edit mode.  The other external column editors I use work just fine.  Attached is a screenshot of what it looks like when it renders.  I couldn't find much documentation on this control.  Do I need to set some other properties or something?

<telerik:RadGrid ID="rgCesWeeklyLogs" runat="server"
    AutoGenerateColumns="False" GridLines="None"
    Skin="Windows7"
 
    AllowPaging="true" AllowSorting="true"
    onneeddatasource="rgCesWeeklyLogs_NeedDataSource"
    onupdatecommand="rgCesWeeklyLogs_UpdateCommand"
    ondatabound="rgCesWeeklyLogs_DataBound">
    <MasterTableView CommandItemDisplay="None" DataKeyNames="Id">
        <CommandItemSettings ExportToPdfText="Export to Pdf" />
        <Columns>
           <telerik:GridTemplateColumn UniqueName="EditLog">
                <ItemTemplate>
                    <asp:ImageButton ID="btnEdit" runat="server" ImageUrl="~/Images/edit-icon.jpg" CommandName="Edit" ToolTip="Edit Record" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="ActivityDate" ReadOnly="true" DataFormatString="{0:d}" />
            <telerik:GridBoundColumn DataField="DayOfWeek" ReadOnly="true" HeaderText="Day of Week" />
            <telerik:GridBoundColumn DataField="Activity" HeaderText="Planned Activity" ColumnEditorID="GridHTMLEditorColumnEditor1" />
            <telerik:GridBoundColumn DataField="Outcome" HeaderText="Outcome" ColumnEditorID="ActivityEditor" />
             <telerik:GridBoundColumn DataField="LastUpdated" HeaderText="Last Updated" ReadOnly="true" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
<telerik:GridTextBoxColumnEditor ID="ActivityEditor" TextBoxMode="MultiLine" TextBoxStyle-Width="500px" TextBoxStyle-Height="200px" runat="server" />
<br />
<telerik:GridHTMLEditorColumnEditor ID="GridHTMLEditorColumnEditor1"
    runat="server">
</telerik:GridHTMLEditorColumnEditor>

Rumen
Telerik team
 answered on 22 Oct 2010
1 answer
138 views

 

Hi,

I’ve been working on a Custom Radgrid and Radtoolbar control which works very well.  At the moment the javascript used is still in the design view of the page and want to include this in my control dll. I’ve looked around the site and can’t find any examples of how to go about doing this.

 

How would I go about including the below in my code:

function RowClick(sender, eventArgs) {

            if (editedRow != null && hasChanges) {

                if (confirm("Update changes?")) {

                    hasChanges = false;

                    $find("<%=gvGrid.MasterTableView.ClientID %>").updateItem(editedRow);

                }

                else {

                    hasChanges = false;

                }

            }

        }

 

Also how would I change it so gvGrid is dynamic so I can have different names for my grids etc.

 

Any pointers in the right direction would be great.

 

Thanks

Veli
Telerik team
 answered on 22 Oct 2010
1 answer
108 views
Dear Telerik Community,

Currently i have a problem with my radgrid where i autoload my data in it. I use for this auto generation autogeneratecolumns set to true, but before i add my dynamic data i set one column in the codebehind. This is an GridClientSelectColumn with a width of 30 pixels. When i render my page the headers of the columns overflows! I have searched and looked into a solution but i cannot find any possible solution.

The rest of the text is a further detailed information about my problem:

Development: Visual Studio 2010 Professional Edition
Telerik Version: Latest version of Telerik Ajax Controls

Snippits:

Radgrid
<cc1:TabContainer ID="tcObjects" CssClass="ajaxtab" runat="server">
    <cc1:TabPanel ID="tpSearchResults" runat="server" TabIndex="0" Visible="false" CssClass="css_div_gridpanel">
        <ContentTemplate>
            <div class="css_div_control">
                <div class="css_div_titlebar">
                    <div style="float:left; height: 24px; width: 24px; margin: 2px;">
                        <asp:Image ID="imgSearchResults" runat="server" Width="24px" Height="24px" />
                    </div>
                    <div class="css_div_title">
                        <span class="css_title_lbl">
                            <asp:Label ID="lblSearchResults" runat="server"></asp:Label>
                        </span>
                    </div>
                    <asp:Panel ID="pSearchResults" CssClass="css_div_actions" runat="server">
                        <asp:LinkButton ID="btnAttach" OnClick="AttachObjects" runat="server">
                            <div class="css_action_item_enabled" style="float: right;">
                                <div class="css_action_item_icon_add">
                                </div>
                                <span class="css_action_link">
                                    <asp:Label runat="server" ID="lblAttach"></asp:Label>
                                </span>
                            </div>
                        </asp:LinkButton>
                    </asp:Panel>
                </div>
                <div class="css_div_datacontrol_content">
                    <div class="css_div_datacontrol_data">
                        <asp:Panel ID="GridPanel" runat="server" CssClass="css_div_gridpanel">
                            <telerik:RadGrid ID="rgSearchResults" OnNeedDataSource="rgSearchResults_NeedDataSource" AutoGenerateColumns="true"
                            HeaderStyle-Wrap="false" AllowMultiRowSelection="true" GridLines="None" Skin="Sunset" EnableViewState="true"
                            EnableEmbeddedScripts="false" EnableEmbeddedSkins="false" AllowSorting="true" EnableEmbeddedBaseStylesheet="false"
                            RegisterWithScriptManager="false" AllowFilteringByColumn="true" runat="server">
                                <MasterTableView Width="100%"></MasterTableView>
                                <GroupingSettings CaseSensitive="false" />
                                <HeaderStyle Width="150px" />
                                <ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true"
                                Resizing-AllowRowResize="false" ColumnsReorderMethod="Reorder" Resizing-AllowColumnResize="true" Resizing-ResizeGridOnColumnResize="true"
                                Resizing-EnableRealTimeResize="true" Scrolling-AllowScroll="true">
                                    <Scrolling UseStaticHeaders="true" AllowScroll="true" />
                                    <Selecting AllowRowSelect="true" />
                                    <ClientEvents OnGridCreated="GridCreated" />
                                </ClientSettings>
                            </telerik:RadGrid>
                        </asp:Panel>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </cc1:TabPanel>
</cc1:TabContainer>

Javascript
function GridCreated(sender, args) {
    var grid = sender;
    var masterTable = sender.get_masterTableView();
    masterTable.selectAllItems(true);
}

Codebehind
GridClientSelectColumn column = new GridClientSelectColumn();
this.rgSearchResults.Columns.Add(column);
column.Reorderable = false;
column.Resizable = false;
column.ItemStyle.Width = Unit.Pixel(30);
column.HeaderStyle.Width = Unit.Pixel(30);
 
this.rgSearchResults.DataSource = table;
this.rgSearchResults.DataBind();

An image is attached to this post where the problem is marked.

For the rest i have tried the following topics / websites:
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-autogeneratecolumns-false-issue.aspx
http://www.telerik.com/community/forums/aspnet-ajax/grid/header-and-detail-columns-are-misaligned.aspx
http://www.telerik.com/community/forums/aspnet-ajax/grid/there-is-a-shift-between-the-header-and-the-columns.aspx
http://www.telerik.com/community/forums/aspnet-ajax/grid/headers-and-items-don-t-line-up.aspx
http://www.telerik.com/community/forums/aspnet-ajax/grid/gridclientselectcolumn-header-checkbox-does-not-clear.aspx
Martin
Telerik team
 answered on 22 Oct 2010
1 answer
53 views
Our client wants to have the schedule in a month view, but strangely enough, they want to consolidate Saturday and Sunday into one box.  Is there a way to do that?

Paul
Veronica
Telerik team
 answered on 22 Oct 2010
3 answers
151 views
Hello.

I am using Telerik Q2 2010 (v.2010.2.826.20), and I'm having problems opening a RadWindow.

The structure involved is like this:

Aspx page "P" uses Masterpage "M".
"P" contains user control "A" which contains user control "B".

"B" contains a RadGrid, where the rows have a template column with an
asp:button, which fires an event with a custom delegate.

"A" responds to the event, fires a new event, which "P" responds to,
finally running method public void OpenRadWindow(string url, bool modal):

var rWindow = new RadWindow();
rWindow.NavigateUrl = url;
rWindow.AutoSize = true;
rWindow.Modal = modal;
rWindow.Title = "MÃ¥lepunkt";
rWindow.VisibleTitlebar = true;
rWindow.VisibleStatusbar = false;
rWindow.VisibleOnPageLoad = true;
rWindow.Behaviors = Telerik.Web.UI.WindowBehaviors.Move | Telerik.Web.UI.WindowBehaviors.Close;
rWindow.ShowContentDuringLoad = false;
rWindow.IconUrl = "--";
rWindow.Skin = "Office2007";
rWindow.EnableViewState = false;

RadWindowManager1.Windows.Add(rWindow);


The method fires as it should when I press the button,
but nothing happens when the line "RadWindowManager.Windows.Add(rWindow)" is run.

This works beautifully in another solution, where I use Telerik Q1 2010,
but here the only thing that happens is that the usercontrol firing the event
just "blinks".

One difference from the solution in which this approach works, is that here we use Ajax:

"M": RadScriptManager.
"P": RadWindowManager.
"A": <RadAjaxPanel>..."B"...</RadAjaxPanel>
"B": <RadAjaxManager><UpdatedControls>...RadGrid...</UpdatedControls></RadAjaxManager> RadGrid

I've tried to put the RadWindowManager in the page "P" as well as in both user controls "A" and "B".


Is the problem related to Ajax, and what can I do?
Georgi Tunev
Telerik team
 answered on 22 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?