Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
80 views
I have two grids, a delete on Grid1 cause an add on Grid2 and vice-versa.

When I delete from Grid2 , Grid1 is nicely Ajax updated.

When I delete from Grid1, Grid2 gets updated on the 2nd delete, meaning its alway 1 row behind?

what am I missing?

  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid2">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid2" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                </AjaxSettings>
        </telerik:RadAjaxManager>

in both cases the item_command handlers are doing a rebind();

            RadGrid1.Rebind();
            RadGrid2.Rebind();

Vlad
Telerik team
 answered on 21 Nov 2008
1 answer
169 views
I have a few questions about altering the appearance of a RadComboBox:

How would I force the drop down to always appear under the RadComboBox?

How would I change the mouse over color when the cursor hovers over th items?

thanks
Princy
Top achievements
Rank 2
 answered on 21 Nov 2008
4 answers
243 views
So what fires the selectedindexchanged event for the Grid?  Is it only clicking a column that has the GridColumnSelectButton?  Is there a way to trigger an even whenever the row is selected?  I would like to use the full row select option, and tap into an event on the server that fires when that happens.  But I see that event doesn't fire when that happens.

So is there an event that fires when a row is clicked?  I didn't see one...

Thanks.
Shinu
Top achievements
Rank 2
 answered on 21 Nov 2008
2 answers
156 views
I need to iterate through the items (rows) in a grid and for each row I need to extract the datakeyvalue. Here is how I thought it would be done (This is in the GridDataBound event):

For Each gvRow As Telerik.Web.UI.GridItem In rgViewableDependents.MasterTableView.Items   
 
    strPersonNumber = rgViewableDependents.MasterTableView.DataKeyValues(gvRow.ItemIndex)("PersonNumber")  
    chkViewable = gvRow.FindControl("chkViewable")  
 
Next 

But the strPersonNumber always = Nothing and never get's the key for the row.

rgViewableDependents.MasterTableView.DataKeyValues.Count = 3 and there are 3 rows in the grid, so i'm not sure why it isn't picking up the DataKeyValue. What am I doing wrong?

Thanks!

Shinu
Top achievements
Rank 2
 answered on 21 Nov 2008
3 answers
238 views
hi, i managed to make the CRUD operations work with custom edit form, but the new data is not showing on the grid unless i hit refresh the page.
what am i missing here ?
thanks in advanced.
feras
Top achievements
Rank 1
 answered on 21 Nov 2008
4 answers
177 views
Even though the number of items in the grid is less than the PageSize the paging controls are displayed. I only want these controls to be displayed if there are multiple pages. I believe the PagerStyle.AlwaysVisible attribute controls this.

<

MasterTableView
PagerStyle-AlwaysVisible="false"
PageSize="20"
AllowPaging="true"
PagerStyle-Mode="NextPrev">

 

 

 

 

 

 

 

 

 

 

Chamitha
Top achievements
Rank 1
 answered on 20 Nov 2008
3 answers
105 views
Hi,

I have a RadGrid which contains several controls inside it's NestedTableView. Now I need to access these controls from the codebehind. How can I do this?

Best regards,
Robert
Daniel
Telerik team
 answered on 20 Nov 2008
3 answers
254 views
I have an instance of RadComboBox set to do autopostback, but I would like to be able to change the value of the selected item through javascript without forcing an autopostback on the client or triggering a "Selected Item Changed" event on the server at the next postback.

Is there any good way to accomplish this?

Thanks

Simon
Telerik team
 answered on 20 Nov 2008
1 answer
104 views
Hi,
    I have two RadComboBox controls on my page.  Here is the markup for the combo boxes:
<telerik:RadComboBox OnClientSelectedIndexChanged="LoadLevels" Skin="Vista" ID="ApplicationComboBox" runat="server"/>                    
<telerik:RadComboBox Skin="Vista" ID="LevelComboBox" runat="server"/>        

javascript:
function LoadLevels(item) {
        var levelCombo = $find("<%= LevelComboBox.ClientID %>");
        alert(item.Value);
        levelCombo.RequestItems(item.Value, false);
    }              

server code:
LevelComboBox.ItemsRequested += new RadComboBoxItemsRequestedEventHandler(LevelComboBox_ItemsRequested);

void LevelComboBox_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
        {
            LoadLevels(e.Value);
        }

What is supposed to happen is once the user selects an item from the ApplicationComboBox control, the LevelComboBox gets updated/populated with corresponding data.  I think I have followed the live demo pretty well. (http://demos.telerik.com/aspnet/Combobox/Examples/Functionality/MultipleComboBoxes/DefaultCS.aspx)

I am having 2 issues:
1) Javascript throws an error saying "Object doesn't support this property or method".  This gets thrown when I call the RequestItems method in javascript.
2) The item.Value is "undefined";

I have also tried to do this by subscribing to the selectedindexchanged event on the server side to update my second combo box.  This works the first time, but if I select another value then the second combo box will not get updated.

Any help would be greatly appreciated.

Thanks,
Greg

Atanas Korchev
Telerik team
 answered on 20 Nov 2008
3 answers
233 views
all the documentation i've read on radcontrols is their integration into a site (aspx pages etc.).  is it possible to utilize radcontrols within a web part?  reference a specific radcontrol (e.g. radCalendar) to add to the web part?
Jim
Top achievements
Rank 1
 answered on 20 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?