Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
426 views

I have a table in my Radgrid footer.  Looks like the <td> top-border has been added to my table.  not sure but i think it is inheriting it from .rgFooter but I can't that class in my css file.

Attached a pic of my results and my table.  Thanks.

J S
Top achievements
Rank 1
 answered on 25 May 2016
1 answer
63 views

Hi Everyone,

We are having a problem with the File Explorer uploading xlsx documents. My developers believe it is because of our SSL. Can anyone help us with this?

Vessy
Telerik team
 answered on 25 May 2016
1 answer
107 views
When SingleClick="Button" in a toolbar, buttons with NavigateURl and target="blank" no longer appear to work.
Peter Milchev
Telerik team
 answered on 25 May 2016
3 answers
252 views
I would like to use StackPanel inside Grid for Web UI. But I can't find any docs or demo. How can I use StackPanel in web?
Viktor Tachev
Telerik team
 answered on 25 May 2016
1 answer
254 views

I have a need to add custom text to graphs which are completely independent of the title or legend -- for instance, perhaps a "Generated Date" in the upper-left corner.  I have seen some examples of customizing legends or titles using the KendoUI API.  I am not familiar with this, but even so the examples show customizing other parts of the graph that already exist.

Any examples or documentation or hints available for this scenario?

Thanks!
Adam

Marin Bratanov
Telerik team
 answered on 25 May 2016
0 answers
217 views

Help me,

I create project webApplication and add :

<telerik:RadEditor ID="radContact" Skin="Default" runat="server" Height="150px" Width="100%"
                                        ToolsFile="~/App_Data/ToolsFileSmall.xml" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd">
                                        <Content>
                                        </Content>
                                    </telerik:RadEditor>

and add "RegisterRoutes" in Global.asax:

void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
           RegisterRoutesDemo(RouteTable.Routes);
        }
        private void RegisterRoutesDemo(RouteCollection routes)
        {
            routes.MapPageRoute("chitiet_sanpham", "san-pham/{productName}/{ProductId}", "~/ProductDetail.aspx");
            routes.MapPageRoute("chuyenmuc_sanpham", "chuyen-muc/{categoryName}/{CategoryId}", "~/ProductCategory.aspx");
            routes.MapPageRoute("store", "{account}", "~/StoreOwn.aspx");
            routes.MapPageRoute("register", "dang-ky/dang-ky-gian-hang", "~/Registion.aspx");

            routes.MapPageRoute("home", "", "~/Default.aspx");
        }

Then I run project error Editor. You can help me fix error. Thanks

 

 

Vo
Top achievements
Rank 1
 asked on 25 May 2016
1 answer
92 views
We are using a Windows client application Microsoft Customer Care Accelerator.We have implemented the spell check in email body which works fine when email in opened in IE browser.
But when we open the email in the Windows client application which hosts it on a WPF control, we are not able to use mouse to select the results of the spell check.
Please refer the attach screen-shot for reference.
Any advice or help is greatly appreciated.
Marin Bratanov
Telerik team
 answered on 25 May 2016
1 answer
108 views
Hi,

Im using radhmtl chart and binding the data using Dataset, I want to show the column series on different colors based on data, Can you please help how to add different colors for columnseries based on the condition I have, following is the code
<telerik:RadHtmlChart runat="server" ID="RadHtmlChart5" Width="600px" Height="400px" Visible="false" OnDataBound="RadHtmlChart5_DataBound">

<PlotArea>
<Series>
<telerik:ColumnSeries Name="Hours" DataFieldY="TotalHours">
<TooltipsAppearance Color="White"></TooltipsAppearance>
</telerik:ColumnSeries>
</Series>
<XAxis DataLabelsField="Service"></XAxis>
<YAxis><MinorGridLines Visible="false"></MinorGridLines></YAxis>
</PlotArea>
<Legend><Appearance Visible="false"></Appearance></Legend>
<ChartTitle Text="Total Hours Per Service"></ChartTitle>
</telerik:RadHtmlChart>


DataTable dt = new DataTable();
dt=Cls.GetAllData(id);
RadHtmlChart5.Visible = true;
for(int i=0; i<dt.Rows.Count; i++)
{


if (dt.Rows[0]["Service"].ToString() == "Employee")
{
//I want to show columnserries color as red
}
if (dt.Rows[0]["Service"].ToString() == "Vendor")
{
//I want to show columnserries color as blue
}
if (dt.Rows[0]["Service"].ToString() == "Contractor")
{
//I want to show columnserries color as green}
}

RadHtmlChart5.DataSource = dt;

RadHtmlChart5.DataBind();
Marin Bratanov
Telerik team
 answered on 25 May 2016
4 answers
59 views

I have one radcombobox inside update panel.

when i changed the value of it,that value add in same dropdwon again.

Suppose i select item1 then dropdwon result is

item1

item1 

Plamen
Telerik team
 answered on 25 May 2016
3 answers
158 views

I have a RadGrid with a Hyperlink column in an ASP.Net page with VB.net as the code-behind in a RadWindow.

When user clicks on hyperlink column in the RadGrid, it should open another RadWindow that loads an ASP.Net page with some of the data from the row the user clicked on.  But the problem is that it does not work on every row.  It only works on some of the rows.  It needs to work on every row.

I have even tried just putting the alert function in OpenUpdateCancelOrderWindow javascript function to see if it is calling the javascript function when clicking on the hyperlink.

Based on the alert not always popping up, it appears that the hyperlink in each row is not always getting the event handler attached to it.

What is causing the problem?  How to resolve this?

Is there a better way to do this?

Please help!

Here is my RadGrid:

---------------------------------------------------------------------------------------

        <telerik:RadGrid ID="rgRYGRelOrders" runat="server" Height="416px" Width="947px" AutoGenerateColumns="False" AllowPaging="True" PageSize="100" 
                          OnDataBinding="rgRYGRelOrders_DataBinding" OnPageIndexChanged="rgRYGRelOrders_PageIndexChanged" OnNeedDataSource="rgRYGRelOrders_NeedDataSource" ShowGroupPanel="True" ShowStatusBar="True">
            <GroupingSettings CollapseAllTooltip="Collapse all groups" />
            <ExportSettings IgnorePaging="true">
                <Pdf AllowPrinting="False">
                </Pdf>
                <Excel FileExtension="xlsx" Format="Xlsx" />
            </ExportSettings>
            <ClientSettings>
                <Selecting AllowRowSelect="true" />
                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
            </ClientSettings>
            <MasterTableView EnableViewState="true" EnableLinqGrouping="False" DataKeyNames="ORDERDATE,RSDC_PART_NO,MILL_PART_NO,PO_SUPPLIER_CODE,QUANTITY,DELIVERYDATE,COMMENTS,ORDSTAT,USER_ID" ClientDataKeyNames="ORDERDATE,RSDC_PART_NO,MILL_PART_NO,PO_SUPPLIER_CODE,QUANTITY,DELIVERYDATE,COMMENTS,ORDSTAT,USER_ID">
                <Columns>
                    <telerik:GridBoundColumn DataField="ORDERDATE" FilterControlAltText="Filter column0 column" HeaderText="Date/Time" ReadOnly="True" UniqueName="OrderDateTime">
                        <HeaderStyle Width="150px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="RSDC_PART_NO" FilterControlAltText="Filter column1 column" HeaderText="Part No." ReadOnly="True" UniqueName="RSDCPartNbr">
                        <HeaderStyle Width="160px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="QUANTITY" FilterControlAltText="Filter column2 column" HeaderText="Quantity" ReadOnly="True" UniqueName="Quantity" DataFormatString="{0:###,##0}">
                        <HeaderStyle Width="70px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DELIVERYDATE" FilterControlAltText="Filter column3 column" HeaderText="Requested Delivery Date" ReadOnly="True" UniqueName="DeliveryDate">
                        <HeaderStyle Width="150px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="COMMENTS" FilterControlAltText="Filter column4 column" HeaderText="Comments" ReadOnly="True" UniqueName="Comments">
                        <HeaderStyle Width="207px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="TemplateUpdateOrderColumn">
                        <ItemTemplate>
                            <asp:HyperLink ID="UpdateOrderLink" runat="server" Text="Update Cancel Order"></asp:HyperLink>
                        </ItemTemplate>
                        <HeaderStyle Width="140px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="ORDSTAT" FilterControlAltText="Filter column5 column" HeaderText="Status" ReadOnly="True" UniqueName="OrderStatus">
                        <HeaderStyle Width="120px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MILL_PART_NO" FilterControlAltText="Filter column6 column" HeaderText="Mill Part No." ReadOnly="True" UniqueName="MillPartNbr">
                        <HeaderStyle Width="160px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PO_SUPPLIER_CODE" FilterControlAltText="Filter column7 column" HeaderText="Supplier Code" ReadOnly="True" UniqueName="SuppCode">
                        <HeaderStyle Width="70px" />
                    </telerik:GridBoundColumn>
                </Columns>
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldAlias="USER_ID" FieldName="USER_ID" FormatString="" HeaderText="Orders From" />
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldAlias="USER_ID" FieldName="USER_ID" FormatString="" HeaderText="" />
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
            </MasterTableView>
            <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" />
        </telerik:RadGrid>


Here is some procedures for code-behind:

---------------------------------------------------------------------------------------

    Protected Sub rgRYGRelOrders_NeedDataSource(sender As Object, e As GridNeedDataSourceEventArgs) Handles rgRYGRelOrders.NeedDataSource
        Try
            Dim dtCurDate As DateTime = DateTime.Now
            Dim strCurDate As String = dtCurDate.ToString("MM/dd/yyyy")

            If (Session("RYGREPRELHISTSQLSTRING") Is Nothing) Then
                sql = "SELECT USER_ID, TO_CHAR(ORDERDT,'MM/DD/YYYY HH12:MI:SS AM') AS ORDERDATE, RSDC_PART_NO, MILL_PART_NO, PO_SUPPLIER_CODE, QUANTITY, TO_CHAR(DELIVERY_DATE,'MM/DD/YYYY') AS DELIVERYDATE, COMMENTS, CASE WHEN CS_NOTIFIED = '0' AND CS_ORDERED = '0' THEN 'Waiting At RSDC' WHEN CS_NOTIFIED = 'X' AND CS_ORDERED = '0' THEN 'Notified' WHEN CS_NOTIFIED = 'X' AND CS_ORDERED = 'X' THEN 'Ordered' WHEN CS_ORDERED = 'R' THEN 'Rejected' WHEN CS_ORDERED = 'C' THEN 'Canceled' END AS ORDSTAT FROM ADMIN.RFI_DOH_ORDERS WHERE (ORDERDT >= TO_DATE('" & strCurDate & " 00:00:00', 'MM/DD/YYYY hh24:mi:ss' ) AND ORDERDT <= TO_DATE('" & strCurDate & " 23:59:59', 'MM/DD/YYYY hh24:mi:ss' )) ORDER BY ORDERDT ASC"
                Session("RYGREPRELHISTSQLSTRING") = sql
                Session("RYGREPRELHISTSTARTDATE") = dtCurDate
                Session("RYGREPRELHISTENDDATE") = dtCurDate
                Session("RYGREPRELHISTSORTBY") = "Ordered Date/Time"
            Else
                sql = CType(Session("RYGREPRELHISTSQLSTRING"), String)
            End If

            myDSData = DataSetConfiguration.OracleDataSet(sql, "S01")
            'myDSData = DataSetConfiguration.OracleDataSet(sql, "RSDCBAK")
            rgRYGRelOrders.DataSource = myDSData

        Catch ex As Exception
            strErrorMsg = "Procedure: rgRYGRelOrders_NeedDataSource - RYGReportViewTodaysReleases" & vbCrLf & "Error Message: " & ex.Message & vbCrLf & "Source: " & ex.Source
            UserFunctions.UserMsgBox(Me, strErrorMsg)

        End Try

    End Sub

    Protected Sub rgRYGRelOrders_ItemCreated(sender As Object, e As GridItemEventArgs) Handles rgRYGRelOrders.ItemCreated
        Try
            If TypeOf e.Item Is GridDataItem Then
                Dim updateorderLink As HyperLink = DirectCast(e.Item.FindControl("UpdateOrderLink"), HyperLink)

                updateorderLink.Attributes("href") = "javascript:void(0);"

                'DataKeyValues is actually the name of the Data field name from the table, not the Unique Name for the column.
                updateorderLink.Attributes("onclick") = [String].Format("return OpenUpdateCancelOrderWindow('{0}','{1}','{2}','{3}',{4},'{5}','{6}','{7}','{8}','{9}');", e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("ORDERDATE"), e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("RSDC_PART_NO"), e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("MILL_PART_NO"), e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("PO_SUPPLIER_CODE"), e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("QUANTITY"), e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("DELIVERYDATE"), e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("COMMENTS"), e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("ORDSTAT"), e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("USER_ID"), "UpdateOrderLink")
            End If

        Catch ex As Exception
            strErrorMsg = "Procedure: rgRYGRelOrders_ItemCreated - RYGReportViewTodaysReleases" & vbCrLf & "Error Message: " & ex.Message & vbCrLf & "Source: " & ex.Source
            UserFunctions.UserMsgBox(Me, strErrorMsg)

        End Try
    End Sub

    Protected Sub rgRYGRelOrders_DataBinding(sender As Object, e As EventArgs) Handles rgRYGRelOrders.DataBinding
        Try
            If Not IsPostBack Then
                rgRYGRelOrders.CurrentPageIndex = SavedPageIndex
            End If

        Catch ex As Exception
            strErrorMsg = "Procedure: rgRYGRelOrders_DataBinding - RYGReportViewTodaysReleases" & vbCrLf & "Error Message: " & ex.Message & vbCrLf & "Source: " & ex.Source
            UserFunctions.UserMsgBox(Me, strErrorMsg)

        End Try
    End Sub

    Protected Sub rgRYGRelOrders_PageIndexChanged(sender As Object, e As GridPageChangedEventArgs) Handles rgRYGRelOrders.PageIndexChanged
        Try
            SavedPageIndex = e.NewPageIndex
        Catch ex As Exception
            strErrorMsg = "Procedure: rgRYGRelOrders_PageIndexChanged - RYGReportViewTodaysReleases" & vbCrLf & "Error Message: " & ex.Message & vbCrLf & "Source: " & ex.Source
            UserFunctions.UserMsgBox(Me, strErrorMsg)

        End Try
    End Sub

Here are Javascript functions in the ASP.net page:

---------------------------------------------------------------------------------------

    <script type = "text/javascript" >
        // Note: the following 2 examples require
        // the GetRadWindow() function to exist on the page.
        // It is needed to get a reference to the RadWindow wrapper
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)

            return oWindow;
        }
        // CallFnOnParent shows how to call a function
        // in the parent page. 
        function CallFnOnParent(sender) {
            var btnID = sender.get_id();

            GetRadWindow().BrowserWindow.openChildDialogNoTabStrip(btnID.toUpperCase());
            // Tip: you can pass an argument to provide data to the called function
        }
        function OpenUpdateCancelOrderWindow(value1, value2, value3, value4, value5, value6, value7, value8,value9,value10) {

            //alert('OpenUpdateCancelOrderWindow');
            GetRadWindow().BrowserWindow.openChildDialogFromRadGrid(value1, value2, value3, value4, value5, value6, value7, value8, value9, value10);
            // Tip: you can pass an argument to provide data to the called function
        }
        function OpenUpdateCancelOrderWindow2(value1) {

            alert('OpenUpdateCancelOrderWindow2 --- Order Date='+value1);
            //GetRadWindow().BrowserWindow.openChildDialogFromRadGrid(value1, value2, value3, value4, value5, value6, value7, value8, value9, value10);
            // Tip: you can pass an argument to provide data to the called function
        }
        function CloseModal() {
            var oWnd = GetRadWindow();
            if (oWnd) setTimeout(function () { oWnd.close(); }, 0);
        }
    </script>

Here is the openChildDialogFromRadGrid javascript function in scripts.js included in the browser ASP.net page

---------------------------------------------------------------------------------------

    function openChildDialogFromRadGrid(value1,value2,value3,value4,value5,value6,value7,value8,value9,value10) {
        var sLinkname = value10;
        var url;
        var currentWnd = GetRadWindow();
        var browserWnd = window;
        if (currentWnd)
            browserWnd = currentWnd.BrowserWindow;

        if (sLinkname.toUpperCase() === "UPDATEORDERLINK") {
            url = "RYGReportUpdateReleaseOrder.aspx?ORDDATE=" + value1 + "&RSDCPARTNBR=" + value2 + "&MILLPARTNBR=" + value3 + "&SUPPCODE=" + value4 + "&QTY=" + value5 + "&DLVRYDATE=" + value6 + "&COMMENTS=" + value7 + "&ORDSTAT=" + value8 + "&USERID=" + value9;
        }

        setTimeout(function () {
            var wnd = browserWnd.radopen(url);
            wnd.__parentBackReference = window; //pass the current window object of the page that opens the dialog so it can be used later
            //wnd.center();
            wnd.moveTo(0, 25);

            if (sSender === "UPDATEORDERLINK") {
                wnd.set_title('Release Order - Part No: ' + value2);
            }

        }, 0);

    }
--------------------------------------------------------------------

Sincerely,

Keith Jackson

Keith
Top achievements
Rank 1
 answered on 24 May 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?