Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
153 views

How to get user control defined by EditFormSettings  when edit command button clicked?

I'm using a user control to update  data, and setting EditFormSettings like this :

when "Edit" button clicked, the area defined in my webusercontrol is toggled, but the data was not loaded into the edit area, and just like this:

I used  OnDataBound method to look for the usercontrol, but it does not work. and the code is like this:

In the function, the value of userControl is null

how to solve this problem? 

Eyup
Telerik team
 answered on 23 Apr 2015
1 answer
148 views

hi,

i'm using control RadHtmlChart wich i bind it programaticly 

this is part of my code and in the pic the data don't display i dont know why plz help me i'm using gridview to make sure if i have data in datatable and it works  

 

string req = " select time_tag,[ain_sebou|niveau] from QTSW_DATA1 where time_tag between '15/01/2015 10:49:59' AND '15/02/2015 10:49:59'";
            Connecter();
            if (DS.Tables.Contains("TRChart"))
            {
                DS.Tables.Remove("TRChart");
            }
            SqlDataAdapter da = new SqlDataAdapter(req, con);
            da.Fill(DS, "TRChart");
            Deconnecter();
            RChart.DataSource = DS.Tables["TRChart"];
            RChart.DataBind();

            ScatterLineSeries SL = new ScatterLineSeries();
            SL.DataFieldX = "time_tag";
            SL.DataFieldY = "ain_sebou|niveau";
            RChart.PlotArea.Series.Add(SL);
            RChart.PlotArea.XAxis.TitleAppearance.Text = "Date Time";
            RChart.PlotArea.YAxis.TitleAppearance.Text = "Value Of AIn Sebou"; 

// here i bind Gridview

           Gridview1.DataSource = DS.Tables["TRChart"];
           Gridview1.DataBind();

 

plzz i need help 

Danail Vasilev
Telerik team
 answered on 23 Apr 2015
1 answer
88 views

Hi there,

We're using Org Chart with enable drill down and load on demand and data bind in code behind file.

Org Chart also have zooming feature ON.

When exporting char to pdf it only show NODES but there in not links/lines between nodes.

But if we disabled zooming it work well.

Any idea please?

Ivan Danchev
Telerik team
 answered on 23 Apr 2015
1 answer
138 views

Hi,

 

Im having an issue trying to bind to a linq anonymous type. I can bind find as long as i don't specify a 'DataFieldParentID', if i specify that DataFieldParentID then the dropdowntree control just displays no items.

So if i comment out the line below: rdt.DataFieldParentID = "ParentID"; then the control loads fine with the options i expect and i am able to select and use them fine, it simply seems to be an issue when trying to create a hierarchy. 

My drop down tree control is inside a RadListView and i am binding on the ItemDataBound event, my code for binding if the following:             

var x = from y in services select new { ID = y.ID, ParentID = y.PrimaryWorkType.ID, myText = y.Description};
 
RadDropDownTree rdt = (RadDropDownTree)e.Item.FindControl("ddlAffectedServices");
 
rdt.DataTextField = "myText";
rdt.DataValueField = "ID";
rdt.DataFieldID = "ID";
rdt.DataFieldParentID = "ParentID";
rdt.DataSource = x;
rdt.DataBind();

 

Plamen
Telerik team
 answered on 23 Apr 2015
2 answers
79 views

Good Day

Please help,

How can i format the date when exporting treelist data to excel, using Telerik version 2013.3.1324.40.

Tshwanelo
Top achievements
Rank 1
 answered on 23 Apr 2015
6 answers
224 views
I have a RadScheduler that's showing meetings using the timeline view. Meetings that overlap the edge of the view gets an arrow that you can click to move the view and see the rest of that meeting. A great feature, but right now I need to disable it. How do I accomplish that? I wouldn't mind keeping the arrows and just disabling the action that gets performed.

Thanks
Plamen
Telerik team
 answered on 23 Apr 2015
10 answers
5.2K+ views
Hi Telerik-Team,

I make my first experience with RadButton.
Simple Question - hao can I  set enable property from client side? 
javascript  not working and RadButton still remain disabled:

function

 

EnableDisable() {
    button2 = document.getElementById(
"RadButton2_input");
    button2.disabled =
false;
}

 

Thanks in advance!
Peter
Top achievements
Rank 1
 answered on 23 Apr 2015
3 answers
222 views
Hi all,

I want to set a column to ReadOnly=True at EditMode, but at InsertMode ReadOnly=False. Please advise how to do it.
I did as below but it didn't work. Please help.

Private Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
If e.CommandName = RadGrid.EditCommandName Then
            Dim editItem As GridEditableItem = CType(RadGrid1.MasterTableView.GetItems(GridItemType.EditItem)(0), GridEditableItem)
            For Each column As GridColumn In RadGrid1.MasterTableView.Columns
                If column.UniqueName = "POL" Then
                    Dim txtbox As TextBox = CType(editItem (column.UniqueName).Controls(0), TextBox)
                    txtbox.ReadOnly = True
                End If
            Next
End If
End Sub

But I got error  "Index was outside the bounds of the array." at the below code ..
If e.CommandName = RadGrid.EditCommandName Then
            Dim editItem As GridEditableItem = CType(RadGrid1.MasterTableView.GetItems(GridItemType.EditItem)(0), GridEditableItem)

Many Thanks
umesh
Top achievements
Rank 1
 answered on 22 Apr 2015
5 answers
176 views
We’re evaluating using the Gantt component for a very large
project; we did not use it before, but extremely familiar with the other
components. It seems this one is missing a few things from the smart Tag, like
data source selection and maybe one day a designer for it. We are a little lost
inside of it and for some crazy reason could not get the examples to work in
VB. Would it be possible to help us with a very simple example that builds the
entire chart from code behind and uses Objects and not a direct connection to
db or a SQL dataset. If possible, please use a FOR loop to insert the Tasks and
relationships. Thank you for the help.

Sam
Top achievements
Rank 1
 answered on 22 Apr 2015
5 answers
788 views
Hi,

I'm trying to pre-check all checkboxes with a RadDropdownTree control after it has been bound to (as per the sample code here) but I am getting a 'RadDropDownTree.SelectedValue' cannot be assigned to -- it is read only' error.

I've had a look about online to check for a versioning issue but couldn't see anything - I'm currently using release 2013.1.403.35, is this the issue?

Thanks,
Allan
Stacy
Top achievements
Rank 1
 answered on 22 Apr 2015
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?