Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
123 views
I have multiple ajaxsettings where I want certain items to be updated, but it appears that items I haven't specified to be updated are being updated.

Here is an example:
var designSetting = new AjaxSetting(SelectDesignControl.ListControl.UniqueID);
designSetting.UpdatedControls.Add(new AjaxUpdatedControl(SelectProductControl.UniqueID, string.Empty));
designSetting.UpdatedControls.Add(new AjaxUpdatedControl(SelectInsertControl.UniqueID, string.Empty));
designSetting.UpdatedControls.Add(new AjaxUpdatedControl(HeroPanel.UniqueID, string.Empty));
designSetting.UpdatedControls.Add(new AjaxUpdatedControl(AddToBagControl.UniqueID, string.Empty));
ajaxManager.AjaxSettings.Add(designSetting);

var productSetting = new AjaxSetting(SelectProductControl.ListControl.UniqueID);
productSetting.UpdatedControls.Add(new AjaxUpdatedControl(SelectInsertControl.UniqueID, string.Empty));
productSetting.UpdatedControls.Add(new AjaxUpdatedControl(HeroPanel.UniqueID, string.Empty));
productSetting.UpdatedControls.Add(new AjaxUpdatedControl(AddToBagControl.UniqueID, string.Empty));
ajaxManager.AjaxSettings.Add(productSetting);

When selectproductcontrol.listcontrol is fired I don't want it to update itself, but it does. If i comment it out of the designsetting then it doesn't update. I need to have it included in that setting though.

I believe this is because the selectproductcontrol is wrapped in an updatecontrol since it is part of the previous setting. Is there anyway to make it so the selectproductcontrol is not updated when an event in it is fired?
Iana Tsolova
Telerik team
 answered on 15 Nov 2011
1 answer
156 views
Hi,
I have a RadGrid with some columns like edit, delete, other autogenerated columns. I want to add a listbox in editform dynamiclly.
Now I create dynamically a templatecolumn in radgrid that is not visible, then when I click to edit I see my ListBox and the other fields but there is a problem because if I click "Update" or "Cancel" the edit crash and you do not ecape from edit form pop-up.
Another problem is that when I go to edit form, the listbox column appear in the radgrid.

Thanks

joff

Elliott
Top achievements
Rank 2
 answered on 15 Nov 2011
2 answers
98 views
I have an radtext box as a field in a list box. I am not sure how I go about getting that field to update. After the user fills in the field, what could I use to trigger the update?

See screen show of what it looks like

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReviewFormProjects.aspx.cs" Inherits="Helpers.RFP" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head id="Head1" runat="server">
    <link href="ReviewFormProjects.css" rel="stylesheet" type="text/css" />
     
    <style type="text/css">
     /* The default display: inline needs to be overrided to resize the container to hold with the content */
     div.RadListBox .rlbTemplate
     {
         display: inline-block;
     }
    </style>
    <title>test</title>
</head>
<body class="BODY">
    <form runat="server" id="mainForm" method="post">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
        <div class="example-panel">
            <div class="order-panel">
                <label class="product-list">
                    Avalible Projects to choose</label>
                <label class="detail">
                    Associate with application</label>
                   <%-- OnTransferred="RadListBox1_Transferred"--%>
                 <%--  TransferMode="Copy"--%>
                <telerik:RadListBox ID="RadListBox1" runat="server" AllowTransfer="True" AutoPostBackOnTransfer="True" DataValueField="ProjectNameID"
                    Height="200px" SelectionMode="Multiple" AllowTransferDuplicates="true"
                    TransferToID="RadListBox2" Width="215px" DataSourceID="ProjectNamesList" DataKeyField="ProjectNameID" DataTextField="ProjectName" DataSortField="ProjectName" OnTransferred="RadListBox1_Transferred" TransferMode="Copy">
                    <ButtonSettings ShowTransferAll="false" VerticalAlign="Middle" />
 
                </telerik:RadListBox>
                <telerik:RadListBox runat="server" ID="RadListBox2" Height="200px" Width="270px" AllowTransfer="True"
                    SelectionMode="Multiple" DataSourceID="ProjectUpdates" DataKeyField="ProjectNameID" DataTextField="ProjectName" DataValueField="ProjectNameID"  AllowDelete="True"
   AutoPostBackOnDelete="true"
   AllowAutomaticUpdates="true" AllowTransferDuplicates="true">
                    <ItemTemplate>
                        <span class="detail-title">
                        <ul class="details">
                            <li>
                                <%--<label> <%# DataBinder.Eval(Container, "Text")%>:</label>--%>
                                <telerik:RadTextBox runat="server" ID="ProjectNameIDTextBox" Width="150px" Text='<%# Bind("ProjectID") %>' Label='<%# Bind("ProjectName") %>'/>
                            </li>
                        </ul>
                    </ItemTemplate>
 
                </telerik:RadListBox>
            </div>
        </div>
    </telerik:RadAjaxPanel>
 
    <asp:SqlDataSource ConnectionString="<%$ ConnectionStrings:PreQual_DEV_ConnectionString %>"
        ID="ProjectNamesList" runat="server" SelectCommand="SELECT ProjectNameID, ProjectName FROM PublicFormProjectNames">
    </asp:SqlDataSource>
 
   <asp:SqlDataSource ConnectionString="<%$ ConnectionStrings:PreQual_DEV_ConnectionString %>"
        ID="ProjectUpdates" runat="server"
        SelectCommand="SELECT     PN.ProjectName, P.ID, P.ProjectNameID, P.ProjectID, P.FormID
FROM         PublicFormProjectNames AS PN INNER JOIN
                      PublicFormProjects AS P ON PN.ProjectNameID = P.ProjectNameID WHERE FormID = 1"
        DeleteCommand="DELETE FROM [PublicFormProjects] WHERE [ID] = @ID"
        InsertCommand="INSERT INTO [PublicFormProjects] ([FormID], [ProjectNameID], [ProjectID]) VALUES (@FormID, @ProjectNameID, @ProjectID)"
        UpdateCommand="UPDATE [PublicFormProjects] SET [ProjectNameID] = @ProjectNameID, [ProjectID] = @ProjectID WHERE [ID] = @ID"
        >
       <UpdateParameters>
            <asp:ControlParameter Name="ProjectNameID" Type="String" controlid="ProjectNameIDTextBox" />
            <asp:Parameter Name="ProjectID" Type="Int32" />
        </UpdateParameters>
        <DeleteParameters>
            <asp:Parameter Name="ID" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="ProjectID" Type="String"/>
            <asp:ControlParameter Name="ProjectNameID" Type="Int32" controlid="RadListBox1" propertyname="SelectedValue" />
            <asp:Parameter Name="FormID" Type="Int32" DefaultValue="1" />
        </InsertParameters>
    </asp:SqlDataSource>
 
    </form>
</body>
</html>

Peter Filipov
Telerik team
 answered on 15 Nov 2011
2 answers
127 views
Hello,
is it possible to use more than one AppointmentTemplate inside a RadScheduler object?

For example use one AppointmentTemplate with the DayView and a second AppointmentTemplate when using the MonthView ?

If this is not possible, is it a possible workaround to use two RadScheduler objects with different AppointmentTemplates and to switch the RadScheduler objects when changing the view (and synchronize both of them with the same database or xml file ...)?
Richard
Top achievements
Rank 1
 answered on 15 Nov 2011
3 answers
117 views
Hi,

I am trying to create my own filter template for a certain column in RadGrid dynamically. I tried to do this on Load/Render/init, still to no avail.

myColumn.FilterTemplate = new CustomGridTemplate();

...
public class CustomGridTemplate: ITemplate
    {
        public CustomGridTemplate()
        {
        }

        public void InstantiateIn(System.Web.UI.Control container)
        {
            TextBox tbx = new TextBox();
            tbx.Text = "Test";
            container.Controls.Add(tbx);
        }
   }

The grid filter shows up with the standard controls for that column - the breakpoint in CustomGridTemplate class constructor doesn't even get hit. I've seen an example for regular templated columns, but I am using AutoGeneratedColumns. I would appreciate your comments.
Pavlina
Telerik team
 answered on 15 Nov 2011
3 answers
160 views
Hi,

I'm using the AdaptiveRowHeight="true" property within the Month view.  This setting throws up a few problems.  If there are no appointments at all on a row then the whole week row ends up with virtually no height and makes the scheduler look very unbalanced if a subsequent week row has some entries.

Is there a way to set a minimum number of rows that will be displayed even if there is no data for that week?

Regards,

Jon
Plamen
Telerik team
 answered on 15 Nov 2011
2 answers
127 views
Dear Telerik Team,

I have the following snippet of code which is located in the postback section of Page_Load. Two checkboxes were checked but it still shows 'false'. 

'Attempt reading the SelectedItems Before the Grid Repaints
            If (Me.IsPostBack) Then
                SPID= String.Empty
                For Each gi As GridDataItem In rgp.Items
                    Dim objValueCheckbox As Object = gi.FindControl("boolValue")
                    If (Not objValueCheckbox Is Nothing) Then
                        If (objValueCheckbox.GetType().Name = "CheckBox") Then
                            Dim chkValueCheckbox As CheckBox = DirectCast(objValueCheckbox, CheckBox)
                            If Not chkValueCheckbox.Attributes("PID") Is Nothing Then
                                If (chkValueCheckbox.Checked) Then
                                    SPID= SPID& chkValueCheckbox.Attributes("PID") & ","
                                End If
                            End If
                        End If
                    End If
                Next


                SPID= SPID.TrimEnd(",")
            End If
Deepak Vasudevan
Top achievements
Rank 2
 answered on 15 Nov 2011
2 answers
139 views
Hi Telerik Team,

I am adding different tabs in existing tab of RadTabStrip dynamically, but i am unable to see the tabs in existing tab.

Can you please provide me the proper solution on above scenario.?


Thanks and Regards,
Simon.
Kate
Telerik team
 answered on 15 Nov 2011
1 answer
68 views
I'm using the WebBlue theme with a tabstrip in the current release. When I have three tabs, the third one has a single-pixel vertical line spanning the entire top/bottom height of the tab.  This occurs with the default CSS:

.RadTabStrip .rtsOut, .RadTabStripVertical .rtsOut {
  display: block;
  padding-right: 11px;
}

If I manually change the value of padding-right to anything from 7 to 11, I see the line. Outside of that range, no line.  The first two tabs don't have the line. .... weird...

This is in FireFox 3.6.13, didn't see it in IE8.
Kate
Telerik team
 answered on 15 Nov 2011
1 answer
82 views
I have a form (shown in the attachment) that has a fixed header and footer but the middle section should re-size with the browser window. How do is do this?

The form is made is using the code bwlow:
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Sitefinity"
    MinDisplayTime="200">
    <asp:Label ID="Label2" runat="server" ForeColor="Red">Loading... </asp:Label>
</telerik:RadAjaxLoadingPanel>
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Sitefinity">
</telerik:RadSkinManager>
<telerik:RadSplitter ID="rsMain" runat="server" VisibleDuringInit="false" Width="100%" Height="100%"
    Orientation="Horizontal" EnableEmbeddedSkins="False" Skin="splitter_2">
    <telerik:RadPane ID="rpTop" runat="server" CssClass="ApplyOverflow" Height="50px"
        Width="100%" Scrolling="None">
    </telerik:RadPane>
    <telerik:RadPane ID="rpMiddle" runat="server" Height="800px" Width="100%" Scrolling="None">
        <telerik:RadSplitter ID="rsMiddle" runat="server" Width="100%" Height="100%" EnableEmbeddedSkins="False"
            Skin="splitter_2">
            <telerik:RadPane ID="rpMiddleLeft" runat="server" Width="20%" Height="100%" PersistScrollPosition="true">
                <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal">
                    <telerik:RadPane ID="rpMiddleLeftTop" runat="server">
                     </telerik:RadPane>
                    <telerik:RadSplitBar ID="RadSplitBar2" runat="server" CollapseMode="Both" Visible="true" />
                    <telerik:RadPane ID="rpMiddleLeftMiddle" runat="server" Height="45%"
                        Visible="true" PersistScrollPosition="true">
                    </telerik:RadPane>
                    <telerik:RadSplitBar ID="RadSplitBar3" runat="server" CollapseMode="Both">
                    </telerik:RadSplitBar>
                    <telerik:RadPane ID="rpMiddleLeftBottom" runat="server"  Height="10%">
                      </telerik:RadPane>
                </telerik:RadSplitter>
                </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server"
                    CollapseMode="Forward" />
            <telerik:RadPane ID="rpMiddleRight" runat="server" Width="80%" Height="100%" PersistScrollPosition="true">
            </telerik:RadPane>
        </telerik:RadSplitter></telerik:RadPane>
    <telerik:RadPane ID="rpBottom" runat="server" Height="20px" Width="100%" Scrolling="None">
        <div style="text-align: center; background-color: #f5be19;">
            Version 4, ip3 Copyright (c) 1999-2011 Intuitive Solutions Group Inc.</div>
    </telerik:RadPane>
    <telerik:RadPane ID="rpPlatform" runat="server" Visible="false">
    </telerik:RadPane>
</telerik:RadSplitter>
Dobromir
Telerik team
 answered on 15 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?