Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
372 views
Hi all,

In my grid, I don't want the user to add records while editing. Is there a way to disable the add new record button in edit mode?
Thanks in advance.


Shinu
Top achievements
Rank 2
 answered on 28 Sep 2012
2 answers
108 views
Hi all,

In my page I have a RadGrid.In this, I need to hide the first row. How can I do that?
Please provide some solutions.

Thanks in advance.
Janaki
Top achievements
Rank 1
 answered on 28 Sep 2012
2 answers
106 views
According to the documentation here http://www.telerik.com/help/aspnet-ajax/introduction-jquery-intellisense.html I do not need to do anything special to get JQuery intellisense to work on my page.

I have the following in my form:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
            </Scripts>
        </telerik:RadScriptManager>
        <script type="text/javascript">
            window.$ = $telerik.$;
             
            //$("tr.Graph").click(function () {
            //    $(this).nextAll("tr").fadeToggle(500);
            //}).eq(0).trigger('click');
        </script>


Whenever I enter $ or $., I do not get any intellisense. I am using Visual Studio 2012. Could that be an issue? 
DuelingCats
Top achievements
Rank 2
 answered on 28 Sep 2012
1 answer
63 views
Dear
i have some issue with Export data from grid to PDF file & CSV file
with PDF: when i export date it come all data not formatted and all data come above some
and it is look like that

================================================
and about CSV file
it is come with Birth date only and all another fields is empty without any data

my code look like
(ASP):
                     <telerik:RadButton ID="RadBtn_ExportPDF" runat="server" Text="ExportPDF"
                        onclick="RadBtn_ExportPDF_Click" >
                    </telerik:RadButton>
                     <telerik:RadButton ID="RadBtn_ExportExcel" runat="server" Text="ExportExcel"
                         onclick="RadBtn_ExportExcel_Click">
                    </telerik:RadButton>
                    <telerik:RadButton ID="RadBtn_ExportCSV" runat="server" Text="ExportSCV"
                        onclick="RadBtn_ExportCSV_Click">
                    </telerik:RadButton>

and in (CS):
protected void RadBtn_ExportPDF_Click(object sender, EventArgs e)
    {
        ConfigureExport();
        MainGride.MasterTableView.ExportToPdf();
    }

    protected void RadBtn_ExportExcel_Click(object sender, EventArgs e)
    {
        ConfigureExport();
        MainGride.MasterTableView.ExportToExcel();
    }

    protected void RadBtn_ExportCSV_Click(object sender, EventArgs e)
    {
        ConfigureExport();
        MainGride.MasterTableView.ExportToCSV();
    }

    public void ConfigureExport()
    {
        MainGride.ExportSettings.ExportOnlyData = true;
        MainGride.ExportSettings.IgnorePaging =true;
    }
and in item command :

if (e.CommandName == Telerik.Web.UI.RadGrid.ExportToExcelCommandName ||
            e.CommandName == Telerik.Web.UI.RadGrid.ExportToWordCommandName ||
            e.CommandName == Telerik.Web.UI.RadGrid.ExportToCsvCommandName )
        {
            ConfigureExport();
        }
i need to your help in that to make data formatted well in Export PDF and to get all data in Export CSV file

Regard
Ahmed Salem
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Sep 2012
5 answers
135 views
I am attempting to use a radgrid with  in-place editing of multiple cascading drop-downs. The user enters a term, which populates a combobox to get a list of 'preferred terms'... then, depending on the preferred term, the user can then select a classification.

Based on examples, found on the Telerik site, I crafted the below code. However, my ComboBox_SelectedIndexChanged Event handler never fires.

Any ideas why? I can step through the code and see the below code executes and attaches the event handlers to the combobox, and the drop-down does contain the correct list of values based on the user's entered term, but when the user selects a preferred term the event never fires (thus I never get to update the classification combobox based on the user's selection.)

What am I missing? Thanks!
protected void RadGrid_Terms_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridEditableItem && e.Item.IsInEditMode)
    {
        if (e.Item.DataItem != null)
        {
            String term = ((DataRowView)e.Item.DataItem)["Term"].ToString();
 
            SqlDataSource_PTCodeEdit.SelectCommand = "SELECT * FROM dbo.udt_PreferredTerm('" + term + "')";
            SqlDataSource_PTCodeEdit.Select(DataSourceSelectArguments.Empty);
 
            RadComboBox list = (e.Item as GridEditableItem)["FK_PT_GUID"].Controls[0] as RadComboBox;
 
            list.DataTextField = "PT_Name";
            list.DataValueField = "RowGuid_Key";
            list.DataSource = SqlDataSource_PTCodeEdit;
            list.DataBind();
            list.SelectedValue = ((DataRowView)e.Item.DataItem)["FK_PT_GUID"].ToString();
            list.Text = ((DataRowView)e.Item.DataItem)["PT_NAME"].ToString();
            list.AutoPostBack = true;
            list.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(ComboBoxControl_SelectedIndexChanged);
        }
    }
}
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Sep 2012
1 answer
55 views
Hi,

I am trying to get the datakey value of a row when expanding it to display a nestedViewTemplate.

When the grid is initially populated, I get the datakey values fine within the ItemCreated event.

Dim myID = CInt(e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("whatever"))


But when the expand icon is clicked that code throws an error - {"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"}

Any thoughts on what I am doing wrong here? Thanks.
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Sep 2012
6 answers
157 views
I have a chart the need to change the bottom order for a Spline chart I have create.

<telerik:RadChart
    ID="RadChartDemographic"
    runat="server"
    DefaultType="Spline"
    Skin="Gray"
    ChartTitle-TextBlock-Text="Demographic%">
    <Series>
        <telerik:ChartSeries DataYColumn="Minority" Name="Minority" Type="Spline">
            <Appearance>
                <FillStyle MainColor="0, 116, 119" />
            </Appearance>
        </telerik:ChartSeries>
        <telerik:ChartSeries DataYColumn="White" Name="White" Type="Spline">
            <Appearance>
                <FillStyle MainColor="195, 167, 10" />
            </Appearance>
        </telerik:ChartSeries>
    </Series>
</telerik:RadChart>


For example:

1 |
2 |
3 |          -   -   - 
4 |       /             \
5 |     /                 \
    ----------------------------------
         1           2            3

I need to change the bottom number order to 3, 2, 1. I have reorder my query, but the numbers stay the same on the bottom. The confusing thing is that the data points in the graph change and do not correlate to the bottom row...

TIA
Steve
Top achievements
Rank 1
 answered on 27 Sep 2012
1 answer
103 views
When I upload some document and click a button to process a batch job, it will display  RadProgressArea. The IE works fine and Chrome will show white background like attached screenshot. I don't know why.
Kate
Telerik team
 answered on 27 Sep 2012
1 answer
95 views
Hi all,

My scenario is Iike that: Main page let's say A has a button and after it's clicked a rad window is opened. Let's say this page B. In page B after a button clicked, a new page called C is opened. My problem was at first C page was surrounded by page B. I could not get out of boundaries of the page B.

After i read the document on http://www.telerik.com/help/aspnet-ajax/window-programming-opening-from-within-dialog.html i solved my problem.

But here is another issue. When i close page C, i could not handle OnClientClose event on page B. I tried many things but i could not success.

Some codes from page B :

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
function OpenDefectStockItemPanel() {
                var getRecordId = document.getElementById("<%= getRecordId.ClientID %>").value;
                var url = "DefectStockItemPanel.aspx?ID=" + getRecordId;
                var oBrowserWnd = GetRadWindow().get_windowManager();
                oBrowserWnd._width = 1100;
                oBrowserWnd._height = 600;
                setTimeout(function () {
                    oBrowserWnd.open("DefectStockItemPanel.aspx?url=" + encodeURIComponent(url),
"asda");
                }, 0);
                 return false;
            }
                    </script>
    </telerik:RadCodeBlock>
     
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="DefectStockDialog2" runat="server" Title="Hasar-Ürün Yönetimi"
                Width="400px" Height="600" ReloadOnShow="true" OnClientClose="RadWindowOnClientClose"
                ShowContentDuringLoad="false" Modal="true" />
        </Windows>
    </telerik:RadWindowManager>

GetRadWindow().get_windowManager(); connects RadWindowManager of page A not B so this RadWindowManager1
is useless right ? Otherwise i will again hangout to the boundaries of B. Ok add_close method can not be
bind 
to a radwindowmanager right ? What should i do to be aware Page C is closed or not. (My aim is to refresh page B on Page C close)

Thank you.
Matthew
Top achievements
Rank 1
 answered on 27 Sep 2012
1 answer
65 views
I have submitted this as a support ticket but not gotten a response yet and I am on a deadline.

I am using the telerik controls to create a wizard for adding items to a SharePoint list.  I am using a RadPanelBar to allow the users to enter data into the detail sections of the wizard on the third page.  There will be a variable number of items in the panel bar and I am creating them dynamically.  This is working as expected on the development box but when I deploy to my test server or the clients integration server the panels will not expand.  Here is the code that is creating the panels.

            ucItemEditV2 ucEditor = (ucItemEditV2)LoadControl("ucItemEditV2.ascx");
            ucEditor.ID = "ucItemEdit" + itemID;
            using (RadPanelItem pnlItem = new RadPanelItem())
            {
                RadPanelItem pnlInsideItem = new RadPanelItem();
                SPListItem itm = SPContext.Current.Web.Lists[itpCommon.STR_ITProvItems].GetItemById(itemID);
                pnlInsideItem.Text = " ";
                pnlInsideItem.Controls.Add(ucEditor);
                pnlInsideItem.Expanded = false;
                ucEditor.ParentItem = pnlItem;
                pnlInsideItem.TabIndex = -1;
                pnlItem.Items.Add(pnlInsideItem);
                pnlItem.Text = itm.Title;
                ucEditor.SetItemInfo(itemID);
                pnlChildren.Items.Add(pnlItem);
            }

I am attaching a diagram of the way that the pages loads.  I have been struggling with this for a couple of days so any help would be greatly appreciated.

Thanks,

john  
John
Top achievements
Rank 2
 answered on 27 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?