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

Hi I am new to telerik i do my project by using telerik controls. I want to build entry form in batch edit mode but i cant to bind data from the database for cascading combo boxes in batch edit mode. Please help me

I have three types of columns insurance plan,insurance type, insurance policy but i cant the data from <itemtemplate event> </itemtemplate>   

 

Vasil
Telerik team
 answered on 11 Apr 2017
2 answers
127 views

HI,

I have been using the Rotator with transparent PNGs. I had to set the RenderMode for the Rotator to 'Classic' for the transparency to work, however with Q1 2017 this does not work and the images all have a white background now.

Please help

Jon.

 

Rumen
Telerik team
 answered on 10 Apr 2017
1 answer
161 views

I am using my own pop-up dialog window for adding/editing tasks in the Gantt display.  Saving from this dialog causes a postback to the server and a redraw of the gantt chart.  I need to programmatically re-select the last task added/edited  (either server side or client side but preferably server side).

Is there anyway to achieve this?

Thanks.

Colin
Top achievements
Rank 1
 answered on 10 Apr 2017
3 answers
554 views

I'm new to the Telerik suite and this control is my first real exposure.  I hope the other controls are better implemented than this one.

I have just spent 3 days getting tasks to appear with different background colours.  Am I missing something?  I can't believe the hoops I've had to jump through to achieve this (custom task objects, custom task factories, custom task providers, client templates and I still had to finish it off with a jquery hack!).  Surely the basic appearance of a task item on the chart should be as simple as setting a few properties server side e.g. "task.BackColor=..." etc?

No basic formatting, no basic client-side events such as chart_onload, item_selected, item_double_click.

The documentation is less than helpful and all the examples I've looked at seem to assume I'm using windows entity framework (I'm not.)

Are there plans to make this chart more customisable in a future release?

If anyone found a more straightforward way to achieve this basic functionality I would be extremely grateful if they could share what they did.

Colin
Top achievements
Rank 1
 answered on 10 Apr 2017
2 answers
274 views

I have a GridTemplateColumn that is defined as with a DateTime", but actually contains a link button. The value in the column is a date, but since the ItemTemplate is defined as a link button the actual filter value is a string. When you search if you enter a valid date value it will filter correctly, but if you enter a 2, for example, the SQL gets an error because you obviously can't compare 2 to a date field.

What I want to do is before the filter is performed validate that it is a valid date, if not just remove the filter. Additionally, I would really like to be able to add the date selector box next to the filter field. That would help in getting the date in the correct format.

Below is the definition for the column:

<telerik:GridTemplateColumn UniqueName="CREATEDON" DataField="CREATEDON" SortExpression="CREATEDON" HeaderText="Date Created" DataType="System.DateTime"
    CurrentFilterFunction="GreaterThanOrEqualTo" AutoPostBackOnFilter="true" HeaderStyle-Width="100">
    <ItemTemplate>
        <asp:LinkButton ID="lnkCreatedOn" runat="server" CommandName="VIEWTASK" CommandArgument='<%# Eval("TaskId") %>' OnClick="lnkCreatedOn_Click" />
    </ItemTemplate>
</telerik:GridTemplateColumn>

 

Thanks in advance.

Rodney

 

Rodney
Top achievements
Rank 2
 answered on 10 Apr 2017
1 answer
458 views

I have an image inside of a RadToolTip. While everything is functional, the ToolTip displays, and all of the content, I cannot add AlternateText to the image.

It is an asp:Image control:

<telerik:RadToolTip ID="RadToolTip1" runat="server" RelativeTo="Element" TargetControlID="myImage" Skin="Default" EnableShadow="true" Position="BottomRight" AutoCloseDelay="1000" Sticky="true" IgnoreAltAttribute="true">
    <h2>An image with alt text</h2>
    <asp:Image ID="Image1" runat="server" ImageUrl="~/Path/To/Image.jpg" AlternateText="Here is description of the image" />
</telerik:RadToolTip>

 

I am aware of the IgnoreAltAttribute property but this only refers to the image clicked to open the ToolTip, not images inside of the ToolTip.

How can I prevent alt text from being removed from the contents of the ToolTip?

Any help is appreciated.

Marin Bratanov
Telerik team
 answered on 10 Apr 2017
1 answer
80 views

Hi, i have encounter some CSS issue with the Image manager and Document Manager dialog. and i cant seems to find the CSS causing this. i have customised the dialog aspx file for some customization but dont's seems to have any css inside it

 

 

Benjamin
Top achievements
Rank 1
 answered on 10 Apr 2017
0 answers
116 views

In my web application I'm using RadWizard in RadWindow for import personels from excel. So in first step there is a RadAsyncUpload control. When ´ActiveStepIndex==1´ saving excel to server in ´NextButtonClick´ event. And when step index is 2 inserting personels.

 

protected void excelImportWizard_NextButtonClick(object sender, WizardEventArgs e)
{
    if (excelImportWizard.ActiveStepIndex == 1)
    {
        var files = excelImportAsyncUpload.UploadedFiles;
        if (files.Count == 0)
        {
            e.CurrentStep.Active = true;
            CurrentMaster.AlertWindow("Lütfen içeri alınacak verileri içeren dosyayı yükleyiniz.");
            return;
        }
 
        SaveFile(files[0]);
 
        ExcelImportPreviewSpreadsheet.Provider = new SpreadsheetDocumentProvider(LastSavedFilePath);               
    }
 
    if (excelImportWizard.ActiveStepIndex == 2)
    {
        Departments = OperationController.GetDepartments();
        Companies = DefinitionController.GetParentCompaniesFromCompanyType(new List<int> { 2, 3, 4 });
        PersonelProfessions = DefinitionController.GetAllPersonelProfessions();
        PersonelTitles = OperationController.GetPersonelTitles(SessionManager.CurrentUser.ProfileIdentifier);
 
 
        ProcessFile(excelImportAsyncUpload.UploadedFiles[0]);
 
    }
}

 

When importing personels finishes and user clicks finish button of radwizard I'm closing RadWindow from client side in parent window of RadWindow.

protected void excelImportWizard_FinishButtonClick(object sender, WizardEventArgs e)
{         
    RadAjaxManager.GetCurrent(Page).ResponseScripts.Add(@"clearUpload();");
    RadAjaxManager.GetCurrent(Page).ResponseScripts.Add(@"" + CallBackFunctionOnFinish + "();");
}

 

But when I open RadWindow again, I see that RadWizard's active step is still last WizardStep. Because of this I set active step to 0 on finish button click.

excelImportWizard.ActiveStepIndex = 0;

 

After I set active step index to 0 manually I opened radwindow and see wizard waits on first step as I wanted. But when I click next button ActiveStepIndex is still 0, not changed to 1. How do I set RadWizard correctly to the initial state on RadWindow opening.

Yusuf
Top achievements
Rank 1
 asked on 09 Apr 2017
1 answer
232 views

I read a forum thread , documentation  Using RadWindow as a Dialog  and a demo Window - Return Values from a Dialog. Everything was nice and gave good understanding. But the return value is determined at server side(for example in btnSave_Click event handler) in my scenario.  So is there any way to set the arguments of radwindow object in server side i.e code behind ?

 

In all texts above i mentioned there is a javascript function GetRadWindow () . In that function there is an object used window . What is the server-side equivalent to window object ? I am pondering that whether there is a way to mimic GetRadWindow  function into c# in code behind ?

siva sankaran
Top achievements
Rank 1
 answered on 09 Apr 2017
2 answers
142 views
Hi,

Could someone please let me know why the tab-order is not working when the item is selected from radComboBox and clicking on tab should take to the next control with higher tab order instead it is taking the focus to radMenu bar which is in the master page?

During the page_load event, the first comboBox is given the focus. Odd behaviour is without selecting any item in the combobox, if I press tab, it moves to correct control but once the item is selected and tab is entered, it does not work.


Thanks a lot.

Milan G
Sachin
Top achievements
Rank 1
 answered on 09 Apr 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?