Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
92 views
Hi.

I have a tabstrip inside a update panel and when it does the postback inside the panel, the tabstrip frozes and I can't select other tabs in the tabstrip.
my page is something like this

<asp:UpdatePanel ID="UpdLocType" runat="server" UpdateMode="Conditional">
 <Triggers>
  <asp:AsyncPostBackTrigger ControlID="gvLocType" EventName="SelectedIndexChanged" />
 </Triggers>
 <ContentTemplate>
  <asp:GridView id="gvLocType" .....
  </asp:GridView>
 </ContentTemplate>
</asp:UpdatePanel> 
<asp:UpdatePanel ID="UpdGroup" runat="server" UpdateMode="Conditional">
 <Triggers>
  <asp:AsyncPostBackTrigger ControlID="gvLocType" EventName="SelectedIndexChanged" />
  <asp:AsyncPostBackTrigger ControlID="gvGroup" EventName="SelectedIndexChanged" />
 </Triggers>
 <ContentTemplate>
  <asp:GridView ID="gvGroup" ......
  </asp:GridView>
 </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdItems" runat="server" UpdateMode="Conditional" >
 <Triggers>
  <asp:AsyncPostBackTrigger ControlID="gvLocType" EventName="SelectedIndexChanged" />
  <asp:AsyncPostBackTrigger ControlID="gvGroup" EventName="SelectedIndexChanged" />
 </Triggers>
 <ContentTemplate>
  <radTS:RadTabStrip runat="server" ID="familyTabs" Align="left" Skin="Office2007"
                                Width="100%" MultiPageID="itemsMultipage" ReorderTabRows="false" >
  </radTS:RadTabStrip>
  <radTS:RadMultiPage ID="itemsMultipage" runat="server" Height="500" >
  </radTS:RadMultiPage>                             
 </ContentTemplate>
</asp:UpdatePanel>

in the first 2 panels i have a gridview and when selectedindex is fired then updates the panel with the tabstrip. that tabstrip is populated with a datasource and the pageviews are build dinamically  with a sub that ads a gridview to the

pageview. the first time on load it goes well but after that it won't let change the selected tab. can anyone help??

Private Sub setPageViews(ByVal type As Integer, ByVal group As String, ByVal family As String)

 Dim view As New PageView

 For Each Tab As Tab In familyTabs.Tabs 

         gv = New GridView
             ....
  

             gv.DataSource = someDataSouce
             gv.DataBind()
  
            view.ID = Tab.Text
             ab.PageViewID = view.ID
             view.Controls.Add(gv)
             itemsMultipage.PageViews.Add(view)

          

        Next

    End Sub


Nuno
Top achievements
Rank 1
 asked on 09 Nov 2011
1 answer
589 views
I have a RadListView and within the listview I have an asp.net linkbutton. I want to dynamically set the linkbutton's PostBackUrl. I can achieve this if I find the linkbutton control in the listview's ItemDataBound event. But by doing this when I end up clicking on the linkbutton the listview ItemCommand event is not being fired. I need the itemCommand even to be fired so I can take the datakeyvalue of the item clicked and set it into a session variable to pass to teh postbackurl page of the link button.

<telerik:RadListView ID="lstVwWebpageList" runat="server" EnableViewState="true" ItemPlaceholderID="webpageContainer" AllowPaging="true" DataKeyNames="id" Skin="WebBlue" OnItemDataBound="lstVwWebpageList_ItemDataBound" OnPageIndexChanged="lstVwWebpageList_PageChange" Width="607px" OnItemCommand="lstVwWebpageList_ItemCommand">
    <LayoutTemplate>
        <table cellpadding="0" cellspacing="0">
            <tr>
            <td>
                <asp:PlaceHolder ID="webpageContainer" runat="server" />
            </td>
            </tr>
            <tr>
            <td>
            <telerik:RadDataPager ID="Pager" runat="server" PagedControlID="lstVwWebpageList" PageSize="50" Skin="WebBlue">
                <Fields>
                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                    <telerik:RadDataPagerButtonField FieldType="Numeric" />
                    <telerik:RadDataPagerButtonField FieldType="NextLast" />
                </Fields>
            </telerik:RadDataPager>
            </td>
            </tr>
        </table>
    </LayoutTemplate>
     
    <ItemTemplate>
        <fieldset style="float: left; width: 300px;">
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="width: 25%;">
                                    <b>Name:</b>
                                </td>
                                <td style="width: 75%;">
                                    <asp:Label ID="lblName" runat="server" Text='<%# Eval("name") %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 25%;">
                                    <b>Page:</b>
                                </td>
                                <td style="width: 75%;">
                                    <asp:LinkButton ID="pagenameLink" runat="server" CommandName="LinkClicked" Text='<%# Eval("pagename") %>'></asp:LinkButton>                                   
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </fieldset>
    </ItemTemplate>
</telerik:RadListView>


protected void lstVwWebpageList_ItemDataBound(object sender, RadListViewItemEventArgs e)
   {
       LinkButton link = (LinkButton)e.Item.FindControl("pagenameLink");
       Label lblname = (Label)e.Item.FindControl("lblName");
 
       link.PostBackUrl = "EditWebpage.aspx?name=" + lblname.Text + "&page=" + link.Text;
 
       //RadListViewDataItem item = (RadListViewDataItem)e.Item;
       //Session["linkID"] = item.DataItem;// Convert.ToInt32(item.OwnerListView.DataKeyValues[item.DisplayIndex]["id"]);
   }
 
   protected void lstVwWebpageList_ItemCommand(object sender, RadListViewCommandEventArgs e)
   {
       if (e.CommandName == "LinkClicked")
       {
           RadListViewDataItem item = (RadListViewDataItem)e.ListViewItem;
           Session["linkID"] = item.DataItem;// Convert.ToInt32(item.OwnerListView.DataKeyValues[item.DisplayIndex]["id"]);
       }
   }
Tsvetoslav
Telerik team
 answered on 09 Nov 2011
1 answer
163 views
Hi, 
I'm trying to make a table non editable in the radeditor in ie8+, below is a sample of the content of the editor.
When I have a doctype in the content it is possible to edit everything, with out the doctyps it behaves as expected.
It would be great if you could help me figure out how to get the  there a way to get contentEditable="false" functioning and include the doctype.

thanks

<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <style>
    .unselect{
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -o-user-select: none;
        user-select: none;
        }
    </style>
    </head>
    <body class="A4" id="editorBody" style="background-image: url(/images/rightmargin.png); min-width: 170mm; padding-bottom: 5mm; min-height: 297mm; padding-left: 20mm; width: 170mm; padding-right: 20mm; background-repeat: repeat-y; background-position: 191mm 0mm; height: 100%; padding-top: 5mm;">
        <span contenteditable="false" unselectable="on" class="unselect">
        <table class="EmbeddedTable unselect" style="width: 210mm;" contenteditable="false" unselectable="on" cellpadding="3">
            <colgroup><col style="text-align: left; width: 30mm; vertical-align: top;" />
            <col style="text-align: left; width: 30mm; vertical-align: top;" />
            <col style="text-align: left; width: 30mm; vertical-align: top;" />
            <col style="text-align: left; width: 30mm; vertical-align: top;" />
            <col style="text-align: left; width: 30mm; vertical-align: top;" />
            <col style="text-align: left; width: 30mm; vertical-align: top;" />
            <col style="text-align: left; width: 30mm; vertical-align: top;" />
            </colgroup>
            <thead  class="unselect" style="font-style: normal; font-family: arial; font-size: 8pt; font-weight: bold; text-decoration: none;">
                <tr>
                    <td  class="unselect" style="text-align: center; width: 210mm; font-family: arial;" contenteditable="false" colspan="7" unselectable="on">
                    <p class="tableP unselect" style="text-align: center; font-weight: bold; text-decoration: none;" contenteditable="false" unselectable="on">not editable</p>
                    </td>
                </tr>
                <tr>
                    <td class="DesignColumnHeader unselect" style="width: 30mm;" contenteditable="false" unselectable="on">
                        <p class="tableP unselect" style="font-weight: bold; text-decoration: none;" contenteditable="false" unselectable="on">not editable</p>
                    </td>
                    <td class="DesignColumnHeader unselect" style="width: 30mm;" contenteditable="false" unselectable="on">
                        <p class="tableP unselect"  style="font-weight: bold; text-decoration: none;" contenteditable="false" unselectable="on">not editable</p>
                    </td>
                    <td class="DesignColumnHeader unselect" style="width: 30mm;" contenteditable="false" unselectable="on">
                        <p class="tableP unselect" style="font-weight: bold; text-decoration: none;" contenteditable="false" unselectable="on">not editable</p>
                    </td>
                    <td class="DesignColumnHeader unselect" style="width: 30mm;" contenteditable="false" unselectable="on">
                        <p class="tableP unselect" style="font-weight: bold; text-decoration: none;" contenteditable="false" unselectable="on">not editable</p>
                    </td>
                    <td class="DesignColumnHeader unselect" style="width: 30mm;" contenteditable="false" unselectable="on">
                        <p class="tableP unselect" style="font-weight: bold;" contenteditable="false" unselectable="on">not editable</p>
                    </td>
                    <td class="DesignColumnHeader unselect" style="width: 30mm;" contenteditable="false" unselectable="on">
                        <p class="tableP unselect" style="font-weight: bold;" contenteditable="false" unselectable="on">not editable</p>
                    </td>
                    <td class="DesignColumnHeader unselect" style="width: 30mm;" contenteditable="false" unselectable="on">
                        <p class="tableP unselect" style="font-weight: bold;" contenteditable="false" unselectable="on">not editable</p>
                    </td>
                </tr>
            </thead>
            <tbody>
            </tbody>
        </table>
        </span>
    </body>
</html>
Rumen
Telerik team
 answered on 09 Nov 2011
0 answers
83 views
Hello,

I have configured my site on II7 but the filters on the Rad Grid and the Calenders are not working, I am not able to get any filter option on click of filter icon. But it is working fine when I run my site on ASP.Net development server.
Please response at your earliest.
Mona
Top achievements
Rank 1
 asked on 09 Nov 2011
2 answers
163 views
Hello,

We have created a web page that uses a RadMenu as a means of navigation. We also use the RadAlert to display message to the user. However, when the RadAlert window is display (and the parent page is disabled) the RadMenu control is still accessible. 
ASPX code:
<telerik:RadWindowManager ID="WindowManager" runat="server" />
<
table >
    <tr>
        <td  valign="top">
            <telerik:RadMenu ID="RadMenu1" Runat="server" Flow="Vertical">
                <Items>
                    <telerik:RadMenuItem Text="item 1">
                        <Items>
                            <telerik:RadMenuItem Text="sub 1 1" />
                            <telerik:RadMenuItem Text="sub 1 2" />
                            <telerik:RadMenuItem Text="sub 1 3" />
                        </Items>
                    </telerik:RadMenuItem>
                 
                    <telerik:RadMenuItem Text="item 2">
                        <Items>
                            <telerik:RadMenuItem Text="sub 2 1" />
                            <telerik:RadMenuItem Text="sub 2 2" />
                            <telerik:RadMenuItem Text="sub 2 3" />
                        </Items>
                    </telerik:RadMenuItem>
                     
                    <telerik:RadMenuItem Text="item 3">
                        <Items>
                            <telerik:RadMenuItem Text="sub 3 1" />
                            <telerik:RadMenuItem Text="sub 3 2" />
                            <telerik:RadMenuItem Text="sub 3 3" />
                        </Items>
                    </telerik:RadMenuItem>
                </Items>
             
            </telerik:RadMenu>
        </td>
        <td valign="top">
            stuff<br />
            <asp:Button ID="btnAlert" runat="server" Text="Alert"
                onclick="btnAlert_Click" />
        </td>
    </tr>
</table>
C# code:
/// <summary>
/// Recursively searches for a control with the specified ID.
/// </summary>
protected Control FindControl(Control control, string id)
{
    Control foundControl = control.FindControl(id);
 
    if (foundControl == null)
    {
        for (int index = 0; index < control.Controls.Count; index++)
        {
            Control childControl = control.Controls[index];
 
            foundControl = FindControl(childControl, id);
 
            if (foundControl != null)
            {
                break;
            }
        }
    }
 
    return foundControl;
}
 
protected void btnAlert_Click(object sender, EventArgs e)
{
    RadWindowManager windowManager =
           FindControl(this, "WindowManager") as RadWindowManager;
 
    if (windowManager != null)
    {
        windowManager.RadAlert("message", 400, null, "title", null);
    }
}

I've tried setting RadMenu1.Enabled = false; before the RadAlert() is called (which works), but the RadMenu does not look correct. The z order of the RadMenu is still above everything else.

Does anybody know how to disable the RadMenu when the RadAlert window is displayed (and enable the RadMenu when the RadAlert window is closed)?

Thanks,

Matt
Matt
Top achievements
Rank 1
 answered on 09 Nov 2011
4 answers
167 views
I can't use TreeList OnItemDblClick Event,give me this error.


"Sys.InvalidOperationException: 'ıtemDblClick' is not an event."

My Codes Here:


<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

    <script type="text/javascript">

        function OnItemDblClick(sender, eventArgs) {
            var item = eventArgs.get_item();
            var message =item.get_displayIndex();
           
        }

    </script>

</telerik:RadCodeBlock>


<telerik:RadTreeList ID="RDLIST" runat="server" Culture="Turkish (Turkey)">
    <ClientSettings>
        <Selecting AllowItemSelection="True" />
      <ClientEvents OnItemDblClick="OnItemDblClick" />
    </ClientSettings>
</telerik:RadTreeList>

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="false">
</telerik:RadScriptManager>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
    EnableHistory="True">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RDLIST">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RDLIST" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>




CODEBEHIND:



DataTable  DT;
DataClass dataclass = new DataClass();

 protected void Page_Load(object sender, EventArgs e)
    {

        DT = dataclass.SELECTSQL("MENU", "MENUNAME,ID,CID", "", "", "");

        RDLIST.DataKeyNames = new string[] {"ID"};
        RDLIST.ParentDataKeyNames = new string[] {"CID"};

        RDLIST.DataSource = DT;
        RDLIST.DataBind();

    }
  

Pavlina
Telerik team
 answered on 09 Nov 2011
4 answers
133 views
Hi guys,

After upgrading to telerik 2011.2.915.20 I have found out two bugs related to File Explorer.

Steps to reproduce:
  • Open file explorer
  • Click 'Upload'
  • CLOSE window.
  • Click 'Upload' again.
  • first bug: In Firefox horizontal scroll is appear.
  • Click 'Add' few times (7-8) and in Chrome this window looks like in attached screenshot.

Reproduced on telerik's demo site.

Any suggestions how to fix this?

Thanks in advance,
Ernesto.
Ernesto
Top achievements
Rank 1
 answered on 09 Nov 2011
1 answer
91 views
Hi...
When I press the button "Add new record" integrated in the RadGrid I enter (1°position in the Call Stack) in the NeedDataSource method.

My question is "is it possible know which event run before? If I press the Add Button or a simply Autopostaback of other control in the page? Exist a property of RadGrid that indicate me that the Add Button is pressed ?".

 Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 09 Nov 2011
2 answers
110 views
Hi
I have been upgrading an appication from Asp.Net to Asp.Net Ajax. But I'm having trouble making the ajax part working.
All I get is this error:
"Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled." 

As soon as I add a Ajaxsetting programatically or through html I get the same error. 

I have been stuck on this error some while now. I have browsed the forum for help, but cant seem to find a solution to my problem.

Adding a simple page that produces this error

Please help

staleb
Top achievements
Rank 1
 answered on 09 Nov 2011
1 answer
148 views
Hi,

We are having problems with horizontal lines not being aligned in the Scheduler (see attached image not_aligned.png - note that the red areas in the image are appointments that have visible=false and a red background). The mark-up for our Scheduler is:

<telerik:RadScheduler runat="server" ID="CalendarScheduler" DayStartTime="06:00:00" Culture="da-DK" AllowEdit="False" AllowDelete="False" GroupBy="User" DayEndTime="20:00:00" TimeZoneOffset="02:00:00" DataKeyField="ID" Format="HH:mm" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" InsertingInAdvancedForm="True" OverflowBehavior="Expand" ColumnWidth="50px" SelectedView="WeekView" ShowAllDayRow="False" ShowViewTabs="False" Height="414px" OnClientAppointmentInserting="OnClientAppointmentInserting" RowHeight="12px" OnAppointmentDataBound="RadScheduler1_OnAppointmentDataBound" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated" OnFormCreating="RadScheduler1_OnFormCreating" NumberOfHoveredRows="3" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" OnResourceHeaderCreated="RadScheduler1_ResourceHeaderCreated">

It seems that the misaligned lines causes appointments to be misaligned as well: See attached image appointments.png. The three purple appointments should fill out the entire white areas (the appointment data indicates this when we debug) but they do clearly not.

Any ideas?
Plamen
Telerik team
 answered on 09 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?