Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
186 views
Hi,


I have used the RadAjaxManager and RadWindowManager on the page but unable to open the popup in load event of the page.
in the load event i have assigned the property and attached the manager in load event like:

private RadAjaxManager Manager

{

get { return RadAjaxManager.GetCurrent(Page); }}


and on the load event

Manager.AjaxSettings.AddAjaxSetting(Manager, Manager);

string

script = "return radalert('HI.', 300, 50);";

Manager.ResponseScripts.Add(script);

In the same page i have create the buttonclick event, here is working properly, by attaching the button with the manager in load event. So, I am facing the problem when opening the radalert() in Page_Load() event.


I am looking for your kind support.

 
Thanks
Bankey Bihaari

Jogn
Top achievements
Rank 1
 answered on 06 Nov 2008
1 answer
245 views
i am using a datatable to create the menu dynamically. in addition, i use the web20 skin. everything is fine except when i view the menu on a screen with a lower resolution, my whole menu wraps. there is enought space in each of the menu items to make the width smaller so it will fit across the screen without wrapping. my problem is i cannot figure out how to set the width of each of the menu items. i tried looping thru and setting it dynamically, but it does not seem to work.

my other problem is in the older version of the menu, i set useembeddedscripts=false. i believe this helped with performance. with the latest version, this does not seem to be available.

thanks,
susan
Yana
Telerik team
 answered on 06 Nov 2008
6 answers
105 views

I've got trouble using the disableEvents function of the RadComboBox.

When I add a RadComboBox to my ASP.NET page, with the OnClientSelectedIndexChanged and OnClientItemsRequested event handler. To preselect a item in the combobox, I first lookup the item in the itemcollection. If the item is found, I execute disableEvents() on the combobox, select the item and after that, reenable the events with enableEvents().

Directly after I select the item, the OnClientSelectedIndexChanged-event is triggered. Because of the disableEvents() I don't expect the event to be triggered.

The following code demonstrates the bug:

<script type="text/javascript"> 
function onrequested(sender, eventArgs) { 
  sender.disableEvents(); 
  sender.get_items().getItem(0).select(); 
  sender.enableEvents(); 
} 
function onchange(sender, eventArgs) { 
  alert("changed! new value: " + sender.get_value()) 
} 
</script> 
<script runat="server"> 
  Protected Sub cmbItemsRequested(ByVal sender As Object, ByVal e As EventArgs) 
    cmb.DataSource = New object() {New with { .Text="Text1"}, New with { .Text = "Text2"}} 
    cmb.DataBind() 
  End Sub 
</script> 
 
<telerik:RadComboBox HighlightTemplatedItems="True" DataTextField="Text" DataValueField="Text" EnableLoadOnDemand="true"  OnItemsRequested="cmbItemsRequested" runat="server" id="cmb" OnClientSelectedIndexChanged="onchange" OnClientItemsRequested="onrequested"> 
<ItemTemplate>(<%# DataBinder.Eval(Container, "Text") %>)</ItemTemplate> 
</telerik:RadComboBox> 

Paul
Top achievements
Rank 1
 answered on 06 Nov 2008
5 answers
404 views

I am struggling to understand why the following code is putting all rows into edit mode when I click my "Edit All" button, when it should be putting all rows except those which have their checkbox checked.  When the code hits the if statement for the checked rows it recognizes that the checkbox is checked and falls into the else part to set item.Edit = False, but after retrieving the transactions in the GetTransactions() method the rows are ALL in edit mode.

I just don't understand how that is happening.  Dooes anyone have any ideas?

Here is the code:

If (e.CommandName = "EditAll") Then

For Each item As GridItem In rgT.MasterTableView.Items
Dim cbAppCntrl As CheckBox = CType(item.FindControl("chkApproved"), CheckBox)

If (Not cbAppCntrl.Checked) Then
item.Edit = True
ElseIf (cbAppCntrl.Checked = True) Then
item.Edit = False
End If
Next

 

GetTransactions()

End If

Thanks!!!

Andrei
Top achievements
Rank 1
 answered on 06 Nov 2008
1 answer
86 views
I have a RadComboBox that is embedded in a templated column in a RadGrid. We are using a webservice call to load the RadComboBox when a user clicks the combo in the grid.  Everything works except that the format of the tooltip for disabled items in the combobox does not appear to pick up the tootip style from the host page. The page has a RadTooltipManager.

What am I missing?
Yana
Telerik team
 answered on 06 Nov 2008
1 answer
194 views
hello ,
i use radGrid in this grid i have  GridDropDownColumn column  .
in edit mode or insert mode i bound the GridDropDownColumn with list and set text and value for item something like that :-

    void Radgrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridEditableItem && (e.Item as GridEditableItem).IsInEditMode)
        {
            GridEditableItem editedItem = e.Item as GridEditableItem;
            GridEditManager editMan = editedItem.EditManager;

            GridDropDownColumnEditor editor = editMan.GetColumnEditor("OrganizationName") as GridDropDownColumnEditor;
            editor.DataSource = ECMADataManager.GetInstance().Retrieve<Organization>();
            editor.DataTextField = "Name";
            editor.DataValueField = "OrganizationID";
            editor.DataBind();
            if ((e.Item.DataItem as EmpEducation) != null)
                editor.SelectedValue = (e.Item.DataItem as EmpEducation).OrganizationID.ToString();
        }
        else if (e.Item is GridDataItem && !e.Item.IsInEditMode)
        {
            GridDataItem dataItem = (GridDataItem)e.Item;
            Literal litrlContrl = (Literal)dataItem["OrganizationName"].Controls[0];
            litrlContrl.Text = (e.Item.DataItem as EmpEducation).Organization.Name;
        }
    }

i want to add a new item in GridDropDownColumnEditor has text"select one" and has no value . so what can i do ???


Nikolay Rusev
Telerik team
 answered on 06 Nov 2008
5 answers
247 views
I look for long time to solve this problem.
The matter is I wanna use both way to delete row by GridButtonColumn and to edit row by client double click. but there is a matter. if I put scripts to edit rows, delete command doesn't work with ItemHierachicalIndex error.

I checked html source... there is a bit differences for scripts.
how can I do this? any helps?


        <ClientSettings>
            <ClientEvents OnCommand="GridCommand" OnGridCreated="GridCreated"
                OnRowClick="RowClick" OnRowDblClick="RowDblClick" />
        </ClientSettings>
            <Columns>
                <telerik:GridButtonColumn HeaderText="Delete" UniqueName="Delete" ButtonType="ImageButton" CommandName="Delete">
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </telerik:GridButtonColumn>

This is my .aspx code... I tried to put ClearEditITems Methods all.. but.. it's not helpful...

Please help~
Iana Tsolova
Telerik team
 answered on 06 Nov 2008
2 answers
146 views

I see the trial version for the new 2008 Q3 release (2008.3 1105) is available for downloading, but in the client area I only see the beta version (2008.3 1016).

On the left of the download area it says "Newer version available: 2008.3 1105" but that only links to the trial download. (That link is broken by the way, it http://www.telerik.com/your-account/free-trials.aspx but it should be http://www.telerik.com/account/free-trials.aspx ).

So the question is, can I download and use the trial version? Or will the new version be available soon in the client area?

Thanks, Steve

 

 

Steve Newbery
Top achievements
Rank 1
 answered on 06 Nov 2008
1 answer
77 views
Hi All,

I'm using the last build (2008.2.1001) and i have faced a problem using a self-referencing grid created on OnInit, using some template columns (images and labels) and ServerOnDemand hierachy load mode. After i expand an item only the children items is successfully presented, the other items on different hierarchy path do not show template columns. Is it a known issue ?

Thanks a lot.
Leonardo.
Sebastian
Telerik team
 answered on 06 Nov 2008
3 answers
110 views
Hi

In my scenario, i have a treeview in the left side of a RadSplitter and on the other radPane , i load a user control when a node is clicked. My problem is that when i enter a value in a textbox includes in my usercontrol on the right pane, i want to update the associated radTreeNode.text with the associated text in my user control's textbox. I'm not sure how i can achieve that thing, so any help would be appreciated.

If you need more details on that, please let me know.

Thanks in advance for your helps.

Yana
Telerik team
 answered on 06 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?