Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
181 views
HI All, I hope someone can help me here. I am trying to work my through the sales dashboard on the website and see how it all hangs together. I have probably got my head around 80% of it, but I can not work out how the chart on the stats page is driven. There is no data source or sql statement to the database and it is not driven my a xml file. I am just starting with the Telerik product but I am a sql developer and have done asp, so this one is pushing my knowledge. but bet it is a simple fix. Link to website is

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

The script I think it needs to be focused on is below, but I can not see how or where. Guru needed to guide

Script in question

<telerik:RadHtmlChart ID="RadHtmlChartOrdersPercent"
runat="server"
Width="700px"

           
Height="600px">

           
<Appearance>

               
<FillStyle
BackgroundColor="Black"></FillStyle>

           
</Appearance>

           
<ChartTitle
Text="Representative
Sales vs. Total Sales">

           
</ChartTitle>

           
<Legend>

               
<Appearance
Position="Top"
/>

           
</Legend>

           
<PlotArea>

               
<Appearance>

               
</Appearance>

               
<YAxis>

                   
<MajorGridLines
Visible="true"></MajorGridLines>

                   
<MinorGridLines
Visible="false"></MinorGridLines>

                   
<LabelsAppearance
DataFormatString="{0:C0}">

                   
</LabelsAppearance>

           
    </YAxis>

               
<XAxis>

                   
<MajorGridLines
Visible="false"
/>

                   
<MinorGridLines
Visible="false"
/>

               
</XAxis>

               
<Series>

                   
<telerik:BarSeries Name="Representative
Sales">

                       
<Appearance>

                           
<FillStyle
BackgroundColor="#b1c85a"></FillStyle>

                       
</Appearance>

                       
<LabelsAppearance
DataFormatString="{0:C0}">

        
               </LabelsAppearance>

                       
<TooltipsAppearance
BackgroundColor="#b1c85a"
ClientTemplate='Date:
#=category#<br/>Rep Sales hello: #= kendo.toString(value,
"C0")#'>

                       
</TooltipsAppearance>

                   
</telerik:BarSeries>

                   
<telerik:BarSeries Name="Total
Sales">

                       
<Appearance>

                           
<FillStyle
BackgroundColor="#93d6d8"></FillStyle>

                       
</Appearance>

                       
<LabelsAppearance
DataFormatString="{0:C0}">

                       
</LabelsAppearance>

                       
<TooltipsAppearance
BackgroundColor="#93d6d8"
ClientTemplate='Date:
#=category#<br/>Total Sales: #= kendo.toString(value,
"C0")#'>

                       
</TooltipsAppearance>

                   
</telerik:BarSeries>

               
</Series>

           
</PlotArea>

       
</telerik:RadHtmlChart>

 

Danail Vasilev
Telerik team
 answered on 17 Oct 2014
5 answers
59 views
when clicking on rad menu items it navifates to new aspx page but i want that new aspx page to be displayed under radmenu items list
Hristo Valyavicharski
Telerik team
 answered on 17 Oct 2014
1 answer
50 views
Usually we set tab index for every control but when we set for AutoCompleteBox but its just focusing but cant find cursor in the control. Please suggest me a solution. I have tried by doing JavaScript onkeydown on click on tab but no luck.

Thanks,
Rajender A
Nencho
Telerik team
 answered on 17 Oct 2014
4 answers
141 views
Hey guys,

I've been following your documentation at:

http://www.telerik.com/help/aspnet-ajax/grid-model-binding-and-strongly-typed-data-controls-support.html

I'm trying to get the strongly typed binding to work. I am setting the ItemType to a publicly available object and I cannot seem to access Item object in my radgrid binding in the ItemTemplate. I've followed the examples to the tee and cannot get this to work. I've also tested this on the same page with a asp:GridView and it works great. I have the latest version of telerik AJAX controls (Q2 2014). I can't figure out what I'm doing wrong. Can anyone help?
Viktor Tachev
Telerik team
 answered on 17 Oct 2014
1 answer
150 views
How can I set width of textbox, dropdown in edit mode while batch editing?
This code is not working :
        protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))
            {
                GridEditFormItem editItem = (GridEditFormItem)e.Item;
                TextBox txtbx = (TextBox)editItem["LVL"].Controls[0];
                txtbx.Width = Unit.Pixel(20);
            }
        }
I dont want to have half of textbox visible, example in attachment.


Jacek
Top achievements
Rank 1
 answered on 17 Oct 2014
7 answers
90 views
I'm using version 2013.3.1114.40 of the Telerik.Web.UI dll. When a user is typing in text into the RadEditor, IE8 crashes. What is the cause and what is a possible fix?

Thanks!
Marin Bratanov
Telerik team
 answered on 17 Oct 2014
1 answer
117 views
Hi guys,
I am using Telerik version 2014 Q1. I have a menu items with sub items, you can check attached image.
I want to set a value to the variable when I clicked on particular SubItem. There is load event, I tried to do, but its not working out.
Can anybody please let me know how to set a value to the variable when click on subitem.

Thanks in advance.

Nencho
Telerik team
 answered on 17 Oct 2014
1 answer
77 views
Hi,

We have to grids on a page that when on the update/insert command event, if the validation code finds an error, it adds an exclamation mark image to GridEditCommandColumn along with a corresponding tooltip to let the user know what the error was and where. It works perfectly in the top grid, which is essentially a parent grid for the one below it. The code below is showing how the validation/error works for both grids:

 protected void FundGrid_InsertCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {
            Telerik.Web.UI.GridEditableItem editedItem = e.Item as Telerik.Web.UI.GridEditableItem;

            Hashtable newValues = new Hashtable();
            editedItem.ExtractValues(newValues);

            Decimal grndkey = (Decimal)GroundGrid.MasterTableView.DataKeyValues[GroundGrid.SelectedItems[0].ItemIndex][GroundCardColumn.GroundId.ToString()];
            newValues[GroundFundingColumn.GroundId.ToString()] = grndkey;

            List<String> errorlist = new List<string>();
            GroundFunding gf = null;
            e.Canceled = !((IGroundCardTask)ServiceManager).UpdateFunding(this.UserContext, ref gf, newValues, errorlist);
            if (e.Canceled)
                showGridRowUpdateError(editedItem, errorlist);
            else
            {
                if (errorlist.Count > 0)
                {
                    handleFundingStatusChangedNotification(gf.GroundId, errorlist);
                }
            }
        }

And the following code is how the edit item and error list are displayed to the customer:

 private void showGridRowUpdateError(Telerik.Web.UI.GridEditableItem editItem, List<String> errors)
        {
            //
            TableCell cmdCell = ((Telerik.Web.UI.GridDataItem)editItem)["Cmd"];

            Image img = new Image();
            img.ID = "ErrorImage";
            img.ImageUrl = "~/Images/ErrorAlertSmall.gif";
            img.CssClass = "ErrorAlertPopup";

            cmdCell.Controls.Add(img);

            BulletedList bulletList = new BulletedList();
            bulletList.ID = "ErrorList";
            bulletList.CssClass = "ErrorBulletList";

            foreach (String sMessage in errors)
            {
                bulletList.Items.Add(new ListItem(sMessage));
            }

            ErrorToolTip.TargetControlID = img.ClientID;
            ErrorToolTip.IsClientID = true;
            ErrorToolTip.Controls.Add(bulletList);
            ErrorToolTip.Show();
        }

For some reason, this does not work on on the bottom Funding Grid. Works perfectly everywhere else in the solution, but not here. The grid is marked up as follows:

<telerik:RadGrid ID="FundGrid" runat="server"
                                AutoGenerateColumns="False"
                                GridLines="None"
                                Width="740px"
                                onneeddatasource="FundGrid_NeedDataSource"
                                onitemdatabound="FundGrid_ItemDataBound"
                                OnItemCreated="FundGrid_ItemCreated"
                                ondeletecommand="FundGrid_DeleteCommand"
                                oninsertcommand="FundGrid_InsertCommand"
                                onupdatecommand="FundGrid_UpdateCommand"
                                OnDataBound="FundGrid_DataBound"
                                AllowMultiRowEdit="false"
                                Enabled="false"
                                EnableLinqExpressions="false">
                      <MasterTableView Caption="Funding Data for Ground Card: " EditMode="InPlace" ShowFooter="True" DataKeyNames="GroundId,FundingOrdBy" Width="740px">
                                    <RowIndicatorColumn>
                                        <HeaderStyle Width="20px" />
                                    </RowIndicatorColumn>
                                    <ExpandCollapseColumn>
                                        <HeaderStyle Width="20px" />
                                    </ExpandCollapseColumn>
                                    <Columns>
                                        <telerik:GridEditCommandColumn UniqueName="cmd" CancelText="Go Bac" EditText="Edit" InsertText="Insert"
                                            UpdateText="Update" ButtonType="ImageButton">
                                            <HeaderStyle Width="50px" />
                                        </telerik:GridEditCommandColumn>
                                        <telerik:GridBoundColumn HeaderText="Ground Id" DataField="GroundId" UniqueName="GroundId" ReadOnly="true" Visible="false">
                                            <HeaderStyle Width="100px" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Receiver Cost Ctr" DataField="ReceiverCostCtr" UniqueName="ReceiverCostCtr" MaxLength="10">
                                            <HeaderStyle Width="110px" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Receiver Network" DataField="ReceiverNetwork" UniqueName="ReceiverNetwork" MaxLength="24">
                                            <HeaderStyle Width="150px" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Receiver Activity" DataField="ReceiverOperation" UniqueName="ReceiverOperation" MaxLength="8">
                                            <HeaderStyle Width="110px" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridNumericColumn HeaderText="Hours" DataType="System.Decimal" Aggregate="Sum" FooterText=" " DataField="Hrs" DataFormatString="{0:F1}" UniqueName="Hrs" MaxLength="5">
                                            <HeaderStyle Width="40px" />
                                        </telerik:GridNumericColumn>
                                    </Columns>
                                </MasterTableView>
                                <ClientSettings>
                                    <Selecting AllowRowSelect="True" />
                                    <Scrolling AllowScroll="True" ScrollHeight="90px" UseStaticHeaders="True" />
                                    <ClientEvents OnRowContextMenu="FundingRowContextMenu" OnRowDblClick="RowDblClick" />
                                </ClientSettings>
                            </telerik:RadGrid>

Any help at all would be appreciated. Been struggling with this for several days and have not been able to add/clear any of the controls on the grid column.

Thanks,

- Joe
Eyup
Telerik team
 answered on 17 Oct 2014
2 answers
94 views
Hi Everyone,

I ran into a problem and was wondering if anyone have a solution.  I created a Radgrid, populate the grid with an EntityDataSource with Automatic CRUD. Everything works great expect I notice a huge paging issue.  If my PageSize="5" and I have 6 records which will give me two pages.  If I go to page 2 and delete the 6th row/item the RadGrid  show the grid as empty. It doesn't go to page 1 and display the remaining 5 rows. If I hit the refresh button on the grid, still not working.  I have to reload the page before it display the 5 record in the grid.  I try putting the grid in a RadAjaxPanel, still no luck.  If I used SqlDataSource, it work fine without any problems.  Is there something that I'm missing?

Anthony
Viktor Tachev
Telerik team
 answered on 17 Oct 2014
1 answer
220 views
Hi, 
I am using "UI for ASP.Net AJAX Q2 2014", Telerik.Web.UI.dll version is 2014.2.618.45, Visual studio 2013 and developing a website.
One of my requirement is to display pdf file with Agree/Do not Agree buttons. 
I am thinking to display pdf file contents in RadEditor ( editing disabled ).
I have pdf file stored into SQL Server database field and I am reading from database and converting to byte[].
Now I want to assign this byte[] to RadEditor so that it displays pdf text as it is with formatting. 
Can you tell me how should I assign byte[] to RadEditor to display that text? 

I will disable editing to it will just look like text, and will provide Agree/Do not agree button so I can capture button click and go accordingly. 
I will be putting this RadEditor in a webform, with above buttons, and will open up that form as Modal form using RadWindow, so user will need to click Agree to continue process. 

Thanks in advance, 


Marin Bratanov
Telerik team
 answered on 17 Oct 2014
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?