Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
Hi there,
     Can I have access to a checkbox within the header of my RadGrid. I want to have this done in javascript. Can anybody help me out??

Thank you
Allen
Princy
Top achievements
Rank 2
 answered on 21 Aug 2013
1 answer
95 views
Hello Telerik support team,
Of the lifetime of my application the RadChart's datasource is periodically updated on postback. This works when viewing the radgrid on the webpage, but when clicking the export button the first set of data is exported instead of the new data based on postback.

Any suggestions?
Kostadin
Telerik team
 answered on 21 Aug 2013
1 answer
294 views
Is there a way to persist changes in a textbox within a listview to the correct object in a custom object list?
I cannot find an elegant way to do this.

ASPX:
<telerik:RadWindow ID="rwCreateTask" runat="server" Modal="True" Height="600px" Width="400px">
        <ContentTemplate>
            <telerik:RadListView ID="RadListView1" runat="server">
                <ItemTemplate>
                    <table>
                        <tr>
                            <td>
                                 
                            </td>
                            <td>
                                Oppgave:
                            </td>
                            <td>
                                Type:
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Line") == DBNull.Value ? "" : Eval("Line") %>'></asp:Label>
                            </td>
                            <td>
                                <telerik:RadTextBox ID="RadTextBox1" runat="server" Text='<%# Bind("Text") == DBNull.Value ? "" : Bind("Text") %>' OnTextChanged="RadTextBox1_TextChanged"></telerik:RadTextBox>
                            </td>
                            <td>
                                <telerik:RadDropDownList ID="RadDropDownList1" runat="server" DataSourceID="taskTypeSource" DataTextField="Name" DataValueField="TaskTypeId">
                                </telerik:RadDropDownList>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </telerik:RadListView>
            <telerik:RadButton ID="RadButton1" runat="server" Text="Legg til oppgave" OnClick="RadButton1_Click"></telerik:RadButton>
        </ContentTemplate>
    </telerik:RadWindow>

Code-behind:
public partial class TaskListControl : System.Web.UI.UserControl
    {
        BindingList<CogTaskGenItem> taskItems = new BindingList<CogTaskGenItem>();
        CogTaskGenItem taskItem = new CogTaskGenItem();
 
         protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["taskItems"] != null)
            {
                taskItems = (BindingList<CogTaskGenItem>)Session["taskItems"];
            }
        }
 
        protected void btnCreateTask_Click(object sender, EventArgs e)
        {
            string script = "<script>openWindow();</script>";
            Page.ClientScript.RegisterStartupScript(Page.GetType(), "OpenTaskWindow", script);
        }
  
        public void RadButton1_Click(object sender, EventArgs e)
        {
            AddTaskItem();
        }
  
        private void AddTaskItem()
        {
            taskItem = new CogTaskGenItem();
            taskItem.Line = taskItems.Count + 1;
            taskItems.Add(taskItem);
            RadListView1.DataSource = taskItems;
  
            Session["taskItems"] = taskItems;
        }
       
        protected void RadTextBox1_TextChanged(object sender, EventArgs e)
        {
            taskItems.Clear();
  
            foreach (var item in RadListView1.Items)
            {
                taskItem = (CogTaskGenItem)item.DataItem;
                taskItem.Text = ((RadTextBox)sender).Text;
                taskItems.Add(taskItem);
            }
  
            RadListView1.DataSource = taskItems;
            Session["taskItems"] = taskItems;
        }
    }

Marin
Telerik team
 answered on 21 Aug 2013
0 answers
83 views
hello sir
I want to show Arrow line towards the y values
because if sometimes there are more values it splits on all chart and it is difficult to identify which value is of which sector

below is the image
note I am using RadChart and not HtmlChart


thanks in advance
Kishor
Top achievements
Rank 2
 asked on 21 Aug 2013
1 answer
184 views
Hi!

I'm populating RadComboBox  (CheckBoxes = true) with items in Javascript:

combo.trackChanges();
var comboItem = new Telerik.Web.UI.RadComboBoxItem();
comboItem.set_text(subType.Text);
comboItem.set_value(subType.Id);
                                 
combo.get_items().add(comboItem);
combo.commitChanges();

But when I'm selecting those items, they're not appearing in the combobox as selected (see attached screenshot).
If I'm adding items on the server, everything works well. 
How do I add those items to get everything working as it should?

Thank you
Shinu
Top achievements
Rank 2
 answered on 21 Aug 2013
2 answers
70 views
I have a news module I am modifying by adding a "slideshow" for news articles.  I'm using the radrotator for the slideshow and have it set up on a regular asp.net but want to in cooperate it into the DNN site.  Everything works fine when I am NOT logged in, but when I login it is just blank.  Has anyone come across this before?  If so how can I fix it? 
Slav
Telerik team
 answered on 21 Aug 2013
1 answer
116 views
Hi

Can I make Silk as the default skin for my current project?

Thanks
Dan
Shinu
Top achievements
Rank 2
 answered on 21 Aug 2013
1 answer
108 views
Hi

I have a RadScheduler which is displaying appointments of 15 minutes each, over a period between 11am - 9pm in week view. (364 appointments)

It takes about 9 seconds to load each time I navigate to a different week but only 1 second when viewing in day view.

I'm running on localhost so I don't think it's the database query and I'm returning only the visible appointments in the query:
var sessions = db.CableSessions.Where(o => o.StartTime > start && o.StartTime < schedulerInfo.ViewEnd).OrderBy(o => o.StartTime);

I am using Webservices to populate the radscheduler.

Is it normal for it to take this long to display 364 appointments? Maybe I'm being too ambitious. Is there anything else I could be doing to speed up the display of the appointments?

Thanks

[edit]:
I have since noticed that this performance issue only occurs when I run the application using CTRL+F5. When I open the page in a different browser, or close the browser and open it again to the same page, the performance issue is resolved.
Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Aug 2013
1 answer
53 views
Hi,

We have used a RadAsyncUpload in our application(dotnet 3.5 framework). The control works fine locally. When the application is hosted on IIS7, the files are selected but the status is shown unsuccessfull with red color besides.
On the click of Upload button files are not been uploaded and the textbox clears on post back.

Would you tell me what are the changes to be made in web.config file of application to use the control in server??

Regards,
Sid
Hristo Valyavicharski
Telerik team
 answered on 21 Aug 2013
1 answer
170 views
What's the best way to realize a two way binding between two RadComboBox's?

I have a user control wit only a RadComboBox that get filled with company names and companyID's I have two fill() methods. Both sets the companyId as value and one with the company name as text and the other the companyID as text.
I use two user controls in a Edit-FormTemplate van the RadGrid. setting them in ItemCreate event - One shoving the company name and the other shoving the companyID,. They are both set to the same SelectedIndexChanged evnt.

In this SelectedIndexChanged I want to set the Selected value of both when the event is fired. But how do find the Usercontrols?

I tried various code snippert but I can'get it to work, so as this:
var temp = (sender as RadComboBox).NamingContainer.NamingContainer;
DealerComboBox combo = (DealerComboBox)temp.FindControl("DealerComboBoxCodeCode");

Please help

Anders Pedersen

Nencho
Telerik team
 answered on 21 Aug 2013
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?