Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
156 views
Hi,
My RadTreeView is displayed correctly in an asp page without a master page but in a page with master page it is not rendered properly (see attached images).
How to fix this problem ?
Le Surhomme
Top achievements
Rank 1
 answered on 30 Sep 2014
3 answers
254 views
Can anyone think of a way to drop the expand/collapse image from the root node of a tree view only so that the root item is sitting by itself without both the option to expand/collapse the tree and without the image which would do so.  I still want the expand/collapse image for all sub sections of the tree just not for when I have a root node which would literaly collapse the entire tree to nothing.

Any thoughts?
Andrew Nagel
Hristo Valyavicharski
Telerik team
 answered on 30 Sep 2014
1 answer
90 views
i am trying to run the following function onResponseEnd:


               function changePanelheight(sender, args) {
                
                   $(document).trigger('lockfixed:pageupdate');
               }


But nothing seems to happen.
Anything wrong with this setup?

Marc


Maria Ilieva
Telerik team
 answered on 30 Sep 2014
1 answer
60 views
Hello.
I'm using radScheduler of the version 2014.2.618.40 and I have a problem on stretching a appointment.

The view I'm showing is timeline view and when I stretch the appointment to add a day,  the End property of the e.ModifiedAppointment object have two days more.

For example If my appointment start at 6h of day 25 and end at 13h of the same day. When I stretch it to day 26 the e.ModifiedAppointment.End has day 27 at 0 hours.

Some one know how comfigure the radScheduler for this property to return day 26 at 23:59?

Thanks.
Plamen
Telerik team
 answered on 30 Sep 2014
1 answer
865 views
I have master page named MPHome.master contains a RadComboBox here is the code of

<telerik:RadComboBox CheckBoxes="true" EnableCheckAllItemsCheckBox="true" ID="TaskID" runat="server" Height="100" Width="150" EmptyMessage="Select a Task"
EnableLoadOnDemand="true" OnClientItemsRequesting="OnClientItemsRequesting" WebServiceSettings-UseHttpGet="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true">
<WebServiceSettings Method="GetTasks" Path="~/ProjectDropDownWebService.asmx" />
</telerik:RadComboBox>

Now this combo works fine it fills values from webservice and also shows checkboxes on it.Now what I do is I inherit this master page to Default.aspx page and inside button of submit in default page I have used this code

protected void btnViewAllTask_Click(object sender, EventArgs e)
{
RadComboBox TaskID = (RadComboBox)Master.FindControl("TaskID");
var selectedtask = TaskID.CheckedItems;
}This selectedtask returns me count of zero either i have selected all the records on it.
Nencho
Telerik team
 answered on 30 Sep 2014
1 answer
67 views
Hi
Having a lot of trouble with this one

Setting a Datakey not found error on OrderID property , all I have done is swap out the data source on the ProductsGrid_NeedDataSource method
as below
grid.DataSource = this.GService.GetJobs(GEmployee.id);

Gservice returns two entities as below

var returnedJobs = new List<DemoJobBreakdown>()
{
new DemoJobBreakdown()
{
OrderID = 1,
Job_Subset_ID = 4,
Status = "Complete",
Job_Step = "Installation"
},
new DemoJobBreakdown()
{
OrderID = 2,
Job_Subset_ID = 3,
Status = "Complete",
Job_Step = "Health and Saftey"
}};

and the control is pretty much untouched

​<telerik:RadGrid AllowFilteringByColumn="true" AllowSorting="true" ShowGroupPanel="true"
BackColor="#393939" ID="ProductsGrid" runat="server" AllowPaging="true" PageSize="15"
Width="980px" CssClass="productsGrid" OnPreRender="ProductsGrid_PreRender" OnNeedDataSource="ProductsGrid_NeedDataSource"
Style="outline: 0">
<MasterTableView AutoGenerateColumns="false" PagerStyle-Mode="NextPrevAndNumeric"
ClientDataKeyNames="OrderID" TableLayout="Fixed">
<Columns>
<telerik:GridBoundColumn DataField="OrderID" HeaderText="Order ID" AutoPostBackOnFilter="true"
ShowFilterIcon="false" HeaderStyle-Width="60px" FilterControlWidth="35px">
</telerik:GridBoundColumn>

</Columns>
</MasterTableView>
<ClientSettings AllowDragToGroup="true" EnableRowHoverStyle="true">
<Selecting AllowRowSelect="true" />
<ClientEvents OnRowSelected="RowSelected" />
<Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="360px" />
</ClientSettings>
</telerik:RadGrid>


Yet it still blows up every time!
Can anyone help?

Thanks
Gerry
Maria Ilieva
Telerik team
 answered on 30 Sep 2014
1 answer
364 views
I have a class defined like below:

ID int
Name varchar(50)
MyBooks List<books>
MyAuthors List<authors>

I am loading in c#  a list of class above.

On the datagrid, I have the main datagrid that will get ID and Name populated when I do the binding.
How can I setup the relationship so the 2 nested grids get the MyBooks as List<books> and MyAuthors as List<authors> bound

thank you
Eyup
Telerik team
 answered on 30 Sep 2014
1 answer
114 views
protected void rtvTopLeftPatientMenu_NodeClick(object o, Telerik.WebControls.RadTreeNodeEventArgs e)
   {
 
       if (e.NodeClicked.Parent != null)
       {
           Session["NodeClicked"] = e.NodeClicked.Parent.Value;
           try
           {
               if (e.NodeClicked.Parent.Parent.Value != null)
               {
                   Session["NodeClicked"] = e.NodeClicked.Parent.Parent.Value;
               }
           }
           catch { };
       }
Hi Guys,

I recently updated telerik controls on a website. Earlier I was using Telerik.WebControls.RadTreeNodeEventArgs but now I'm using Telerik.web.ui.RadTreeNodeEventArgs.

Now my problem is when I change the telerik.webcontrol to telerik.web.ui .............this "e.NodeClicked" property starts showing an error saying that it does not have any property like that. Now I have to update this control but I'm stuck at e.NodeClicked.... So please guys help me out by suggesting some other property which replace this one.
erwerwwerewerererere
 
 protected void rtvTopLeftPatientMenu_NodeClick(object o, Telerik.WebControls.RadTreeNodeEventArgs e)
    {
 
        if (e.NodeClicked.Parent != null)
        {
            Session["NodeClicked"] = e.NodeClicked.Parent.Value;
            try
            {
                if (e.NodeClicked.Parent.Parent.Value != null)
                {
                    Session["NodeClicked"] = e.NodeClicked.Parent.Parent.Value;
                }
            }
            catch { };
        }
 protected void rtvTopLeftPatientMenu_NodeClick(object o, Telerik.WebControls.RadTreeNodeEventArgs e)
    {
 
        if (e.NodeClicked.Parent != null)
        {
            Session["NodeClicked"] = e.NodeClicked.Parent.Value;
            try
            {
                if (e.NodeClicked.Parent.Parent.Value != null)
                {
                    Session["NodeClicked"] = e.NodeClicked.Parent.Parent.Value;
                }
            }
            catch { };
        }
 protected void rtvTopLeftPatientMenu_NodeClick(object o, Telerik.WebControls.RadTreeNodeEventArgs e)
    {
 
        if (e.NodeClicked.Parent != null)
        {
            Session["NodeClicked"] = e.NodeClicked.Parent.Value;
            try
            {
                if (e.NodeClicked.Parent.Parent.Value != null)
                {
                    Session["NodeClicked"] = e.NodeClicked.Parent.Parent.Value;
                }
            }
            catch { };
        }
Hristo Valyavicharski
Telerik team
 answered on 30 Sep 2014
3 answers
154 views

            function PrintPanel() {

            
                var panel = document.getElementById("<%=ResponeData.ClientID %>");
                var printWindow = window.open('', '', 'height=400,width=800');
                printWindow.document.write('<html><head><title>DIV Contents</title>');
                printWindow.document.write('</head><body >');

                printWindow.document.write(panel.innerHTML);
               
                printWindow.document.write('</body></html>');
                printWindow.document.close();
                setTimeout(function () {
                   
                    printWindow.print();
                }, 500);
                return false;
            }  
The above panel "ResponeData" has a rad grid. Im trying to print entire pannel. I want to change back color of the rad grid to "none" while printing. On print screen rad grid color should be none
 





Konstantin Dikov
Telerik team
 answered on 30 Sep 2014
4 answers
470 views
Hi,

I have a rad grid with paging enabled, and i got records displayed in two pages.
Using client script I'm working for selecting/deselecting the rows using checking box and also persisted the check box while paging.
But when I'm trying to read selected rows in rad grid I'm getting only current page records, but not all pages selected records.

Please help me in that regards.

Thanks & Regards
Phaneendra
Eyup
Telerik team
 answered on 30 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?