Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
193 views
My first attempt did not go well. I've looked at samples, etc. and still can't get this to work. The issues are:

1) I can't get the Y-Axis line to display at the left.
2) I can't get the MinorTick lines to go away.
3) I want to put a red line along the 90% mark and label it as Target.

Chart code and picture of what I'm getting provided below.

<
telerik:RadHtmlChart ID="RadHtmlChart1" runat="server" DataSourceID="supplierAverage" Height="500px" Skin="WebBlue" Width="800px" Visible="true">
    <charttitle Text="FWM SUPPLIER ON-TIME DELIVERY">
        <appearance Align="Center" Position="Top" visible="True">
        </appearance>
    </charttitle>
 
    <Legend>
        <Appearance position="Bottom" Visible="True"></Appearance>
    </Legend>
 
    <plotarea>
        <Series>
            <telerik:ColumnSeries Name="Hardware" DataFieldY="Hardware">
                <LabelsAppearance DataFormatString="{0}%"></LabelsAppearance>
                <SeriesItems>
                </SeriesItems>          
            </telerik:ColumnSeries>
            <telerik:ColumnSeries Name="Raw Materials" DataFieldY="RawMaterials">
                <LabelsAppearance DataFormatString="{0}%"></LabelsAppearance>
                <SeriesItems>
                </SeriesItems>          
            </telerik:ColumnSeries>
        </Series>
        <XAxis DataLabelsField="Month" Visible="True" MinorTickType="None" AxisCrossingValue="1" MaxValue="12" MinValue="1" Step="1">
            <LabelsAppearance DataFormatString="{0}" />
        </XAxis>
        <YAxis maxvalue="100" minvalue="0" name="Percentage" step="10" MinorTickSize="0" MinorTickType="None" Visible="True">
            <TitleAppearance Position="Center" Text="Percentage" />
        </YAxis>
 
    </plotarea>
</telerik:RadHtmlChart>
FWM-Prg
Top achievements
Rank 1
 answered on 18 Dec 2014
3 answers
1.6K+ views
Hi there,


Im currently using RadGrid to display a set of users and Im trying to enable multiple selection of the rows via the GridClientSelectColumn. However, when I turned AllowMultiRowSelection="True" I did not have the ability to select an entire page of rows through the header checkbox. Only once I had enableheadercontextmenus was this made possible. I have noticed that sorting via columns works now also. Why is this the case? Can I get the same effect without context menus? I have attached pictures to better explain what I mean.

Here is the code for my radgrid:

<telerik:RadGrid EnableHeaderContextMenu="true" Skin="Metro" ID="UserListGrid" runat="server" DataSourceID="UserListDatasource" CellSpacing="0" GridLines="None" CssClass="userRadGrid" AllowPaging="True" AllowSorting="True" onpageindexchanged="UserListGrid_PageIndexChanged" AllowMultiRowSelection="True">
        <ClientSettings>
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <MasterTableView DataSourceID="UserListDatasource" AutoGenerateColumns="False">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridClientSelectColumn >
                </telerik:GridClientSelectColumn>
                <telerik:GridBoundColumn DataField="UserId" DataType="System.Guid" FilterControlAltText="Filter UserId column" HeaderText="UserId" SortExpression="UserId" UniqueName="UserId" Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UserName" FilterControlAltText="Filter UserName column" HeaderText="User Name" ReadOnly="True" SortExpression="UserName" UniqueName="UserName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FirstName" FilterControlAltText="Filter FirstName column" HeaderText="First Name" SortExpression="FirstName" UniqueName="FirstName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="LastName" FilterControlAltText="Filter LastName column" HeaderText="Last Name" SortExpression="LastName" UniqueName="LastName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Status" FilterControlAltText="Filter Status column" HeaderText="Status" SortExpression="Status" UniqueName="Status">
                </telerik:GridBoundColumn>
                <telerik:GridButtonColumn ButtonType="LinkButton" UniqueName="DeleteUser">
                </telerik:GridButtonColumn>               
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False" EnableEmbeddedBaseStylesheet="False">
            <WebServiceSettings>
                <ODataSettings InitialContainerName="">
                </ODataSettings>
            </WebServiceSettings>
        </FilterMenu>
        <HeaderContextMenu EnableEmbeddedBaseStylesheet="False" CssClass="GridContextMenu GridContextMenu_Default">
            <WebServiceSettings>
                <ODataSettings InitialContainerName="">
                </ODataSettings>
            </WebServiceSettings>
        </HeaderContextMenu>
    </telerik:RadGrid>

Konstantin Dikov
Telerik team
 answered on 18 Dec 2014
1 answer
316 views
  1. We are migrating SharePoint 2010 solutions to SharePoint 2013. In SharePoint 2013 we need to have dlls only in GAC and not in BIN.

    I tried to check if by moving Telerik dlls to GAC the functionality of the site.

    1- I moved dlls from BIN to GAC with gacutil.exe.
    2- Referred dlls in Visual Studio SharePoint solution from GAC.
    3- When  i deploy the solution i get the below error.

    Could not load file or assembly 'Telerik.Web.UI' or one of its
    dependencies. The system cannot find the file specified. Description:
    An unhandled exception occurred during the execution of the current web
    request. Please review the stack trace for more information about the error and
    where it originated in the code.

    Exception Details:
    System.IO.FileNotFoundException: Could not load file or assembly
    'Telerik.Web.UI' or one of its dependencies. The system cannot find the file
    specified.
  2. When deploying the SharePoint solution, i can see this in Visual Studio, the warning icon at Telerik.Web.UI.dll (attached image)

What is the way where i can push the Telerik dlls to GAC.

 

Marin Bratanov
Telerik team
 answered on 18 Dec 2014
3 answers
270 views
I'm adding my markers and tooltip in code behind, is there an easy way to get the tooltip to be opened when the page loads?

ShowOnPageLoad="True" for example

​
RBarnes
Top achievements
Rank 1
Iron
Iron
 answered on 18 Dec 2014
3 answers
459 views
Hi Team

I have textbox with textmode = "multline" in radGrid Batch editting Mode. After typing multiple line using carriage return (enter key) after each line for example

1. The boy is genius
2. keep coding

When I hit the save changes button I receive the error: Unterminated String Constant. 

If I omit the new line i.e 1. The boy is genius. It save perfectly.

I Tried doing something like this.  1.The boy is genius \n 2. Keep Coding. it works and display as multiline in edit mode.

Any Suggestions

Thank You..
Konstantin Dikov
Telerik team
 answered on 18 Dec 2014
4 answers
548 views
Hi
I have a Radiobutton next to every row of RadGrid.
I am trying to access the datakeyvalue of a selected row using radiobutton, i.e., when particular row's Radiobutton of RadGrid is checked, then on 'CheckedChanged' event of RadioButton, I am trying to get the datakey value of that row inside a label or variable.

aspx page Code:
<telerik:RadGrid ID="RadGrid1" EnableViewState="false" runat="server" AllowPaging="true"
                        AllowSorting="False" AllowFilteringByColumn="true" GridLines="None" OnInit="RadGrid1_Init" OnDeleteCommand="RadGrid1_DeleteCommand">
                        <ItemStyle Wrap="false"></ItemStyle>
                        <MasterTableView AllowMultiColumnSorting="true" TableLayout="Fixed" DataKeyNames="Id" ClientDataKeyNames="Id">
                            <Columns>
                                <telerik:GridNumericColumn DataField="Id" HeaderText="Id" HeaderStyle-Width="100px" AllowFiltering="False"
                                    FilterControlWidth="50px">
                                </telerik:GridNumericColumn>
                                <telerik:GridBoundColumn DataField="Description" HeaderText="Description" AndCurrentFilterFunction="Contains" FilterListOptions="AllowAllFilters">
                                </telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="" HeaderText="Select">
                                    <ItemTemplate>
                                        <asp:RadioButton ID="rbdSelect" runat="server" AutoPostBack="true" OnCheckedChanged="rbdSelect_CheckedChanged"></asp:RadioButton>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                        </MasterTableView>
.cs page code:
protected void rbdSelect_CheckedChanged(object sender, EventArgs e)
        {
            foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
            {
                RadioButton rbd = (RadioButton)item.FindControl("rbdSelect");
                if (rbd.Checked==true)
                {
                    string key = item.GetDataKeyValue("Id").ToString();
                    //string id = RadGrid1.MasterTableView.Items[0].GetDataKeyValue("Id").ToString();
                }
            }
            Response.Redirect("~/PrintInvoice.aspx");
        }
but unable to get the DataKeyValue of selected row.

I also want to call the selected row's DataKeyValue on another page(say Default.aspx), to show the particuar RadGrid row's record on other page(say Default.aspx)

Please help me what is missing in my code?

Konstantin Dikov
Telerik team
 answered on 18 Dec 2014
5 answers
456 views
Howdy,

I have an issue where Telerik is styling my submit input fields.

For example this one:
<input type="submit" name="search" value="Book Now">

Get's automatically styled with the Telerik RadButton style using the Default Skin for the project (with is MetroTouch).

I have attached a screenshot of what happens.

Thanks

Andrew

Danail Vasilev
Telerik team
 answered on 18 Dec 2014
1 answer
108 views
I just completed my first RadHtmlChart (woot!). Everything is just as I wanted it except one thing. This is a column chart showing percentages from 0 to 100. I need the 90% line to either be red, or to somehow overlay a red line along this line to show the target percentage we're shooting for. I'm populating this with SQL, so if it can be done by adding a field to the query that would be fine. Image of what I'm trying to do is attached.

Thanks!!
Danail Vasilev
Telerik team
 answered on 18 Dec 2014
1 answer
119 views
Here's what I'm trying to accomplish (and I know it has to be possible, just haven't found a way as of yet). I have a RadGrid which is populated from a database, when a row is clicked I want to open a modal RadLightBox with information pertaining to the selected record (I guess load an ASP.NET page inside the RadLightBox when it loads).

Can anyone help me with this?
Eyup
Telerik team
 answered on 18 Dec 2014
1 answer
904 views
Hi,

I have a page with a dropdown and a radgrid with filtering on.  Depending on the selection on de dropdown another datatable is loaded in the radgrid. 

Problem I have now is when I have a datatable loaded and set a filter on and I change the selection in the dropdown to get another datatable the error 'neither a datacolumn nor a datarelation for table' occurs.

protected void grdEnquiry_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    if (ddlEnquiry.SelectedValue != "-1")
    {
            BLogic.Enquiry Enquiry = new BLogic.Enquiry(Convert.ToInt16(ddlEnquiry.SelectedValue)); 
           grdEnquiry.DataSource = BLogic.Enquiries.Execute(Enquiry.System, Enquiry.Type, Enquiry.File);
    }
}

protected void ddlEnquiry_SelectedIndexChanged(object sender, EventArgs e)
{
    grdEnquiry.Rebind();
}

How can I fix this?

Kind regards

Suzy
Viktor Tachev
Telerik team
 answered on 18 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?