Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
60 views
[Edit: Nevermind, I figured out a solution.]
lantram
Top achievements
Rank 1
 asked on 07 Jul 2011
2 answers
201 views
I have a TreeView control that renders correctly on my page (style gets applied). However, if I add a context menu to the page my style does not get loaded for the TreeView (it renders as bullet points).

Note: My context menu is for a different control on the page, not for the treeview.

I am assuming this has something to do with both controls using the <ul> element, how can I have both controls on the same page without this rendering issue?

<telerik:RadContextMenu ID="cm1" runat="server" >
    <Items>
        <telerik:RadMenuItem  Value="EDIT" ImageUrl="~/images/edit.gif"></telerik:RadMenuItem>
        <telerik:RadMenuItem Value="DELETE" ImageUrl="~/images/delete.gif"></telerik:RadMenuItem>
    </Items
    <Targets>
        <telerik:ContextMenuControlTarget ControlID="lbtnAddNewRule" />
    </Targets>
</telerik:RadContextMenu>
<asp:LinkButton ID="lbtnAddNewRule" runat="server"></asp:LinkButton>
<telerik:RadTreeView runat="server" ID="tvSelectedUsersA"  Width="200px" Height="200px"  Skin="Default">
 </telerik:RadTreeView>
Laine
Top achievements
Rank 1
 answered on 07 Jul 2011
4 answers
216 views
I want a menu to Expand and Collapse on mouse click .
 How an i do it
 ? 


Thank you.
Sunil
Top achievements
Rank 1
 answered on 07 Jul 2011
1 answer
43 views

I have a Telerik tree and drag & drop node move is in action. But then I applied a theme (bought from somewhere) to the overall design of my site, and now, the hint are gone. When you drag a node, some horizontal hint lines appear, so that you can understand that if you release your node (drop it) where it would be dropped.


Plamen
Telerik team
 answered on 07 Jul 2011
4 answers
127 views
Hi,

I'm trying to make the max time that an event can be to 23:59. Even though I set:

DayStartTime="00:00:00" DayView-WorkDayStartTime="00:00:00" DayEndTime="23:59:59"
            DayView-WorkDayEndTime="23:59:59"
 or
DayStartTime="00:00:00" DayView-WorkDayStartTime="00:00:00" DayEndTime="23:59:00"
            DayView-WorkDayEndTime="23:59:00"

In AppointmentUpdate when I try to access EndTime (e.ModifiedAppointment.End.TimeOfDay) I get 12:00:00AM when it should be 23:59:59PM.

Is this a bug, or am I doing it wrong?

Thanks,
Daryl
Plamen
Telerik team
 answered on 07 Jul 2011
4 answers
212 views
Hi,

I have a master page whenere my RadAjaxManager is added and in the content pages, I have RadAjaxManagerProxy .
Now I need to display success/failure messages on the content page events like (button clicks , grid update/ combobox changed etc)  in a Label in MasterPage.
Right now I am wiring each control which can cause a failure/success message to the RadAjaxManager using the following code:
 RadAjaxManager AjaxManager = (RadAjaxManager)this.Master.FindControl("RadAjaxManager1");
        //AjaxManager.AjaxSettings.AddAjaxSetting(RadButton1, Label1);

        Label lblMessage = (Label)this.Master.FindControl("lblMessage");
        AjaxManager.AjaxSettings.AddAjaxSetting(RadButton1, lblMessage);

This code works fine. But my concern is that in future we may add more buttons/grids/combo boxes in the page. Then I need to add the above code for all controls which may not a scalable solution.  A new programmer may not know about the need to wire control as above.

So I was wondering if there is a way to do a generic wiring so that any event happening in the content page can update the label in the master page which is a common scenario.
I have a custom base class for all the pages. So a solution in the base class which will work for all the pages and future pages will be really great.
 
Any thoughts? Any help will be much appreciated. Thanks a lot..

Nishanth
Top achievements
Rank 1
 answered on 07 Jul 2011
0 answers
75 views
We got a report of Visual Studio crashes still happening due to a bug in the Q1 2010 release of the VSExtensions (2010.1.309).

Running the attached patch by having Visual Studio closed first will help fix the problem.

Best regards,
Erjan Gavalji
Telerik

P.S. Thanks Anthony C. for helping us with this one.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 07 Jul 2011
2 answers
102 views
mega drop down dosn't matched to rtl 
right?
i atached picture
Kate
Telerik team
 answered on 07 Jul 2011
1 answer
147 views
I am using Advanced databinding method. When yapAfter button is clicked I add an item to my List stored in the session according to the specific index and I rebind my List. Also in NeedData Source event my List stored in the session is binded. There is no problem when Allowpaging is off in Listview. However when I turn on Allowpaging the items I added last to my List comes out at the beginning of the List. They are not listed according to the Index I assigned while adding.  

Thanks,
Regards.

<telerik:RadListView ID="RadListView1" runat="server" ItemPlaceholderID="ProductsHolder"
            OnNeedDataSource="RadListView1_NeedDataSource" OnItemDataBound="RadListView1_ItemDataBound"
            OnItemCommand="RadListView1_ItemCommand" DataKeyNames="RID">
            <LayoutTemplate>
                <asp:Panel ID="ProductsHolder" runat="server" />
                <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="RadListView1"
                    PageSize="50" AllowSEOPaging="False" AllowRouting="False">
                    <Fields>
                        <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                        <telerik:RadDataPagerButtonField FieldType="Numeric" />
                        <telerik:RadDataPagerButtonField FieldType="NextLast" />
                        <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
                        <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                            TextBoxWidth="15" />
                        <telerik:RadDataPagerTemplatePageField>
                            <PagerTemplate>
                                <div style="float: right">
                                    <b>Items
                                        <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                        to
                                        <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>" />
                                        of
                                        <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                        <br />
                                    </b>
                                </div>
                            </PagerTemplate>
                        </telerik:RadDataPagerTemplatePageField>
                    </Fields>
                </telerik:RadDataPager>
            </LayoutTemplate>
            <ItemTemplate>
                <div id="segment<%#Eval("RID") %>" class="segment">
                    <table>
                        <tr>
                            <td style="width: 50px">
                                <telerik:RadButton ID="RadButton1" runat="server" Text="X" CommandName="deleteSegment">
                                </telerik:RadButton>
                                <input name="Button11" type="button" onclick="javascript:deleteSegment('#segment<%#Eval("RID") %>');"
                                    value="X" />
                            </td>
                            <td style="width: 100%">
                                <textarea id="sourceTextarea" name="sourceTextarea" style="width: 98%"><%#Eval("Segment") %></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                   
                            </td>
                            <td>
                                <telerik:RadButton ID="RadButton2" runat="server" Text="+" CommandName="yapAfter">
                                </telerik:RadButton>
                                <input name="Button11" type="button" onclick="javascript:yapAfter_source('#segment<%#Eval("RID") %>');"
                                    value="+" />
                                <input name="Button11" type="button" onclick="javascript:splitSegment('#segment<%#Eval("RID") %>');"
                                    value="-/-" />
                                <input name="Button11" type="button" onclick="javascript:segmentMerge('#segment<%#Eval("RID") %>');"
                                    value=">|<" />
                            </td>
                        </tr>
                    </table>
                </div>
            </ItemTemplate>
        </telerik:RadListView>


protected void RadListView1_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
    {
        if (!IsPostBack)
        {
            if (String.IsNullOrEmpty(HiddenField1.Value))
                return;
            decimal m_ProjectRef = Convert.ToDecimal(HiddenField1.Value);
            List<prepdata> mList = new List<prepdata>();
            mList = PreprocessHelperDB.getDataSource(m_ProjectRef);
            Session["myList"] = mList;
            RadListView1.DataSource = mList;
        }
        else
        {
            List<prepdata> mList = (List<prepdata>)Session["myList"];
            RadListView1.DataSource = mList;
        }
              
  
    }
  
protected void RadListView1_ItemCommand(object sender, RadListViewCommandEventArgs e)
    {
  
if (String.Equals(e.CommandName, "yapAfter"))
        {
            decimal m_ProjectRef = Convert.ToDecimal(HiddenField1.Value);
  
            RadListViewDataItem dataItem = (RadListViewDataItem)e.ListViewItem;
  
            List<prepdata> mList = new List<prepdata>();
            mList = (List<prepdata>)Session["myList"];
  
            mList.Insert(0, new prepdata { Segment = "asdsadaAA index:" + 0});
  
            mList.Insert(1, new prepdata { Segment = "asdsadaAA:" + 1 });
  
            mList.Insert(5, new prepdata { Segment = "asdsadaAA:" + 5 });
  
            Session.Remove("myList");
  
            Session["myList"] = mList;
  
            RadListView1.Rebind();
  
        }
    }


Pavlina
Telerik team
 answered on 07 Jul 2011
2 answers
94 views
Dear Telerik Team,

In my VS2010 solution, I refer to the newest telerik .dll libraries:
- Telerik.Web.UI.dll (version 2011,1,519,40)
- Telerik.Web.Design.dll (version 2011,1,519,40)

My VS2010 designer have nearly permanently problem to show the RadChart (and not only the RadChart) in the design of my aspx page. Refresh helps, however sometimes... :(

After drag-and-drop from Toolbox, the designer produces this error message:
"Error Creating Control - RadChart1[A]Telerik.Web.UI.RadChart cannot be cast to [B]Telerik.Web.UI.RadChart. Type A originates from 'Telerik.Web.UI, Version=2011.1.519.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Users\koterec\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies\vcxqtkpk01\Telerik.Web.UI.dll'. Type B originates from 'Telerik.Web.UI, Version=2011.1.519.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Users\koterec\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies\pccl1usa01\telerik.web.ui.dll'."

Provide me the solution, please.
Thanks in advance.
SCT
Top achievements
Rank 1
 answered on 07 Jul 2011
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
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
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?