Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 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
92 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
63 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
4 answers
113 views
When exporting grouped data, the exports do not contain previous page data when the page selection is anything other than page 1.  Example: If page 2 is selected, the export data begins on page 2 and doesn't contain the data from page 1.  This doesn't happen when the data isn't grouped.  Is this by design?

Christine
Top achievements
Rank 1
 answered on 27 Sep 2012
3 answers
68 views
I've found a minor bug in the listbox client-side function findItemByValue. If you pass it an INTEGER with the value zero, it always returns null. Passing it any other integer (where an item with that value exists) will work correctly. The cause of the problem is that the function findItemByValue is coded as:
function(g){if(!g){return null;}...

When g is an integer 0, !g is true, so the function returns null. (When g is an integer 1, !g is false, when g is a string "0", !g is false.)

The work-around is simple, just don't pass an integer, but to work correctly and consistently, the function should check for "undefined" or null or "" instead of using !g, or it should check the type of the value passed first.

Since findItemByValue actually works correctly when a non-zero integer is passed, it took me a little work to figure out what the problem was. Hopefully this post will help others avoid the problem (I haven't checked, but I'd bet that the same problem occurs in other Telerik controls as well).

Ivana
Telerik team
 answered on 27 Sep 2012
1 answer
133 views
Hello!

AutoCompleteBoxEntry allows to store only two meaningful fields of data: DataTextField, DataValueField

I try to store an object (with many other fields, beside DataTextField and DataValueField) for further processing in a corresponding AutoCompleteBoxEntry.DataItem (within RadAutoCompleteBox.EntryAdded event's code). But DataItem seems not to be stored anywhere (in ViewState?) along with the AutoCompleteBoxEntry instance, so I cannot access a particular AutoCompleteBoxEntry.DataItem later in Button's click event, for example.

Which practice of storing full data object in DataItem would you advise?
Kalina
Telerik team
 answered on 27 Sep 2012
1 answer
66 views
Hi,

This is a weird one, and I am not sure it's a Telerik problem, but I'm hoping you can shed some light on the issue.
The symptom is that the user cannot expand the very last node in the treeview unless they "very carefully" move the mouse over the top portion of the expand image (+) ; then they see the mouse pointer change to the hand and can click to expand.
The user can move the mouse over any portion of the other nodes' expand image without difficulty - it's only the last (bottom) one that exhibits this weird behavior.

The RadTreeView is within a RadPageView within a RadMultiPage within a RadTabStrip within a RadSplitter.
This symptom does not occur in IE or FF, and only in Chrome and Safari for "some" users with small laptop screens (13").

I have attached a screenshot.

Any ideas or suggestions?

Jim
Plamen
Telerik team
 answered on 27 Sep 2012
1 answer
171 views

Hi All

we update latest version of   "Telerik.Web.UI Version=2012.2.912.40," so now we can’t work with user interface because every controllers are not load and appear as 


The server tag 'telerik:RadComboBox' is ambiguous. Please modify the associated registration that is causing ambiguity and pick a new tag prefix.

development team

rohan & hasindu

Kate
Telerik team
 answered on 27 Sep 2012
11 answers
918 views
Hi all,

I am using a rad grid to display data from my data base. The rad grid has bound fields like date, name, user ID, location etc. I need to display the data sorted according to the date field. Also, I need to add a blank separator row after each sorted group. Please help me in this regard.

Thanks
Uday
Tsvetina
Telerik team
 answered on 27 Sep 2012
2 answers
112 views
Hi,

I believe this to be a bug in the ribbon bar (I am on version 2012.2.724.40).  I have a ribbon bar with a RibbonBarButton called "Save" on it.  When the user clicks save, all fields on the current screen are saved to the database.  However, I have found that for telerik fields on the screen (I've reproduced with RadNumericTextBox, RadTextBox, and RadDatePicker, see below code), if the user does not tab off of the field before clicking the ribbon bar button, that the value entered does not save and reverts back to the previous value.  This behavior does not occur if you use a regular asp.net button. My code to reproduce this is below, I have included a radnumerictextbox, raddatepicker, and a regular asp.net textbox.  The regular asp.net textbox always shows correctly, however the telerik ones do not.  If this is indeed a bug, is there a workaround until a fix is available?  I know it seems minor but we have customers who do much data entry, and little things like this can cause big issues.

The steps to reproduce are:
1.  Enter a value in the rad numeric textbox, say 50.  Tab off (or at least set focus somewhere else), then click 'save' in the ribbon bar.  The alert message shows '50' as expected.
2.  Now change the value to '100'.  Do not tab off the numeric textbox, but instead keep focus.  Click 'save' in the ribbon bar.  The alert shows '50' instead of '100', and the value reverts back to '50' in the textbox as well.

Thank you!
Richard

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadRibbonBar ID="BaseRibbonBar" runat="server" OnButtonClick="BaseRibbonBar_ButtonClick"
    EnableAjaxSkinRendering="true" Visible="true" Skin="Windows7">
    <telerik:RibbonBarTab Text="Basilisk">
        <telerik:RibbonBarGroup Text="Actions" Value="Actions">
            <Items>
                <telerik:RibbonBarButton Size="Large" Value="Save" Text="Save" ImageUrlLarge="~/save.png"
                    ImageUrl="~/Images/save.png" ToolTip="Save the current record" />
            </Items>
        </telerik:RibbonBarGroup>
    </telerik:RibbonBarTab>
</telerik:RadRibbonBar>
<telerik:RadAjaxPanel runat="server" ID="testPanel">
    <telerik:RadNumericTextBox ID="tbMonths" runat="server" Width="40px">
    </telerik:RadNumericTextBox>
    <telerik:RadDatePicker runat="server" ID="datepicker"></telerik:RadDatePicker>
    <asp:Button runat="server" ID="btnTest" OnClick="btnTest_Click" Text="Save" />
    <asp:TextBox runat="server" ID="Asptest"></asp:TextBox>
</telerik:RadAjaxPanel>

protected void btnTest_Click(object sender, EventArgs e)
{
    ScriptManager.RegisterStartupScript(this, GetType(), "Test", "alert('result is " + tbMonths.SelectedDate.ToString() + "');", true);
}
 
protected void BaseRibbonBar_ButtonClick(object sender, Telerik.Web.UI.RibbonBarButtonClickEventArgs e)
{
    ScriptManager.RegisterStartupScript(this, GetType(), "Test", "alert('ribbon result is " + tbMonths.Value.Value.ToString() + "');", true);
}

Richard
Top achievements
Rank 1
 answered on 27 Sep 2012
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?