Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
194 views
I am having a issue displaying data from a dataset to a Hierarchical RadGrid. I have created a small solution that will display the issue, but I have no way of posting it. the solution is a n-teir solution and a website that is built to use user controls to build and display the data. I am defining the hierarchical datagrid in a .cs class in my controls folder of the website.

Data: I have 3 rows of data in the Parent and each row has child records.
  • Row 1 displays properly
  • Row 2 displays properly
  • Row 3 does not display any data until you move to page 2 on the pager control. Incidentally the record ID's for the child records in row 3 begin at 12 and the page size is set for 10 records to be displayed per page.

I am wondering if there is a problem with my Grid definition class. The Sample DataSet in the DAL appears to be correctly set up but I feel I have overlooked something.

Let me know how I can upload the solution.

Edit:
I did some additional checking and it seems that the grid is loading the data based on the ID of the record rather than the row number.
On Row 2 the child table ID's are 5 - 11. I have 10 records being displayed per page. Records 5-10 display on the first page. If I change the Page size to 5 then 1 record displays, the record with the ID 5. I am assuming I have missed some setting on the grid definition else this is a really bad defect.
Tim
Top achievements
Rank 2
 answered on 30 Jun 2011
3 answers
204 views
Can you please tell me if it's possible to fire the ToolTip when the appointment is clicked in a RadScheduler rather than have it fire every time someone mouses over an appointment?

Thanks in advance,
David
Pradeep
Top achievements
Rank 1
 answered on 30 Jun 2011
1 answer
104 views
See attached image. I would like to set the labels under each of the bars in my bar chart. They are currently just 1, 2, and 3. How would I could about manually setting them?

Here is my code for building that chart:

protected void makeStockChart()
        {
            RadChart stockChart = new RadChart();
            stockChart.ChartTitle.Visible = false;
            stockChart.Appearance.Border.Visible = false;
            stockChart.Legend.Appearance.Visible = false;
            stockChart.PlotArea.YAxis.Appearance.Visible = Telerik.Charting.Styles.ChartAxisVisibility.False;
            stockChart.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.White;
            stockChart.PlotArea.Appearance.FillStyle.SecondColor = System.Drawing.Color.White;
            stockChart.PlotArea.Appearance.Border.Color = System.Drawing.Color.White;
 
            // Create a ChartSeries and assign its name and chart type
            ChartSeries chartSeries = new ChartSeries();
            chartSeries.Name = "Count";
            chartSeries.Type = ChartSeriesType.Bar;
 
            // Open SQL Connection
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
            connection.Open();
            SqlCommand command = new SqlCommand("GetStockData", connection);
            command.CommandType = CommandType.StoredProcedure;
            SqlDataReader reader = command.ExecuteReader();
 
            while (reader.Read())
            {
                // Pretty up the value
                string value = string.Format("{0:d}", (reader.GetValue(1)));
                
                // Set value and value text
                ChartSeriesItem chartSeriesItem = new ChartSeriesItem(Convert.ToDouble(reader.GetValue(1)), value);
                chartSeriesItem.Name = reader.GetValue(0).ToString();
                 
                chartSeries.AddItem(chartSeriesItem);
                 
            }
             
            // Close SQL Connection
            connection.Close();
 
            // add the series to the RadChart Series collection
            stockChart.Series.Add(chartSeries);
            // add the RadChart to the page.
            this.stockChart.Controls.Add(stockChart);
             
        }
William
Top achievements
Rank 1
 answered on 30 Jun 2011
2 answers
105 views
Hi

I am using a RadToolBar with several buttons.

I can get the client side event to fire, but I cann't figure out how
to identify which button was clicked.

I'm sure its obvious. :-)

TIA
Yohancef
Top achievements
Rank 1
 answered on 30 Jun 2011
4 answers
129 views
Trying to use the timepicker control, setting Skin="mySkin" and EnableEmbeddedSkins="false" , just like i do with any other telerik controls. I've got the .css file included on the page. my DatePicker styles fine, but the TimePicker does not. Looking at the source html, the timepicker html tags do not even get the custom skin. Not sure what the problem is?

any idea what's going on ? below is my .css styles. are these not the correct style classes for the control anymore?


<telerik:RadTimePicker ID="RadTimePicker1" Skin="mySkin" EnableEmbeddedSkins="false" runat="server" > 
<TimeView runat="server" StartTime="07:00:00" EndTime="20:00:10" /> 
</telerik:RadTimePicker> 

/*time view*/ 
 
table.RadCalendarTimeView_mySkin 
    border-collapse:separate
    border:1px solid #75b064
    background:#ffffff
    font:11px "segoe ui",arial,sans-serif
 
.RadCalendarTimeView_mySkin th 
    border:0; 
    border-bottom:1px solid #a8cf9d
    padding:0 0 1px
    background:#caf2c2 0 -1000px repeat-x url('../_images/Calendar/sprite_green.gif'); 
    color:#006e0b
    text-align:center
    line-height:23px
    cursor:default
    font-weight:normal
 
table.RadCalendarTimeView_mySkin td 
    border:0; 
    border-left:1px solid #acdb9c
    padding:2px 2px 3px
 
table.RadCalendarTimeView_mySkin td:first-child 
    border-left:0; 
 
.RadCalendarTimeView_mySkin a 
    display:block
    padding:2px 6px
    text-align:center
    color:#000000
    text-decoration:none
 
.RadCalendarTimeView_mySkin td.rcSelected a 
    border:1px solid
 
    padding:1px 5px
    background:#fa83fc 0 -1700px repeat-x url('../_images/Calendar/sprite_green.gif'); 
 
.RadCalendarTimeView_mySkin td.rcHover a 
    border:1px solid #299926
    color:#299926
    padding:1px 5px
    background:#ff80fd 0 -1600px repeat-x url('../_images/Calendar/sprite_green.gif'); 
 
.RadCalendarTimeView_mySkin .rcFooter 
    border:0; 
    border-top:1px solid #75b064
    padding:0; 
 

Lisa
Top achievements
Rank 1
 answered on 30 Jun 2011
1 answer
167 views
I'm trying to convert some AJAX modal popup extenders to RadWindows, but the LinkButtons in my RadWindows no longer trigger my UpdateProgress to appear on postback.  The end result is that the user has no indication that the action is occurring and can click the buttons as many times as they choose.  When I try and add the LinkButton as triggers to the UpdatePanel, I get an error that the control doesn't exist.  Is there a way to associate controls in a RadWindow as UpdatePanel triggers?  Here's a simplified version of the ASPX.

<asp:UpdateProgress ID="updProgress" AssociatedUpdatePanelID="updPanel" runat="server">
    <ProgressTemplate>
        <asp:Panel ID="progressPanel" runat="server" CssClass="IPUpdateProgress">
            <table align="center">
                <tr>
                    <td align="center" valign="middle">
                        <asp:Label ID="lblUpdateInProgress" runat="server" CssClass="IPLabelText" Text="Update in progress..."></asp:Label>
                        <asp:Image ID="imgGlobalProcessing" runat="server" ImageUrl="/Images/ajax-loader.gif" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel runat="server" ID="updPanel" UpdateMode="Conditional" ChildrenAsTriggers="true">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="lnxbtnNew" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="drxlstSearch" EventName="SelectedIndexChanged" />
        <asp:AsyncPostBackTrigger ControlID="tbxSelectedValue" EventName="TextChanged" />
    </Triggers>
    <ContentTemplate>
        <telerik:RadWindow runat="server" ID="rwNewExport" Modal="true" Title="Create New Export" Skin="IP" EnableEmbeddedSkins="false" AutoSize="true" VisibleStatusbar="false">
            <ContentTemplate>
                <table cellspacing="0" cellpadding="2" width="580px">
                    <tr>
                        <td colspan="3"><asp:Label ID="lbxNewValidationError" CssClass="IPValidationError" runat="server"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label111" runat="server" CssClass="IPLabelText">Export Country</asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="drxlstNewExportCountry" runat="server" CssClass="IPDropDownList" Width="400px">
                            </asp:DropDownList>
                        </td>
                        <td rowspan="2">
                            <asp:LinkButton ID="lnxbtnSaveNew" runat="server" Style="padding-right: 4px; padding-left: 4px; padding-bottom: 4px; padding-top: 4px" CssClass="IPLinkButton">Go</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label112" runat="server" CssClass="IPLabelText">Import Country</asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="drxlstNewImportCountry" runat="server" CssClass="IPDropDownList" Width="400px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3"> </td>
                    </tr>
                    <tr runat="server" id="rowTemplateHeader" class="IPGridHeader">
                        <td colspan="3">
                            <asp:Label ID="Label113" runat="server">Create New Export From Template</asp:Label>
                        </td>
                    </tr>
                    <tr runat="server" id="rowTemplate">
                        <td>
                            <asp:Label ID="Label114" runat="server" CssClass="IPLabelText">Template</asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="drxlstTemplates" runat="server" CssClass="IPDropDownList" Width="400px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:LinkButton ID="lnxbtnSaveFromTemplate" runat="server" Style="padding-right: 4px; padding-left: 4px; padding-bottom: 4px; padding-top: 4px" CssClass="IPLinkButton">Go</asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </telerik:RadWindow>
    </ContentTemplate>
</asp:UpdatePanel>
Matt DiPietro
Top achievements
Rank 1
 answered on 30 Jun 2011
2 answers
569 views
Hello All,

   I have a RadGrid with EditCommand Column  as the first column in the grid. I have a edit image set for all the rows in that column. I did this by putting the editImageURL property.
Now. My question is, Is there a way to change the Image of that column dynamically based on the value of other column in the grid?

I want to change the first column's image of a grid based on other column value. Can i do it in the aspx page or Is it best way to do it from code behind?

If I have to do it from Code behind, How can I access the image folder( which has all the images  I am using in the project) in my project from code behind. If it is aspx page we can set the property like editImageUrl .
Jagat
Top achievements
Rank 1
 answered on 30 Jun 2011
10 answers
1.2K+ views
On one of my pages I'm getting this error when I click on the calender control on my page...

Error: [Exception... "'Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"  data: no]

It doesn't give the error when I run from VS 2008 but when I promote to any other server I get the error. It only happens when I click on the calender control.

I searched these forums (and others) and have tried all of the suggestions (there are no response.writes, response.transfers, or anything like that).
Sérgio
Top achievements
Rank 1
 answered on 30 Jun 2011
3 answers
136 views
Hi. I was wondering how I could export data that's been rendered in a Treelist, into an Excel file, maybe not with the methods included with control, but some other class which I could use.

Could anyone help me? 
Thanks in advance.
Daniel
Telerik team
 answered on 30 Jun 2011
2 answers
87 views
Hi,

I am opening a radWindow on click on a radgrid column. When RadWindow displayes, the background gets blur and can not read the things on it. How can I keep the background clear so that user can read it.

Please help,
Smiely
Smiely
Top achievements
Rank 1
 answered on 30 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?