Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
191 views
I have an issue where the pane is not resizing correctly and I'm trying to figure out in what scenarios this might happen.

I have two pages with a splitter inside of a RadTabStrip both splitters should be 100% of the width and they both have a fixed width left pane.

Page A when I resize the window the right pane resizes to fit the space.
Page B when I resize if I make the window larger the right pane does not fill the allotted space if I make the window more narrow the contents overlap the allotted space.

I can see that the fixed pixels are being set in the RAD_SPLITTER_PANE_CONTENT in both Page A and Page B but in Page B the width is not being updated when the resize happens.

Any ideas?
Vessy
Telerik team
 answered on 25 Jun 2014
1 answer
190 views
I have a webapi running on http://services.thetaskmate.in/api/ImageGallery/aa

When I run the api in webbrowser I get desired result
I have checked the api in Fiddler and I get json data

When I execute your example page
      <telerik:RadImageGallery runat="server" ID="RadImageGallery1" Height="600px" Width="800px"
        ClientDataSourceID="RadClientDataSource1"
        DataImageField="ImageUrl" DataThumbnailField="ThumbUrl" DataTitleField="Title">
        <ClientSettings>
            <AnimationSettings>
                <NextImagesAnimation Type="VerticalSlide" />
                <PrevImagesAnimation Type="VerticalSlide" />
            </AnimationSettings>
        </ClientSettings>
    </telerik:RadImageGallery>

    <telerik:RadClientDataSource runat="server" ID="RadClientDataSource1"  >
        <DataSource>
            <WebServiceDataSourceSettings BaseUrl ="http://services.thetaskmate.in/api/ImageGallery/aa" >
                <Select Url="http://services.thetaskmate.in/api/ImageGallery/aa"  RequestType="Get"  DataType="JSON"   />
            </WebServiceDataSourceSettings>
        </DataSource>
        <Schema DataName="D" >
             <Model>
                <telerik:ClientDataSourceModelField FieldName="ImageUrl" DataType="String" />
                <telerik:ClientDataSourceModelField FieldName="ThumbUrl" DataType="String" />
                <telerik:ClientDataSourceModelField FieldName="Title" DataType="String" />
                 <telerik:ClientDataSourceModelField FieldName="Description" DataType="String" />
            </Model>
        </Schema>
        <ClientEvents  OnRequestFailed="tst"  OnRequestStart="b" OnDataParse="c" />
    </telerik:RadClientDataSource>

<script type="text/javascript">
    function tst(){
        alert("a");
    }
    function b() {
        alert("b");
    }
    function c() {
        alert("data");
    }
</script>

I get a RequestFailed.

Hristo Valyavicharski
Telerik team
 answered on 25 Jun 2014
1 answer
126 views
 I am trying to get two series on a chart similar like what is in this link
 http://www.telerik.com/help/reporting/understandingelementsseriesseriesproperties.html, but only series 2 is showing up. If I delete the code for series 2. series1 shows up correctly. I am not sure what I am missing. Any help will be appreciated. Below is my code and attached is an image of what I am getting now.
private void chart1_NeedDataSource(object sender, EventArgs e)
        {
            DataSet ds;
            Telerik.Reporting.Processing.Chart chart;
            DateTime stepDate;
            DateTime stepDateNew;
            string interval, AverageName, AverageNameNew, pointLabel, pointLabelnew, interval2;
            int average, Child1, Child2, step, statusId;

            if (_series == null || _seriesNew == null)
            {

                chart = sender as Telerik.Reporting.Processing.Chart;

                ds = CreateChartDataSet();

                DataView view = ds.Tables[0].DefaultView;

                Telerik.Reporting.Chart chartDef = (Telerik.Reporting.Chart)chart.ItemDefinition;
                _series = new Telerik.Reporting.Charting.ChartSeries();
                _seriesNew = new Telerik.Reporting.Charting.ChartSeries();

                AverageName = string.Empty;
                AverageNameNew = string.Empty;

                SetXAxisRange(view);

                foreach (DataRowView rowView in view)
                {
                    statusId = (int)rowView["ID"];
                    step = int.Parse(rowView["Step"].ToString());
                    average = (int)rowView["average"];
                    interval = rowView["Interval"].ToString();
                    interval2 = rowView["IntervalNew"].ToString();
                    handlingPlanName = rowView["AverageName"].ToString();
                    handlingPlanNameNew = rowView["AverageNameNew"].ToString();
                    likelihood = (int)rowView["Child1"];
                    consequence = (int)rowView["Child2"];                   
                    if (interval != interval2 )
                    {
                        DateTime.TryParse(interval, out stepDate);
                        string str = null;
                        str += stepDate.ToString("MM/dd/yy");
                        pointLabel = str;
                    }

                    else
                        pointLabel = string.Empty;
                     
                    if (interval != interval2)
                    {
                        DateTime.TryParse(interval2, out stepDateNew);
                        string strNew = null;
                        strNew += stepDateNew.ToString("MM/dd/yy");
                        pointLabelnew = strNew;
                    }
                    else
                        pointLabelnew = string.Empty;


                    Telerik.Reporting.Charting.ChartSeriesItem seriesItem = CreateSeriesItem(pointLabel, average, statusId);

                    _series.AddItem(seriesItem);


                    Telerik.Reporting.Charting.ChartSeriesItem seriesItemNew = CreateSeriesItemNew(pointLabelnew, average, statusId);

                    _seriesNew.AddItem(seriesItemNew);
                    //}
                    foreach (DataRow dtrow in ds.Tables[0].Rows)
                    {

                        if (string.IsNullOrEmpty(handlingPlanName) && DateTime.TryParse(interval, out stepDate))
                            handlingPlanName = "New Report to Check Children's age";                                             

                    }
                    _series.Appearance.LineSeriesAppearance.Color = Color.Teal;
                    _series.Name = handlingPlanName;
                    _series.Type = ChartSeriesType.Line;
                    chart1.ChartTitle.TextBlock.Text = "New Report to Check Children's age";
                    chartDef.Series.Clear();
                    chartDef.Series.Add(_series);

                    foreach (DataRow dtrowNew in ds.Tables[0].Rows)
                    {
                        if (string.IsNullOrEmpty(AverageNameNew) && DateTime.TryParse(interval2, out stepDateNew))
                            handlingPlanNameNew = "New Report to Check Children's age";

                    }
                    _seriesNew.Appearance.LineSeriesAppearance.Color = System.Drawing.Color.Black;
                    _seriesNew.Appearance.LineSeriesAppearance.EndCap = System.Drawing.Drawing2D.LineCap.ArrowAnchor;
                    _seriesNew.Appearance.LineSeriesAppearance.PenStyle = System.Drawing.Drawing2D.DashStyle.Dash;
                    _seriesNew.Appearance.LineSeriesAppearance.Width = 5;
                    _seriesNew.Name = AverageNameNew;
                    _seriesNew.Type = ChartSeriesType.Line;
                    chart1.ChartTitle.TextBlock.Text = "New Report to Check Children's age";
                    chartDef.Series.Clear();
                    chartDef.Series.Add(_seriesNew);

                }

            }

        }

Ebenezer
Top achievements
Rank 1
 answered on 25 Jun 2014
2 answers
284 views
Greetings,

My RadGrid's MasterTableView is set for ShowHeadersWhenNoRecords="False".  Is there a similar setting for the Group Panel (Drag a column header and drop it here to group by that column) above the header?

Your assistance is appreciated!

Matt
Matt
Top achievements
Rank 1
 answered on 25 Jun 2014
1 answer
66 views
Hi
Radwindow is closing when refresh the parent page.
​
Parent aspx page we are calling this radwindow code:

var oWnd1 = window.radopen('ABC.aspx', 'List');
oWnd1.setSize(800, 490); //set as per req
oWnd1.set_modal(true);
oWnd1.set_behaviors(4 + 32);
return false;

From parent page  we are calling radwindow. here it is showing window . when we click the F5(Refresh)  radwindow is closing automatically.

Please help us.

Please revert back to your comments.

Regards,
Karuna


Marin Bratanov
Telerik team
 answered on 25 Jun 2014
1 answer
119 views
01.protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
02.        {
03.            if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
04.            {
05.                CustomValidator validatorForDescription = new CustomValidator();
06.                RadScheduler scheduler = (RadScheduler)sender;
07.                validatorForDescription.ValidationGroup = scheduler.ValidationGroup;
08.                validatorForDescription.ControlToValidate = "Subject";
09.                validatorForDescription.ErrorMessage = "Job Title should be indicated !";
10.                validatorForDescription.ClientValidationFunction = "validationFunction";
11.                //validatorForDescription.Display = ValidatorDisplay.Dynamic;
12.                //e.Container.Controls.Add(validatorForDescription);               
13.                (e.Container.FindControl("Subject") as RadTextBox).Parent.Controls.Add(validatorForDescription);
14. 
15.                CheckBox allDayCheckbox = (CheckBox)e.Container.FindControl("AllDayEvent");
16.                allDayCheckbox.Style.Add("visibility", "hidden");
17.            }
18.        }
01.<telerik:RadScheduler runat="server" ID="RadScheduler1" TimeZoneOffset="10:00:00" OnAppointmentInsert="RadScheduler1_AppointmentInsert" OverflowBehavior="Expand" Height="100%"
02.               OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete"
03.               DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" OnFormCreated="RadScheduler1_FormCreated"
04.               FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" TimeZoneID="AUS Eastern Standard Time" DisplayDeleteConfirmation="False" SelectedDate="2014-06-24">
05.               <ExportSettings>
06.                   <Pdf PageTopMargin="1in" PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in"></Pdf>
07.               </ExportSettings>
08. 
09.               <AdvancedForm Modal="true" />
10.               <Localization AdvancedNewAppointment="Add a new job" AdvancedSubject="Job Title" AdvancedEditAppointment="Edit Job" AllDay="false" />
11.               <TimelineView UserSelectable="false" />
12.               <TimeSlotContextMenuSettings EnableDefault="true" />
13.               <AppointmentContextMenuSettings EnableDefault="true" />
14.               <Reminders Enabled="false" />
15.               <AppointmentTemplate>
16.                   <div>
17.                       <%# Eval("Subject") %>
18.                       <br />
19.                   </div>
20.               </AppointmentTemplate>
21.           </telerik:RadScheduler>

Here is my code behind and the  html side. Could anybody tell me why I cannot get a custom validator error message when I click OK on my Insert/Edit Form ?
thank you
Bozhidar
Telerik team
 answered on 25 Jun 2014
1 answer
75 views
I am trying to access web mail demo application from the following link but it's not working. Please anyone guide me how can I access?

http://demos.telerik.com/aspnet-ajax/webmail/


Vessy
Telerik team
 answered on 25 Jun 2014
3 answers
143 views
Hi

I have a telerik rad schedular in my page, which is inside a panel, and I have set width of schedular to 100%, but when I resize the browser, the width is not changing.

how can I create a schedular with 100% width?

thanks
Bozhidar
Telerik team
 answered on 25 Jun 2014
9 answers
823 views
Hi,

I am using RadComboBox control with checkbox.
On "RadComboBox2_ItemsRequested" event, I need to set the checkbox for specific items in the combobox.

Can somebody guide me how this can be achieved. I tried many different ways, but was unable to set the checkbox from server side on this event.

Thanks
duraid wadie
Top achievements
Rank 1
 answered on 25 Jun 2014
2 answers
92 views
Hi there,

I have tried the approach of binding scheduler control via web service and I do use the sample that what was provided by Telerik. Basically, copy-paste and change the class of DbProvider which is called from the webservice class by GetAppointment method.
It is taking considerably more time than expected. I did debug the code, and did trace the web service all by the browser tool, and the result doesn't really make me happy. 
Any experience about this topic ? Any advise ?

Thank you very much
Bozhidar
Telerik team
 answered on 25 Jun 2014
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?