Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
174 views
Hai,

I have a calendar. I have written some code in in the selectionchanged event. If I click on one date, first time it returns the correct clicked date. But if I click on the same date once more, it returns '1/1/0001 12:00:00 AM' instead of the clicked date. Plz help me. I want to get the clicked date when I click on a date irrespective of the number of times I click on a date.

Thanks & regards,
Regeesh
Shinu
Top achievements
Rank 2
 answered on 02 Sep 2010
1 answer
235 views
Hi,
Telerik Team

I have been using Oracle database which contains huge amount of data,i am doing search operation against one table which contains bulk data(laksh of records). So when i open, my page it is taking around 3-4 minutes to search in the database.
So Please provide me the best soluiton to access/search oracle database and complete my search operations in seconds.

Thanks in advance.
Rosen
Telerik team
 answered on 02 Sep 2010
1 answer
104 views

I'm using a RadListview with RadDataPager and it's working fine.

Now, I need to create hyperlinks to items which may be in any page of the RadListView. How can I specify the wanted item ID to display to the listview and letting it opens the right page containing it ?

Thank you

Iana Tsolova
Telerik team
 answered on 02 Sep 2010
1 answer
227 views
Hello,

I am using TabStrip and RadWindow to allow our users to open up different web pages all at once.  I am loading the window and tab dynamically on the server when the user specifies a particular option.  On the client side, I am hiding or showing the appropriate window based on the tab the user chooses.  Everything is working great, but I have come across one issue.  If I do a postback on my main page (the one containing the tabs and radwindows with the child pages), the radwindows seem to lose their contents and reload themselves.  And unfortuntely, a postback occurs each time they add a new tab.  Here is an example:

I add a new tab/window for page A, which is a search page.  On the window for page A, I do a search which brings up some results.  I then add a secondtab for page B.  Adding this tab causes the main page to post back.  After postback, when I open up page A's window, the search is gone and that page has totally reloaded.

I have tried setting 'reloadonshow' to false but have had no luck.  Is there anything I can do, or will I be forced to add the tabs and windows on the client side and prevent postback from occuring on my main page?  Also one thing to note, I have my main page wrapped in a RadAjaxPanel.

Any help would be greatly appreciated!
Richard
Georgi Tunev
Telerik team
 answered on 02 Sep 2010
3 answers
248 views
Hello,

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadGrid.aspx.cs" Inherits="Test_RadGrid" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadGrid ID="RadGrid1" runat="server">
        <MasterTableView>
            <Columns>
                <telerik:GridBoundColumn DataField="AccountProgram" HeaderText="Account Program">
                    <HeaderStyle Width="150" Height="40"></HeaderStyle>
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    </form>
</body>
</html>

The Width of HeaderStyle is working. However, the Height of HeaderStyle is not working.

How can I do to solve this problem?

Thank you for your help.

Minkyu Lee.
Dimo
Telerik team
 answered on 02 Sep 2010
3 answers
171 views
How do you add a custom button to a column?

I've been searching the website and found a few things that are close to what I'm trying to do. I'm still pretty new to all this, and didn't completely understand it.

I have a Rad Grid pulling in registration data from a database. I want to add another column that contains a button that will call an "unregister Event". On the click event, I want to right code that unregisters the user.

What is the most efficient way to get this done?

Thanks in advance for any help.
Iana Tsolova
Telerik team
 answered on 02 Sep 2010
1 answer
62 views
I have a NumericTextBox on a page that prompts the user when they try to navigate away from that page if they have unsaved changes.

My javascript:

 

window.onbeforeunload = function () {
  if (isDirty) {
    return 'You have unsaved changes. You will lose your changes if you leave the page.';
  }
};

 
The issue is that if I enable the spinbuttons on the numeric textbox this event fires whenever the user clicks the spin button, even though they don't navigate away. Is there a way to prevent this event from firing?

 

Dimo
Telerik team
 answered on 02 Sep 2010
1 answer
389 views
Hi ,

I have a rad grid and in item databound im trying to get the items count . My dataset contains 3 items and is also bound to the rad grid where its displayed . In Item Databound radGrid.Items.Count  returns 2 , where as it should be 3 .
Similarly i used radGrid.MasterTableView.Items.Count ,returns 2 .

What could be the problem
Shinu
Top achievements
Rank 2
 answered on 02 Sep 2010
1 answer
106 views
G'Day,

I have a grid, which I always want to show the Insert Row, except when another row is being edited.

So far I have set the IsItemInserted to true or false during the NeedDataSource event and everything works as expected,. That is until I save a new item. Then the Insert row is removed.

It looks like property is being set to false After the NeedDataSource event and Before the Grid Pre-Render event. Can anyone tell me how I can override this property being reset to False?

I do have a workaround, but it is a little clunky.

I check it's status in the Grid_PreRender, if false I then reset it to be true and then force a ReBind.

Thanks

Andrew

Princy
Top achievements
Rank 2
 answered on 02 Sep 2010
7 answers
208 views
I have a situation where a SlidingPane contains a treeview and 2 dropdown listboxes.  About half a second after the form loads, the Pane slides out from the left.  I like this effect.  The problem arises after each postback when the user has chosen an item in the tree or selected an item in one of the dropdown listboxes.  Since the form is posting back, the same slide out effect occurs.  This is annoying to the user.

So to the SlidingPane control I added this event handler definition: OnClientExpanded="radSlidingPane_Expanded"

Which then calls this:

      function radSlidingPane_Expanded(sender, args) {
        $("#<%= UpdatePanel1.ClientID %> #<%= radSlidingZone.ClientID %>").attr('DockedPaneId', 'radSlidingPane');
      }

I'm using jQuery to get the SlidingZone object.  That part seems to work fine.  But apparently setting 'DockedPaneId' as I have doesn't forcibly dock the SlidingPane.  Note: I even tried specifying the longer version - 'ctl00_ContentPlaceHolder1_radSlidingPane' - but it didn't work either.

What should I be doing to achieve the effect I'm looking for?

Robert
Svetlina Anati
Telerik team
 answered on 02 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?