Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
Hello Telerik-Team,
I would like to know if there is a maximum width for the rsContentTable, the rsAllDayTable and the rsHorizontalTable.

I'm using the RadScheduler control inside a RadSplitter control. In the day view I'm using grouping and currently I have 31 resources. In the code behind, I set the ColumnWidth property of the RadScheduler object to 200px if the user changes to day view and use overflow-x to create a horizontal scroll bar (otherwise the scheduler will render 31 columns in the width of the RadScheduler control object and the columns will be very small).

Now if I try to switch from the day view into week or month view I get an error. The error looks like an internal telerik error and I added a screen shot.

Now if I do not use 200px as columns width for the grouping, but instead of a width of 151px or smaller, the switching of the views works. In other words, if the width for all resource grouping columns altogether is below 4681px it works, if it is bigger, the error occurrs.

Do you have any ideas?

We are using telerik version 212.2.724.40 and the error occurs both with FF 18.0 and IE 9.

Thanks,
Richard Huber
Plamen
Telerik team
 answered on 23 Jan 2013
4 answers
371 views
Hello Team,

I am trying to export RadhtmlChart (pie chart) to PDF format using third party tool called "EvoPDF" which helps to convert HTML to PDF.
EVO HTML to PDF Converter offers full support for HTML tags, CSS and SVG.


Currently using EvoPDF i am successfully able to generate pie chart into PDF, but issue is the pie chart which is exported to PDF is
getting black.The original pie series consist of various different colors and in the PDF all the pie series are getting black.

Can you help to get the RadHtmlChart work together with EvoPDF.

Did RadHtmlChart support EvoPDF(EvoPDF supports SVG)?

We have attached the Pie chart getting black when exporting it into PDF using EvoPDF approach.

Thanks,
Aakansha
Nicolaï
Top achievements
Rank 2
 answered on 23 Jan 2013
1 answer
64 views
Hi,

I am rendering appointments by using web method some times i got the following error

i don't know how to solve this. let me know what is that problem??????
Plamen
Telerik team
 answered on 23 Jan 2013
1 answer
47 views
hello
when i try to use the example of double clicking edit that you have on your demos section i ran into a problem. the grid disappear instead of entering edit mode.
also, anybody knows how can i start the grid so it will be always in edit mode?
regards 
maor
Shinu
Top achievements
Rank 2
 answered on 23 Jan 2013
1 answer
70 views
Rad
<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadCodeBlock runat="server" ID="radCodeBlock">
        <script type="text/javascript">

        </script>
    </telerik:RadCodeBlock>
    <div>
        <table style="height: 350px; width: 50%; azimuth: center">
           
            <tr>
                <td style="border-top: none; border-color: White">
                    <asp:Label ID="Label17" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                    <asp:Label ID="DateofCommence" runat="server" Text="<%$ Resources:FormName, DtofcommenCommon %>"></asp:Label>
                </td>
                <td style="border-top: none; border-color: White; border-left: none">
                    <telerik:RadDatePicker ID="DateofCommencement" AutoCompleteType="Disabled" runat="server"
                        onkeydown="return (event.keyCode!=13);" ShowPopupOnFocus="true" EnableTyping="false">
                        <DateInput ID="DateInput1" DateFormat="dd/MM/yyyy" runat="server" FocusedStyle-BackColor="Lavender">
                        </DateInput>
                    </telerik:RadDatePicker>
                </td>
            </tr>
</table>
</div>
</asp:content>

That's not open ,
That is inside the <asp:content>
see the image

Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 23 Jan 2013
1 answer
71 views

see the attachment , i have three root nodes ,
i have one drop in  top of the list and i bind the all root node value ,
which value is chosen that value value only going to assign in treelist ,
How i achieve this


Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 23 Jan 2013
1 answer
137 views
I have a RadComboBox with CheckBoxes set true.  How do I trigger a server side event when the ComboBox closes?
Princy
Top achievements
Rank 2
 answered on 23 Jan 2013
1 answer
110 views
Hi there,

I have a problem in using the radGrid in combination with user controls.

As you can see in the enclosed image (=Image1.png) I want to show some part detail infomation to the user by clicking the expand button of the grid.
The image shown is populated by a user control which is added to the placeholder in the code behind.

When I click the expand button for another part the image of the previous part disappears (=Image2.png)

I use the following code:
<NestedViewTemplate>
                    <asp:Panel ID="paPart" runat="server" GroupingText="Part info">
                     
                        <table width="100%">
                            <tr>
                                 
                                <!--Empty-->
                                <td width="5%"></td>
                                 
                                <!--Part detail-->
                                <td width="45%" valign="top">
                                    <table>
                                        <tr>
                                            <td>Partnumber:</td>
                                            <td><asp:Label ID="laPartnumber" runat="server"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td>Description:</td>
                                            <td><asp:Label ID="laDescription" runat="server"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td>Weight:</td>
                                            <td><asp:Label ID="laWeight" runat="server"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td>Volume:</td>
                                            <td><asp:Label ID="laVolume" runat="server"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td>Package quantity:</td>
                                            <td><asp:Label ID="laPackageQuantity" runat="server"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td>Unit of measure:</td>
                                            <td><asp:Label ID="laUnitOfMeasure" runat="server"></asp:Label></td>
                                        </tr>
                                    </table>
                                </td>
                                 
                                <!--Images met Lightbox-->
                                <td align="center" width="50%">
                                    <table width="100%">
                                        <tr>
                                            <td valign="top"><asp:PlaceHolder ID="phPartImage" runat="server"></asp:PlaceHolder></td>
                                            <td>  </td>
                                            <td valign="top"><asp:PlaceHolder ID="phPartImageOther" runat="server"></asp:PlaceHolder></td>
                                        </tr>                                                                                                           
                                    </table>
                                </td>
                            </tr>
                        </table>
                     
                    </asp:Panel>
                </NestedViewTemplate>
 
            </MasterTableView>

protected void grPart_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.CommandName == Telerik.Web.UI.RadGrid.ExpandCollapseCommandName)
            {
                Telerik.Web.UI.GridDataItem Item = e.Item as Telerik.Web.UI.GridDataItem;
 
                if (!Item.Expanded)
                {
                    Telerik.Web.UI.GridNestedViewItem NestedItem = (Telerik.Web.UI.GridNestedViewItem)Item.ChildItem;
 
                    //get part
                    NMHG.Data.Part.Part.Part Part = new NMHG.Data.Part.Part.Part();
                    Part.Partnumber = Item.GetDataKeyValue("Partnumber").ToString();
                    Part.GetPart();
 
                    //Partnumber
                    Label laPartnumber = (Label)NestedItem.FindControl("laPartnumber");
                    laPartnumber.Text = Part.Partnumber;
 
                    //Description
                    Label laDescription = (Label)NestedItem.FindControl("laDescription");
                    laDescription.Text = Part.Description;
 
                    //Weight
                    Label laWeight = (Label)NestedItem.FindControl("laWeight");
                    laWeight.Text = Part.Weight.ToString();
 
                    //Volume
                    Label laVolume = (Label)NestedItem.FindControl("laVolume");
                    laVolume.Text = Part.volume.ToString();
 
                    //Package quantity
                    Label laPackageQuantity = (Label)NestedItem.FindControl("laPackageQuantity");
                    laPackageQuantity.Text = Part.Package_Qty.ToString();
 
                    //Unit of measure
                    Label laUnitOfMeasure = (Label)NestedItem.FindControl("laUnitOfMeasure");
                    laUnitOfMeasure.Text = Part.Unit_of_Measure.ToString();
 
                    //Images
 
                    //get files image directory
                    bool PHOTO_FIRST = true;        //1 of meerdere foto's
                    string FILENAME = Part.Partnumber.Replace(" ", "") + "*.jpg";
                    string DIRECTORY = ConfigurationManager.AppSettings.Get("DIR part images");
                    DirectoryInfo DIRINFO = new DirectoryInfo(DIRECTORY);
                    FileInfo[] BESTANDEN = DIRINFO.GetFiles(FILENAME);
                    foreach (FileInfo BESTAND in BESTANDEN)
                    {
                        //creeer usercontrol PartImage
                        Part.User_controls.PartImage PartImage = (Part.User_controls.PartImage)LoadControl("PartImage.ascx");
                        PartImage.FILENAME = Path.GetFileNameWithoutExtension(BESTAND.Name) + "*.jpg";
                        PartImage.DESCRIPTION = Part.Partnumber + " - " + Part.Description;
                        PartImage.THUMBNAIL = false;                                            //Use/show thumbnail
 
                        if (PHOTO_FIRST == true)
                        {
                            PartImage.WIDTH = 200;
                            PartImage.HEIGHT = 200;
                            PartImage.PARTIMAGE_FILL();
 
                            //add user control to placeholder
                            PlaceHolder phPartImage = (PlaceHolder)NestedItem.FindControl("phPartImage");
                            phPartImage.Controls.Add(PartImage);
                        }
                        else
                        {
                            PartImage.WIDTH = 50;
                            PartImage.HEIGHT = 50;
                            PartImage.PARTIMAGE_FILL();
 
                            //add user control to placeholder other
                            PlaceHolder phPartImageOther = (PlaceHolder)NestedItem.FindControl("phPartImageOther");
                            phPartImageOther.Controls.Add(PartImage);
 
                            //set empty row
                            Label label = new Label();
                            label.Height = Unit.Pixel(20);
                            phPartImageOther.Controls.Add(label);
                        }
 
                        PHOTO_FIRST = false;
                    }
                }
            }
        }


Any idea?

Many thanx!

Marcel
Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Jan 2013
2 answers
127 views
Hi
     I want to empty my grid on a button click. How shall I have it done?? Please share something helpful
thanks
Allen
Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Jan 2013
5 answers
111 views
Hello,

I want to prevent the user from grouping when the grid is currently in edit or insert mode.
For the sort command, I did this in GridItemCommand:

public bool IsInEditMode
      {
         get { return MasterTableView.IsItemInserted || EditItems.Count > 0; }
      }
 
 
private void _GridItemCommand(object sender, GridCommandEventArgs e)
{
     if (IsInEditMode &&
             e.CommandName == RadGrid.SortCommandName)
         {
            e.Canceled = true;
         }

But the grouping won't call the GridItemCommand event handler. How can I cancel the grouping?
Shinu
Top achievements
Rank 2
 answered on 23 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?