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

 I need know the problem about the export to excel from grid of telerik.  If are a little records no problem, the export function correctly but if the grid has more than 1000  records, the system is very slow, (10 minutes or more)
Wtha is the problem with this?

Thanks for your help
Daniel
Telerik team
 answered on 18 Apr 2011
1 answer
81 views
Hello,

I am new to Telerik controls. I have been trying to evaluate the RadScheduler Control for ASP.NET AJAX.
My query is that is it possible to override the predefined events that have been registered on the controls withing the RadScheduler.
The below will explain my query better I feel.

Case 1)
Currently when I double click on the appointment it opens a small div (dialog) whose class name is  rsAptEditFormMiddle.
I do not want to open this div, instead I want to open my custom dialog when user double click on appointment.

Case 2)
When I click on the red Delete icon (X) on right top corner (<a> with class name rsAptDelete) of any appointment it shows a confirmation dialog with OK and Cancel buttons. Instead of this I would like to have a cutom dialog for handling confirmation of delete.

Is it somehow possible to do this? Hope I am clear with my query :)

Regards,
Siddharth
Peter
Telerik team
 answered on 18 Apr 2011
5 answers
379 views
How would you go about disabling the upload button on the popup window after it is clicked for the first time. I don't want to allow users to hit it twice.

Can you add a progress bar while uploading is going on?
Dobromir
Telerik team
 answered on 18 Apr 2011
4 answers
158 views
HI,

I am looking for a way of obtaining a list of all controls in specified DIV element (including div's children)

I need to enumerate all the controls in javascript.

Has anyone done something like this ?
Roland
Top achievements
Rank 1
 answered on 18 Apr 2011
3 answers
160 views
I'm going to try to briefly describe the situation because the setup is a bit complicated

I have a RadGrid with popup form insert/edit.
When the popup form appears, the first object is a combobox that contains the Report ID.
The ItemDataBound event for the grid populates the popup form with the correct Report Options by building the controls and adding them to a Panel container. The Report Options are determined by the combobox that contains the Report ID

For example...if the Report ID is 1, the ItemDataBound event generates 2 comboboxes for Report Date and Report Format. Report Date has 4 options and Report Format has 2 options.

Now...the combobox for the Report ID is set to autopostback and there is a OnSelectedIndexChanged event that reruns the code that creates the Report Option controls.

For example...if I change the combobox so that the Report ID is 2, the ItemDataBound event only generates 1 combobox for Report Format which is supposed to only have 2 options.

Here's where the problem occurs. All of this works perfectly, except that when I select Report ID 2, the combobox for Report Format has 4 options in it...the last 2 are completely blank.

It seems that for some reason it's remembering that the first combobox when Report ID was selected had 4 options and even though it's changing the combobox to have the right values, it still thinks there is supposed to be 4 options when in fact there are only 2.

I tried doing a combo.Items.Clear() before building the combobox, but that didn't seem to work. I also tried clearing out the controls on the Panel and that didn't work either. You can also see from the code below that each combobox is created with a unique ID based on the ID of the Option. The Report Date combobox is generated as dd_1 while the Report Format combobox is generated as dd_8.

I guess I'm looking for a way to make sure the ComboBox has the correct number of options so that the user cannot select "blank" items.

I don't know how much help this code is going to be, but here is how I'm creating the controls

protected void BuildOptions(GridEditFormItem editFormItem)
{
    RadComboBox dd_RptID = (RadComboBox)editFormItem.FindControl("dd_RptID");
 
    EISDataContext db = new EISDataContext();
 
    // get the unique report options for the current selected report so we can render the correct controls
    var q_options = (from options in db.tReportConfigs
                     where options.RptID == dd_RptID.SelectedItem.Value
                     select options.OptID).Distinct();
 
    foreach (var option in q_options)
    {
        string optionType = (from options in db.tReportOptions
                             where options.OptID == option
                             select options.OptTyp).FirstOrDefault();
        string optionName = (from options in db.tReportOptions
                             where options.OptID == option
                             select options.OptNm).FirstOrDefault();
 
        // get the option values for this option
        var q_optionValues = from optionvalues in db.tReportConfigs
                             where optionvalues.RptID == dd_RptID.SelectedItem.Value && optionvalues.OptID == option
                             select optionvalues;
 
        // create a div for the option control and populate it with the correct control
        Panel panelContent = new Panel();
        panelContent.Attributes.Add("class", "popupcontent");
 
        if (optionType == "ComboBox")
        {
            RadComboBox combo = new RadComboBox();
            combo.ID = "dd_" + option.ToString();
            foreach (var optionValue in q_optionValues)
            {
                combo.Items.Add(new RadComboBoxItem(optionValue.tReportOptionValue.OptNm, optionValue.tReportOptionValue.OptVal));
            }
 
            panelContent.Controls.Add(combo);
        }
 
        // create a div for the option title and populate it with the option name
        Panel panelTitle = new Panel();
        panelTitle.Attributes.Add("class", "popuptitle");
        Label pnlLabel = new Label();
        pnlLabel.Text = optionName;
        panelTitle.Controls.Add(pnlLabel);
 
        // create a div for the clear control
        Panel panelClear = new Panel();
        panelClear.Attributes.Add("class", "clear");
 
        editFormItem.FindControl("divOptions").Controls.Add(panelTitle);
        editFormItem.FindControl("divOptions").Controls.Add(panelContent);
        editFormItem.FindControl("divOptions").Controls.Add(panelClear);
    }
}

Any suggestions you can provide are greatly appreciated...thanks.
Dimitar Terziev
Telerik team
 answered on 18 Apr 2011
1 answer
129 views
Hello,

I am working with Rad WYSWYG editor here i can see editor i can type text make it bols ,align it etc but when i start adding link or making a text as hyperlink for that when i click on Isert Link Icon one widow gets pop by saying Web.config registration missing ! the telerik dialog require HttpHandler registration in web.config file. I am not getting wht this is happning i even added DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd" property but still not able to add link.

I had attached a screen shot here with please review and recommmend.

I am using Licencesed version of Telerik.

Please suggest any suggesion on this i require to use this Editor.

Thanks,
Dobromir
Telerik team
 answered on 18 Apr 2011
2 answers
68 views
Hello,

I have been working on an application which uses the rad scheduler.  It is an asp.net application and the scheduler is using webservices to communicate with the server without the need for page postbacks.  I have replaced the edit and insert forms using a radwindow, and displayed the windows using the OnClientAppointmentEdit and OnClientAppointmentInsert events (then cancelled the default behaviour).

For the most part, it is performing beautifully and as expected.

There is a strange problem when the user gets a bit 'click happy' with the scheduler, the mouse coords seem to be offset.  For example, when the scheduler goes into this state, I can no longer drag or resize the appointments.  If I move the mouse down below the appointment, I can drag it.

I was wondering if this is a known issue and if so, is there a fix for it?  I can post more information on my project if needed.

Best Regards,
Michael
Peter
Telerik team
 answered on 18 Apr 2011
2 answers
180 views
Hello All,

The situation:

We have a project in Visual Studio 2010 (with TFS) that is using the Telerik.Web.UI.dll.

The problem:

Whenever any one of the developers builds and runs the project, the Telerik dll's are automatically checked out and locked for that developer.  This makes the other developers unable to run the project until it's checked back in.

The question:

Is there something about the Telerik software that requires this, or is it completely unrelated to Telerik and merely a VS configuration problem? 

The gratitude:

Thanks, in advance.


Glenn
Glenn
Top achievements
Rank 1
 answered on 18 Apr 2011
1 answer
64 views
Hi, I have a problem about RadGrid.
I put two RadDatePricers in RadGrid . When the RadGrid first show up , some contents showed in the RadGrid will show up outside the bottom border of the RadGrid,  after two seconds , the contents showed outside the bottom disappear automatically and everything is ok.
Is there any way to resolve the problem?

aspx:
       <telerik:RadGrid ID="RadGrid_ProjectEvaluationStep" runat="server"   AutoGenerateColumns="False"
                DataSourceID="ObjectDataSource_ProjectEvaluationStep" GridLines="None" Height="285px" Width="500px"
                onitemdatabound="RadGrid_ProjectEvaluationStep_ItemDataBound">                
                <MasterTableView DataSourceID="ObjectDataSource_ProjectEvaluationStep">
                    <Columns>
                        <telerik:GridBoundColumn DataField="EvaluationStepID" UniqueName="EvaluationStepID" Visible="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="EvaluationStep" HeaderText="" UniqueName="EvaluationStep">
                            <HeaderStyle Width="150px"/>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="ProcedureStepID" UniqueName="ProcedureStepID" Visible="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="PlanBeginDate" UniqueName="PlanBeginDate" Visible="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="PlanEndDate" UniqueName="PlanEndDate" Visible="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn Resizable="False" HeaderText="" >
                            <ItemTemplate>
                                <telerik:RadDatePicker ID="RadDatePicker_Begin" runat="server">
                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>
                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                    <DateInput DisplayDateFormat="yyyy-MM-dd" DateFormat="yyyy-MM-dd"></DateInput>
                                </telerik:RadDatePicker>
                            </ItemTemplate>
                            <HeaderStyle Width="140px"/>                                
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn Resizable="False" HeaderText="" >
                            <ItemTemplate>
                                <telerik:RadDatePicker ID="RadDatePicker_End" runat="server">
                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>
                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                    <DateInput DisplayDateFormat="yyyy-MM-dd" DateFormat="yyyy-MM-dd"></DateInput>
                                </telerik:RadDatePicker>
                            </ItemTemplate>
                            <HeaderStyle Width="140px"/>                                
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings>
                    <Scrolling AllowScroll="True" UseStaticHeaders="True"/>
                </ClientSettings>
            </telerik:RadGrid>

c#
protected void RadGrid_ProjectEvaluationStep_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            RadDatePicker beginDate = (RadDatePicker)e.Item.Cells[7].FindControl("RadDatePicker_Begin");
            RadDatePicker endDate = (RadDatePicker)e.Item.Cells[8].FindControl("RadDatePicker_End");

            if (e.Item.Cells[5].Text == null || e.Item.Cells[5].Text == "&nbsp;")
            {
                beginDate.SelectedDate = null;
            }
            else
            {
                beginDate.SelectedDate = Convert.ToDateTime(e.Item.Cells[5].Text);

                if (e.Item.Cells[4].Text == "1")
                {
                    beginDate.Enabled = false;
                }
            }

            if (e.Item.Cells[6].Text == null || e.Item.Cells[6].Text == "&nbsp;")
            {
                endDate.SelectedDate = null;
            }
            else
            {
                endDate.SelectedDate = Convert.ToDateTime(e.Item.Cells[6].Text);
            }                       
        }
    }
Iana Tsolova
Telerik team
 answered on 18 Apr 2011
3 answers
176 views
Hello,

I have a RadTreeView control in my application that can potentially contain a large number of nodes.  When it does contain a large number of nodes, I get the error:

"Error during serialization or deserialization using the JSON JavaScriptSerializer.  The length of the string exceeds the value set on the maxJsonLength property."

Normally, I would increase the maxJsonLength value in my web.config, however my application is being installed into SharePoint Central Administration as a feature, and I cannot modify maxJsonLength in Central Admin's web.config for a variety of reasons.

I would like to disable AJAX completely so that JSON serialization is not used - it's okay if the control takes a while to load, plus I am limiting the user to merely expanding and selecting nodes.  Is this possible?

Thanks,
Leigh

The treeview definition (nodes are added in code during page load):

<telerik:radtreeview id="ScopeTreeView" runat="server" checkboxes="false" multipleselect="false"
                    allownodeediting="false" registerwithscriptmanager="false" visible="true" />
Veronica
Telerik team
 answered on 18 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?