Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
294 views
Hi,

I have exported the rad grid data into excel format using the below LOC
ReportGrid.ExportSettings.IgnorePaging = true;  
            ReportGrid.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.Html;  
            ReportGrid.ExportSettings.ExportOnlyData = true;  
            this.ReportGrid.MasterTableView.ExportToExcel(); 

Now requirement is to add a policy statement in another spread sheet of the excel report that was generated. How can i achieve this using the rad grid properties?
Right now data source bound to the rad grid does not contain information related to the policy statement . It has to be either explicitely referred or include that in the data source.

Telerik guidence will be extremely helpful for me to solve these issue.

Thanks,
Nataraj
Daniel
Telerik team
 answered on 25 Nov 2010
2 answers
122 views
Hi there,

I am trying to do something with the scheduler that I'm not sure is possible.  Essentially, I want to allow users to "swap" two items - so if they drag an appointment over another appointment which is exactly the same duration, I would like the two appointments to swap positions.  

I have got the javascript going well enough to capture the onAppointmentMoving event to test to see if the appointment is being dragged onto another appointment, and have got logic to determine if the underlying appointment is of the same duration.  However, it's the last step that is causing me problems.

Once the user has held the moving appointment over an appointment of the same size for 2 seconds, I would like the underlying appointment to take up the position previously held by the other appointment.  Again, I've got the timeout bit working, but I don't want to post back to the server yet, I just want to the appointment to "tentatively" move - if the user were to press escape, or to move the moving appointment over another appointment, the previous one should revert to where it was, and the OTHER appointment be the one that was swapped.  Only when the user releases the mouse button do I want a postback to occur.

I have fiddled around in the client-side api for a bit and found a couple of promising functions: repaint and updateAppointment.  However, repaint doesn't seem to actually repaint, and updateAppointment causes a postback.  

Is there a way to do what I am after?  If not via natively implemented functions on the scheduler, could you point me in the right direction for actually manipulating the underlying HTML to do what I'm after?  I guess the appointments render as divs, so I figure I could probably get the left and top positions of those items, and reset them accordingly?  Can you point me in the right direction regarding which Ids I would need to grab hold of or how to get a reference to the containing divs?

Thanks very much for your help.

Matthew

Matthew
Top achievements
Rank 1
 answered on 25 Nov 2010
0 answers
79 views
First problem: modal advanced edit form interfase is broken. I tried adding the following code but it still doesn't shows the modal background.

<AdvancedInsertTemplate>
    <div class="rsAdvancedEdit rsAdvancedModal" style="position: relative">
        <div class="rsModalBgTopLeft">
        </div>
        <div class="rsModalBgTopRight">
        </div>
        <div class="rsModalBgBottomLeft">
        </div>
        <div class="rsModalBgBottomRight">
        </div>
        <div class="rsAdvTitle">
            <h3 class="rsAdvInnerTitle">Appointment</h3>
            <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose"
                CommandName="Cancel" CausesValidation="false" ToolTip='Cerrar'>
    <%# Container.Appointment.Owner.Localization.AdvancedClose%>
            </asp:LinkButton>
        </div>
        <div class="rsAdvContentWrapper">
          .......... (my content) ........
        </div>
    </div>
</AdvancedInsertTemplate>


Second problem: delete and resize links in appointments are shown incorrectly. Delete link is aligned to the left (over the text) and Resize link is valigned to top.

Thanks for your help!

EDIT: I noticed that "/* RadScheduler base stylesheet */" rules are overriding /* RadScheduler Telerik skin */ rules. For example, rsAdvTitle background is not shown because base stylesheet overrides with "background: none" (see attachment)
Jorge
Top achievements
Rank 1
 asked on 25 Nov 2010
1 answer
188 views
Hi,

is it possible to group a DateTime property only with the DatTime.Date part?
I get an object with the property "Beginning" of type DateTime from Database. But I want to group only the "Day" (DateTime.Date) part, because there are diefferent times.

<GroupByExpressions>
 <telerik:GridGroupByExpression>
  <SelectFields>
   <telerik:GridGroupByField HeaderValueSeparator=" am: " FieldName="Beginning"
                             FormatString="{0:dddd, dd MMMM yyyy}" 
                             FieldAlias="Date" />
  </SelectFields>
  <GroupByFields>
   <telerik:GridGroupByField FieldName="Beginning" SortOrder="Descending" />
  </GroupByFields>
 </telerik:GridGroupByExpression>
</GroupByExpressions>

But I get an output likes this:

http://s5.directupload.net/images/101123/agcdauma.png

The 31. December is splittet into two groups, because of the different times, but I want one single group of 31. December.

Thanks in advance.

Gregor D.
Veli
Telerik team
 answered on 25 Nov 2010
8 answers
513 views
Hi Telerik
I want to get selected row, selected row column value from codebehind but without any checkbox selection,
I want to click on row and row should get selected and then post back to Codebehind function to get selected row value.

reply me please asap



Kind Regards:
Hariindarr Siingh
McConnell Dowell
Ben
Top achievements
Rank 1
 answered on 25 Nov 2010
3 answers
163 views
Dear All,

I'm trying to limit the height of a CheckedListBox by using a scrollable ASP Panel and placing the CheckedListBox in it. Now, I'm on a content form and my master page has the actual AjaxManager. There is a Proxy on my content form but the end behavior is pretty weird. The CheckedListBox gets a vertical scroll bar as required. But the Page also get a vertical scroll bar and it's length is equal to that of a page where the CheckedListBox wouldn't have been inside a scroll panel. See attachment.

Markup:

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
  <telerik:RadScriptBlock ID="RadScriptBlockAssignmentManager" runat="server">
    <script type="text/javascript">
 
    </script>
  </telerik:RadScriptBlock>
  <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxyAssignmentManager" runat="server">
    <AjaxSettings>
      <telerik:AjaxSetting AjaxControlID="RadComboBoxCoordinators">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="PanelAssignmentManager" />
        </UpdatedControls>
      </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="ButtonUpdate">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="PanelAssignmentManager" />
        </UpdatedControls>
      </telerik:AjaxSetting>
    </AjaxSettings>
  </telerik:RadAjaxManagerProxy>
  <telerik:RadFormDecorator ID="RadFormDecoratorAssignmentManager" runat="server" DecorationZoneID="divRoot"
    DecoratedControls="All" />
  <div id="divRoot" style="width: 890px;">
    <asp:Panel runat="server" ID="PanelAssignmentManager" Width="890px">
      <table id="tableRoot" width="400px" cellpadding="0" cellspacing="0">
        <tr>
          <td style="width: 400px; text-align: left;">
            <fieldset id="fieldsetCoordinators" style="width: 378px">
              <legend>Locum Coordinator:</legend>
              <telerik:RadComboBox ID="RadComboBoxCoordinators" runat="server" SkinID="RadComboBoxWidthless" DataSourceID="LinqDataSourceLocumCoordinators"
                DataTextField="FullName" DataValueField="OID" Skin="Office2007" Width="100%" AppendDataBoundItems="True"
                AutoPostBack="True" OnDataBound="RadComboBoxCoordinators_DataBound" OnSelectedIndexChanged="RadComboBoxCoordinators_SelectedIndexChanged" />
            </fieldset>
          </td>
        </tr>
        <tr>
          <td style="text-align: left; width: 400px;">
            <fieldset id="fieldsetListCounties" style="width: 378px">
              <legend>County List:</legend>
              <asp:Panel ID="PanelScroll" runat="server" ScrollBars="Vertical" Height="300px">
                <asp:CheckBoxList ID="CheckBoxListCounties" runat="server" DataSourceID="LinqDataSourceCounties" DataTextField="CName"
                  DataValueField="OID" Width="100%" />
              </asp:Panel>
            </fieldset>
          </td>
        </tr>
        <tr>
          <td style="text-align: center; width: 400px">
            <br style="clear: both;" />
            <asp:Button ID="ButtonUpdate" runat="server" Text="Update" OnClick="ButtonUpdate_Click" />
          </td>
        </tr>
      </table>
      <br style="clear: both;" />
      <div id="divNotification" style="width: 800px; padding: 2px; text-align: left; vertical-align: middle;">
        <asp:Label ID="LabelNotification" runat="server" />
      </div>
      <br style="clear: both;" />
    </asp:Panel>
  </div>
  <asp:LinqDataSource ID="LinqDataSourceLocumCoordinators" runat="server" ContextTypeName="ExciteEngine2.DAL.LINQ.ExciteEngine2DataContextDataContext"
    Select='new (OID, String.Concat(FirstName, " ", LastName) AS FullName)' TableName="Users" Where="UserTypeID == @UserTypeID && IsActive == @IsActive">
    <WhereParameters>
      <asp:Parameter DefaultValue="2" Name="UserTypeID" Type="Int32" />
      <asp:Parameter DefaultValue="true" Name="IsActive" Type="Boolean" />
    </WhereParameters>
  </asp:LinqDataSource>
  <asp:LinqDataSource ID="LinqDataSourceCounties" runat="server" ContextTypeName="ExciteEngine2.DAL.LINQ.ExciteEngine2DataContextDataContext"
    OrderBy="Name" Select='new (OID, String.Concat(Name, " (", OID.ToString(), ")") As CName )' TableName="Counties" />
</asp:Content>

Kindly guide me through as I'm unable to get a viable solution otherwise and this small thing is keeping me from showing off to the client.
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 25 Nov 2010
3 answers
96 views
Ok, not talking webservice binding, just the normal filter.

It seems to be searching through the entire list each time I press a new letter.  So lets say I type ST, it filters the list down to the items containing ST.  Then if I type an E (making it STE) it moves just as slow to filter again.

Should it not just filter on the existing 5-10 items that ST generated?
Simon
Telerik team
 answered on 25 Nov 2010
9 answers
395 views
Hi,

Is it possible to customize the delete confirmation box just like the insert/edit form?


Thanks,
Bermo
favour
Top achievements
Rank 1
 answered on 25 Nov 2010
4 answers
121 views

hi telerik community,


i have an telerik application with two main areas (RadPanes) divided by RadSpliterBar. within the left RadPane i have an RadPanelBar as a menu. in the right RadPane is a combination of RadTabStrip and RadMultiPage. the RadTabs and PageViews were added dynamically. within each RadPageView i have usercontrols. but there can be more than one tab-pageview combination from one specific type of tab-pageview. this means that I can have two tab-pageview combinations with two instances of the same usercontrol inside.


what is the best way to ajaxify this kind of application?

 

thank you for your help
bernhard

Bernhard Rosenfelder
Top achievements
Rank 1
 answered on 25 Nov 2010
1 answer
152 views
Hi

I have been trying to follow the example http://www.telerik.com/help/aspnet-ajax/grdvalidation.html to add a requiredfield validator to a GridTimeDateColumn by changing the GridTextBoxColumnEditor to a GridDateTimeColumnEditor but this does not seem to work.

When I try to insert a new record I get the error Object reference not set to an instance of an object.

Here is my markup
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RiskGrid_NeedDataSource" OnItemCreated="RiskGrid_ItemCreated">
            <MasterTableView commanditemdisplay="Bottom">
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                        <HeaderStyle Width="2%" />
                        <ItemStyle CssClass="MyImageButton" />
                    </telerik:GridEditCommandColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    </form>

And Code

protected void RiskGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridEditableItem item = e.Item as GridEditableItem;
                GridDateTimeColumnEditor editor = (GridDateTimeColumnEditor)item.EditManager.GetColumnEditor("DateReported");
                TableCell cell = (TableCell)editor.PickerControl.Parent;
                RequiredFieldValidator validator = new RequiredFieldValidator();
                editor.PickerControl.ID = "rdpDateRecorded";
                validator.ControlToValidate = editor.PickerControl.ID;
                validator.ErrorMessage = "*";
                cell.Controls.Add(validator);
            }
        }

Does anyone know what the problem could be.

Regards

Mike


Mike Beaton
Top achievements
Rank 1
 answered on 25 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?