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

We have a project that we store the connection string in a session (in page load).

When using the radscheduler reminder function it works for the first time but after that the Scheduler stops functioning and returns the error that connection string has not been initialized. Keep in mind we cannot change the way we use the connection string and we need to keep it stored in the session.

Has anyone faced the above problem before? Thanks in advance

MICHAEL
Top achievements
Rank 1
 asked on 31 Jul 2017
1 answer
1.0K+ views

I am trying to bind a List as the database for my RadGrid and I am getting the following error "Cannot find any bindable properties in an item from the datasource" although I have made sure and tested that the data source is returning valid data.

<telerik:RadGrid ID="grdTest" runat="server"  AutoGenerateColumns="true" ShowStatusBar="True" OnNeedDataSource="grdTest_NeedDataSource" >
    <MasterTableView AutoGenerateColumns="true" >
    </MasterTableView>
</telerik:RadGrid>

 

protected void grdTest_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    int ParentRulCode = 2611767;
    List<Enrolment> MyEnrol = EnrolmentRepository.GetChildEnrolmentsFromRulCode(ParentRulCode);
 
    grdTest.DataSource = MyEnrol;
}

 

 

Here is My Enrolment Class

public class Enrolment
{
    public Course MC;
    public Person MP;
    public int RulCode;
    public DateTime StartDate;
    public DateTime EndDate;
    public string ProgressStatus;
}
Eyup
Telerik team
 answered on 31 Jul 2017
0 answers
80 views
Need to bind the asp.net grid in AdvancedInsertTemplate .
arun
Top achievements
Rank 1
 asked on 31 Jul 2017
5 answers
1.0K+ views

Is there any support to use the FontAwesome icons in the menus?

It looks like it might be possible to use templates to do this. I am creating the menus and items with code and cannot find good information about how to approach this. Is there anyone with a working implementation of FontAwesome icons?

Rumen
Telerik team
 answered on 31 Jul 2017
4 answers
616 views
Hi,
I give a scriptmanager alert message in a form if the textboxes I create using javascript are empty and return the page. It works fine by keeping all the values of all other fields except the value of one radtextbox value and upon click of ok in the alert box it displays the values back. Why does that happen?

Thanks
Singh
Top achievements
Rank 1
 answered on 30 Jul 2017
1 answer
222 views
Hi everybody, 

I want to track every user activity in my web app(ex: when user John create a a new user i want to add in some table in db user John for create new user with the date) but i don't know where to start.

Thanks for your help
Thomas
Top achievements
Rank 1
 answered on 30 Jul 2017
12 answers
491 views
Hi, I'm having some problems with my grid. I have a GridHyperLinkColumn which has a link whose url is composed using an id retrieved through a select statement to a database. I would like the link in the grid to be an image and not text, I tried using the GridButtonColumn and the GridTemplateColumn to achieve this but neither works, since what I need is to be able to pass the DataNavigateUrlFormatString value and the DataNavigateUrlFields like in the GridHyperLinkColumn to be able to pass the id of the content to go to the correct page. As I have said, the link should be an image and not text. I tried using a css class to style this like I normally would but couldn't get it to work.

Can anyone help please?

Thanks a lot,
Marta
Neil N
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 29 Jul 2017
0 answers
101 views

Hello,

I'm having an issue with my custom-created skin (done via .dll). When I attempt to zoom via selection (click-and-drag the mouse) there is no colored box that indicates the user's selection box.

Can you assist me by letting me know how to color this property? It seems like it's set to be completely transparent as the current state shows no selection at all.

 

Thanks!

ww1711
Top achievements
Rank 1
 asked on 28 Jul 2017
1 answer
247 views

Hello,

I trying to create a custom task field "Description" like in the documentation DOC, but  binding RadGantt's Datasource  simply in Page_Load event.

 

My Code:

public class CustomGanttTaskFactory : ITaskFactory
{
    Task ITaskFactory.CreateTask()
    {
        return new CustomTask();
    }
}
 
public class CustomTask : Task
{
    public CustomTask()
        : base()
    {
    }
 
    public string Description
    {
        get { return (string)(ViewState["Description"] ?? ""); }
        set { ViewState["Description"] = value; }
    }
 
    protected override IDictionary<string, object> GetSerializationData()
    {
        var dict = base.GetSerializationData();
        dict["Description"] = Description;
        return dict;
    }
 
    public override void LoadFromDictionary(System.Collections.IDictionary values)
    {
        base.LoadFromDictionary(values);
 
        Description = (string)values["Description"];
    }
}

 

Page_Load

List<ITask> newFinalTask = new List<ITask>();
        newFinalTask.Add(new CustomTask { ID = 1, Description = "TEST1", OrderID = 1, ParentID = null, Title = "TITLE A", Start = new DateTime(2017, 01, 10, 0, 0, 0), End = new DateTime(2017, 01, 19, 23, 59, 59), PercentComplete = 0.20M, Expanded = false, Summary = true });
        newFinalTask.Add(new CustomTask { ID = 2, Description = "TEST2", OrderID = 2, ParentID = 1, Title = "SUB A1", Start = new DateTime(2017, 01, 10, 0, 0, 0), End = new DateTime(2017, 01, 15, 23, 59, 59), PercentComplete = 0.20M, Expanded = false });
        newFinalTask.Add(new CustomTask { ID = 3, Description = "AAAA", OrderID = 3, ParentID = 1, Title = "SUB A2", Start = new DateTime(2017, 01, 16, 0, 0, 0), End = new DateTime(2017, 01, 19, 23, 59, 59), PercentComplete = 0.20M, Expanded = false });
        newFinalTask.Add(new CustomTask { ID = 4, Description = "BB", OrderID = 4, ParentID = null, Title = "TITLE B", Start = new DateTime(2017, 01, 20, 0, 0, 0), End = new DateTime(2017, 01, 31, 23, 59, 59), PercentComplete = 0.20M, Expanded = false, Summary = true });
        newFinalTask.Add(new CustomTask { ID = 5, Description = "CCCC", OrderID = 5, ParentID = 4, Title = "SUB B1", Start = new DateTime(2017, 01, 20, 0, 0, 0), End = new DateTime(2017, 01, 31, 23, 59, 59), PercentComplete = 0.20M, Expanded = false });
 
RadGantt1.DataSource = newFinalTask;

 

Desing

<telerik:RadGantt runat="server" ID="RadGantt1"
    Enabled="true"
    ReadOnly="True"
    AllowSorting="False"
    AutoGenerateColumns="false">
    <DataBindings>
        <TasksDataBindings
            IdField="ID"
            TitleField="Title"
            StartField="Start"
            EndField="End"
            PercentCompleteField="PercentComplete"
            OrderIdField="OrderID"
            SummaryField="Summary"
            ParentIdField="ParentID"  />
    </DataBindings>
    <CustomTaskFields>
        <telerik:GanttCustomField PropertyName="Description" ClientPropertyName="description" Type="String"/>
    </CustomTaskFields>
    <Columns>
        <telerik:GanttBoundColumn DataField="ID" HeaderText="ID" AllowEdit="false" AllowSorting="false"></telerik:GanttBoundColumn>
        <telerik:GanttBoundColumn DataField="Description" HeaderText="Desc." DataType="String" UniqueName="Description"></telerik:GanttBoundColumn>
        <telerik:GanttBoundColumn DataField="Title" HeaderText="ACTIVITY" AllowEdit="false" AllowSorting="false"></telerik:GanttBoundColumn>
        <telerik:GanttBoundColumn DataField="Start" HeaderText="START" DataFormatString="dd/MM/yyyy" AllowEdit="false" AllowSorting="false"></telerik:GanttBoundColumn>
        <telerik:GanttBoundColumn DataField="End" HeaderText="END" DataFormatString="dd/MM/yyyy" AllowEdit="false" AllowSorting="false"></telerik:GanttBoundColumn>
        <telerik:GanttBoundColumn DataField="PercentComplete" HeaderText="% COMPLETED" AllowEdit="false" AllowSorting="false"></telerik:GanttBoundColumn>
    </Columns>
</telerik:RadGantt>

 

But displaying "undefined" in column "Description (Desc.)"

Someone help me with this please?

 

Thanks

 

 

Peter
Top achievements
Rank 1
 answered on 28 Jul 2017
7 answers
2.6K+ views
I have a radGrid that has several rows.  One of the rows is a row that cannot be deleted by the user.  I would like to hide the row from view.  What event would I use to hide the row and what is the code to hide the row.
Tuan
Top achievements
Rank 1
 answered on 28 Jul 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?