Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views
hi,
I have a  public class AgendaProvider : DbSchedulerProviderBase
who implements

public

override IDictionary<ResourceType, IEnumerable<Resource>> GetResources(ISchedulerInfo schedulerInfo)

so I get my resource on my appointment form (like Users or Rooms on your template)
How can i get my selected value of my resource on the appointment form ?
I don't use the resource tag on the aspx page...just a

<WebServiceSettings  Path="~/DataSvc/SchedulerWcfService.svc" ResourcePopulationMode="ServerSide"/>

Ivana
Telerik team
 answered on 23 Mar 2012
1 answer
170 views
Greetings,

I have a radgrid with an image on each lines which opens a radwindow. When i close My radwindow i need to refresh the grid which is in the parent page.


This is how i close my radwindow:

                    
    <asp:Button ID="Validation" runat="server" Text="Enregistrer et envoyer l'offre" OnClick="Validation_Click"
OnClientClick="if(Page_ClientValidate()) CloseDialog()" UseSubmitBehavior="false"
 />
    
function GetRadWindow() {
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
}
 
function CloseDialog() {
    GetRadWindow().close();
    return true;
 
 
}


I tried to do it that way in my parent page:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
    <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server" Width="700px" Height="500px" Title="Details du ticket"
            Skin="WebBlue" Behaviors="Close, Move" Modal="true" OnClientClose="closeRadWindow">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
JS:

<script type="text/javascript"
function closeRadWindow() 
    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();  
</script>
.CS

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    RadGrid1.MasterTableView.SortExpressions.Clear();
    RadGrid1.MasterTableView.GroupByExpressions.Clear();
    RadGrid1.Rebind();
}


It doesn't work. Is there anything i'm missing

(got a JS error with IE ( Property id null or undefined ), & no error but not working at all with firefox)

thanks in advance
Marin Bratanov
Telerik team
 answered on 23 Mar 2012
2 answers
247 views
Hello , whether it is possible to disable Add, Delete and Remove buttons in RadUpload control, so user only can upload one file ?
Joe
Top achievements
Rank 2
 answered on 23 Mar 2012
1 answer
95 views
Hi,

 when i double clicked on any appointment, I don't want to open an appointment edit template.

Thanks,
Madhan.
Plamen
Telerik team
 answered on 23 Mar 2012
1 answer
117 views
Hi,
I am using the Radcompression module version 2011.2.915 and have enablePostbackCompression set to true along with RadHiddenFieldPageStateCompression in the App_Browsers folder.

The page in question has a RadGrid sitting within a RadAjaxPanel. The Grids datasource is being persisted in viewstate, hence it can get quite large.

I have noticed using Fiddler however that only the first callback appears to have its viewstate compressed.
The bytes sent for the pageload, followed by its subsequent callbacks are as follows with the hiddenfieldpagestatecompression on
891  21,920  250,414  232,786
the above is all in bytes
when disabled however and following the same steps I get as follows
987  118,592   250,424   233,082

I would expect the first number (the page request) to be just about the same as there is no viewstate.
As expected the first call back is significantly larger due to the lack of viewstate compression.
I was however surprised to see that the subsequent callbacks bytes sent were almost the same. This suggests to me that the viewstate compression has stopped taking place. The page still works fine however so it has not been corrupted which is good.

I was wondering if anyone else has encountered similar issues or not?
Thanks
Matt
Martin
Telerik team
 answered on 23 Mar 2012
3 answers
133 views
Hi,

I am using RadTextBox with a width specified in a stylesheet.
.InputField
{
    width: 85px !important;
}

With the previous release this was working great.

With the new release (Q1 2012) the style sheet is not working.

In the attached picture you see that in the version Q1 2012 an inline style is attached to the generated span for the RadTextBox. In version Q3 2011 this was not present. This is why the width in the css-file is ignored.

Is this a bug in Q1 2012?

Paul

 

Galin
Telerik team
 answered on 23 Mar 2012
3 answers
369 views
ok, this error happens on export to excel from my radgrid.  I got everything working fine in it and then they wanted me to put on a looker service with a pop-up panel.  Since then it breaks, the export to excel, if I take out the code it works fine, i do not want it exported to excel.
it breaks on the follwoing line which is part of the radgri_ItemCreated  
pce.BehaviorID = behaviorID

How can I get around this to export the grid without the control

added peices to grid

<telerik:GridTemplateColumn>
                                             <ItemTemplate>
                                                <asp:Image ID="imgLooker" runat="server" ImageUrl="~/Images/ViewResources.gif" ImageAlign="Middle" BorderStyle="None" />
                                                <asp:PopupControlExtender ID="popInfo" runat="server" PopupControlID="pnlPop" TargetControlID="imgLooker" DynamicContextKey='<% #Eval("intRecId") %>' 
                                                DynamicControlID="pnlpop" DynamicServiceMethod="HelloWorld" Position="bottom"></asp:PopupControlExtender>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
  
 Protected Sub myRadGrid_ItemCreated(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGrid.ItemCreated
        If TypeOf e.Item Is GridCommandItem Then
            ScriptManager.GetCurrent(Page).RegisterPostBackControl(e.Item.FindControl("btnExport"))
        End If
  
        If TypeOf e.Item Is GridDataItem Then
            Dim pce As PopupControlExtender = TryCast(e.Item.FindControl("popInfo"), PopupControlExtender)
  
            Dim behaviorID As String = "pce_" + e.Item.RowIndex.ToString
            pce.BehaviorID = behaviorID
  
            Dim img As Image = DirectCast(e.Item.FindControl("imgLooker"), Image)
  
            Dim OnMouseOverScript As String = String.Format("$find('{0}').showPopup();", behaviorID)
            Dim OnMouseOutScript As String = String.Format("$find('{0}').hidePopup();", behaviorID)
  
            img.Attributes.Add("onmouseover", OnMouseOverScript)
            img.Attributes.Add("onmouseout", OnMouseOutScript)
        End If
    End Sub
  
  
  
FUll Grid layout
<telerik:RadGrid ID="myRadGrid" runat="server" Width="98%" BorderWidth="1px" CellPadding="6" GridLines="None" BorderColor="#404040" Skin="Web20" ShowFooter="true">
                            <ExportSettings HideStructureColumns="true" ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" FileName="Inventory"></ExportSettings>
                            <MasterTableView AutoGenerateColumns="false" DataKeyNames="intRecId" Name="MasterGrid" BorderColor="#404040" Font-Size="9" Font-Names="Veranda,arial,sans-serif" HeaderStyle-HorizontalAlign="Center" 
                            GridLines="Both" BorderWidth="1px" CommandItemDisplay="Top" HierarchyLoadMode="ServerBind" AllowPaging="true" PageSize="20" PagerStyle-Mode="NumericPages"><ItemStyle HorizontalAlign="Center"/>
                            <AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" /><HeaderStyle ForeColor="White" Font-Bold="true" BorderColor="#404040" BorderWidth="1px" />
                                <CommandItemTemplate>
                                    <table width="100%">
                                        <tr>
                                            <td align="right"><asp:Button ID="btnExport" runat="server" CommandName="ExportToExcel" Text="Export Excel" /></td>
                                        </tr>
                                    </table>
                                </CommandItemTemplate>
                                <Columns>
                                        <telerik:GridTemplateColumn>
                                             <ItemTemplate>
                                                <asp:Image ID="imgLooker" runat="server" ImageUrl="~/Images/ViewResources.gif" ImageAlign="Middle" BorderStyle="None" />
                                                <asp:PopupControlExtender ID="popInfo" runat="server" PopupControlID="pnlPop" TargetControlID="imgLooker" DynamicContextKey='<% #Eval("intRecId") %>' 
                                                DynamicControlID="pnlpop" DynamicServiceMethod="HelloWorld" Position="bottom"></asp:PopupControlExtender>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn>
                                        <telerik:GridBoundColumn DataField="strCategory" HeaderText="CATEGORY" />
                                        <telerik:GridBoundColumn DataField="strManufacturer" HeaderText="MANUFACTURER" />
                                        <telerik:GridBoundColumn DataField="strmake" HeaderText="MAKE" />
                                        <telerik:GridBoundColumn DataField="strPoNum" HeaderText="PO #" />
                                        <telerik:GridBoundColumn DataField="strAssetNum" HeaderText="ASSET #" />
                                        <telerik:GridBoundColumn DataField="strSN" HeaderText="SN" />
                                        <telerik:GridBoundColumn DataField="fltCost" HeaderText="COST" />
                                        <telerik:GridBoundColumn DataField="FUND" HeaderText="FUND" />
                                        <telerik:GridBoundColumn DataField="ws" HeaderText="WTY_START" />
                                        <telerik:GridBoundColumn DataField="we" HeaderText="WTY_END" />
                                        <telerik:GridBoundColumn DataField="QTY" HeaderText="QTY" />
                                </Columns>
                                <EditFormSettings EditFormType="Template">
                                    <FormTemplate>
                                        <table width="100%">
                                            <tr>
                                                <td style="height:8px"></td>
                                            </tr>
                                            <tr>
                                                <td><b>EDIT DETAILS</b></td>
                                            </tr>
                                        </table>
                                        <table width="100%">
                                            <tr>
                                                <td style="width:50%" align="right">Enter PO </td>
                                                <td style="width:50%" align="left">
                                                    <asp:TextBox ID="txtPoNum" runat="server" Width="160px" Text='<%# Bind("strPoNum") %>'></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="height:5px"></td>
                                            </tr>
                                            <tr>
                                                <td style="width:50%" align="right">Enter AssetTag </td>
                                                <td style="width:50%" align="left">
                                                    <asp:TextBox ID="txtAssetNum" runat="server" Width="160px" Text='<%# Bind("strAssetNum") %>'></asp:TextBox>
                                                </td>
                                            </tr>
                                                <tr>
                                                <td style="height:5px"></td>
                                            </tr>
                                            <tr>
                                                <td style="width:50%" align="right">Enter SN </td>
                                                <td style="width:50%" align="left">
                                                    <asp:TextBox ID="txtSn" runat="server" Width="160px" Text='<%# Bind("strSN") %>'></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="height:5px"></td>
                                            </tr>
                                            <tr>
                                                <td style="width:50%" align="right">Enter Cost </td>
                                                <td style="width:50%" align="left">
                                                    <asp:TextBox ID="txtCost" runat="server" Width="160px" Text='<%# Bind("fltCost") %>'></asp:TextBox>
                                                    <asp:FilteredTextBoxExtender ID="txtCost_FTE" runat="server" Enabled="True" TargetControlID="txtCost" ValidChars="." FilterType="Custom, Numbers" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="height:5px"></td>
                                            </tr>
                                            <tr>
                                                <td style="width:50%" align="right">Warranty Start </td>
                                                <td style="width:50%" align="left">
                                                    <asp:TextBox ID="txtWStart" runat="server" style="cursor:pointer; margin-right: 0px;"  Width="160px" Text='<%# Bind("ws") %>'></asp:TextBox>
                                                    <asp:CalendarExtender ID="txtWStart_CE" runat="server" Enabled="True" TargetControlID="txtWStart"></asp:CalendarExtender>
                                                </td>
                                            </tr>
                                                <tr>
                                                <td style="height:5px"></td>
                                            </tr>
                                            <tr>
                                                <td style="width:50%" align="right">Warranty End </td>
                                                <td style="width:50%" align="left">
                                                    <asp:TextBox ID="txtWEnd" runat="server" style="cursor:pointer; margin-right: 0px;"  Width="160px" Text='<%# Bind("we") %>'></asp:TextBox>
                                                    <asp:CalendarExtender ID="txtWEnd_CE" runat="server" Enabled="True" TargetControlID="txtWEnd"></asp:CalendarExtender>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <asp:LinkButton ID="lnkSubmit" runat="server" text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>' 
                                                    CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'></asp:LinkButton>
                                                          
                                                    <asp:LinkButton ID="lnkCancel" runat="server" CausesValidation="false" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="height:8px"></td>
                                            </tr>
                                        </table>
                                    </FormTemplate>
                                </EditFormSettings>
                            </MasterTableView>
                            </telerik:RadGrid>
Kevin
Top achievements
Rank 1
 answered on 23 Mar 2012
1 answer
106 views
Dear all,

I'm trying to setup a radtooltip that will appear (ShowEvent="OnFocus") when the user clicks on a radDatePicker. I've tried to set the TargetControlID to be the radDatePicker's ID, ID + "_wrapper" and also tried  ID + "_dateInput_text". Is this even possible? If so how can it be done?

Kind regards
Sidharth
Marin Bratanov
Telerik team
 answered on 23 Mar 2012
3 answers
93 views

 

I am experimenting with the Scheduler control that is part of he RadControls for ASP.NET AJAX version 2011.3.1305.35. Our customer has a requirement that the appointments in the month view show on two separate lines. e.g. a time range is on the first line and a name is on the second line. Is it possible to enlarge the appointments inthat particular view?

Thanks in advance.

Dave

Ivana
Telerik team
 answered on 23 Mar 2012
8 answers
104 views
We have had several users with this problem, but I am unable to replicate it on my system.  Near as I can tell, they edit a page, typing in text, save the page, and what is saved is not only the text they have typed but also many <br> tags both between the text that they've typed and after it.  Usually there are 5-21 lines of <br>s between text, but some of them have hundreds of <br>s after the text.  This is rendering our tool unusable.  We are currently using <!-- 2010.1.519.20 -->.  We thought initially that they were pasting from Word, but that is not the case.  We are trying to track users down and gather further information from them, and I'll report back any clarifying info I receive. Initial reports indicate it may be an IE issue and not a FF issue.  Any ideas people may have off the tops of your heads would be helpful.

Thanks!

Laurie
Laurie
Top achievements
Rank 2
 answered on 23 Mar 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?