Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
149 views
Good day,

 I have an issue regarding the rgHeaderDiv. When the page appears, my radgrid header looks fine.
(img1)

But after the page loads, the rgHeaderDiv generates an inline css of padding-right: 16px and margin-right: 17px
resulting my radgrid header to have a white space at the right.
(img2)

Is there a way of removing the padding-right and margin-right after the grid loads or binds the data?

thanks,
Neal
Galin
Telerik team
 answered on 01 Mar 2013
2 answers
240 views
Hi Team,

I had created 2 nested radgrid (with NestedViewTemplate method),  the mother grid contains 2 fields, team leader textbox and radcombox,
each mother grid has corresponding child grid with checkbox and the team member textbox. 

I want to update the items in mother grid for those checked items in child grid however the child grid turned out totally disappeared. 
I want to keep the child grid expanding and the checked box remains while I am updating the mother grid.  How can I do that.  Please advise.

Please find the photos for your reference.

Thanks.
Patrick
Patrick
Top achievements
Rank 1
 answered on 01 Mar 2013
3 answers
248 views

Hello guys,

 

I am facing a weird issue that I am able to reproduce on you demo page (with Chrome and Firefox).

Basically sometime the get_selectedItem() method return null while an item has been checked.

 

Here is the way to reproduce it:

Go to the WCF load-on-demand demo here:

http://demos.telerik.com/aspnet-ajax/combobox/examples/loadondemand/wcf/defaultcs.aspx

 

With your mouse, click on the arrow of the RadCombobox to display to the drop down panel and select for example the third item ‘Ana Trujillo’.

The drop down panel closes.

Now in the console of the browser’s developer tool, type:

$find("ctl00_ContentPlaceHolder1_RadComboBox1").get_selectedItem()

You can notice the returned value is not null.

 

Then click again on the arrow to show the drop down panel and after that directly click on ‘Annette Roulet’.

The drop down closes again.

Go back to the console et re-evaluate the selected item.

You can notice the returned value is null whereas an item is graphically selected.

 

Are you aware of that?

Do you know a workaround?

 

Regards

Boyan Dimitrov
Telerik team
 answered on 01 Mar 2013
1 answer
93 views
(I'll swear I've seen this before....)

I have a RadGrid with header and detail form template popup editing.

In the ItemDataBound event, in the edit mode detail section I have a line to set the CaptionFormatString:

             RadGrid1.MasterTableView.DetailTables[0].EditFormSettings.CaptionFormatString = "Edit Detail Id " +  editableItem.GetDataKeyValue("DetailId").ToString() + " for Ticket "+ iHeaderId.ToString();

So far as I can tell this is getting hit every time I edit a detail.

However the first time I'm in the screen and the first time I try to edit a detail record, the popup caption goes to whatever's set in the Aspx rather than what's set in code.  The rest of the time the caption displays as desired.
            
Shinu
Top achievements
Rank 2
 answered on 01 Mar 2013
1 answer
115 views
I have a drop down list in a radgrid and on edit mode or insert mode it needs to load it.  That's all taken care of however what it does in insert mode is loads the dropdown list with both SQL statements, and I am rather perplexed of why this happens since they are 2 different modes of The grid.

Protected Sub myRadGrid_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles myRadGrid.ItemDataBound
       If (TypeOf e.Item Is IGridInsertItem AndAlso e.Item.IsDataBound) Then
           Dim Region As DropDownList = DirectCast(e.Item.FindControl("ddlRegion"), DropDownList)
           sql = "Select intRegionID, strRegionCode from Region where bitActive = 1"
 
           Region.Items.Add(New ListItem("Pick Region", "0"))
           buildDD(sql, Region)
       End If
 
       If (TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode) Then
           Dim Item As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
           Dim Region As DropDownList = DirectCast(Item.FindControl("ddlRegion"), DropDownList)
 
           sql = "Select intRegionID, strRegionCode from Region"
 
           Region.Items.Add(New ListItem("Pick Region", "0"))
           buildDD(sql, Region)
 
           Region.SelectedValue = DirectCast(DataBinder.Eval(e.Item.DataItem, "intRegionid").ToString(), String)
 
       End If
   End Sub

So when in insert mode it shows the resulsts of both sql statements and not just the

IGridInsertItem mode.

 

 

Shinu
Top achievements
Rank 2
 answered on 01 Mar 2013
1 answer
84 views
i m using telerik rad grid. i show data in this upto 2 level hier.
1level group heading working? but 2level which comes under 1st level not working well? why
i create heading with 2 column one for showing sum of column data. and one for count .
Kostadin
Telerik team
 answered on 01 Mar 2013
1 answer
79 views
Hi all,
the telerik I have was bought in year 2010, where or how to get/download the latest controls?
Shinu
Top achievements
Rank 2
 answered on 01 Mar 2013
5 answers
794 views
<radCB:RadComboBox ID="ddlDecimals" runat="server" Skin="HSTM" Width="35px"
  <Items> 
 <radCB:RadComboBoxItem runat="server" Text="0" Value="0" /> 
 <radCB:RadComboBoxItem runat="server" Text="1" Value="1" /> 
<radCB:RadComboBoxItem runat="server" Text="2" Value="2" Selected="True" /> 
  </Items> 
</radCB:RadComboBox> 

$(document).ready(function() {    
 
    var checkddl = $("[id$=ddlDecimals]"); 
    $("[id$=ddlDecimals]").change(function() { 
        alert(this.value); 
    }); 
}); 

The change event is not firing for the radcombo  please help me regarding this.
Princy
Top achievements
Rank 2
 answered on 01 Mar 2013
11 answers
416 views
Hello,

I have a grid in which there is radio button.When user clicks on radio button ,radwindow is opened, now i wanted to close the window using top red cross button but after closing my radio button looses check/ uncheck value.For this
I wrote onClientClose() for radwindow
In my parent page, code is like this

 function OnClientClose(sender,args)
            {
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
            }

In my radwindow there is one save button and one cancel button.In both the buttons i am calling closeandrebind()
But after clicking those buttons , my parent page is loading again which i don't want to happen.
When i debug it, i found it was happening because of OnClientClose

Please help me with this problem.
Kishor
Top achievements
Rank 2
 answered on 01 Mar 2013
8 answers
407 views
Hi,

I have page it contains 3 user controls.
Each user control contains RadListView in which there are list of link buttons.

Why is click event is not firing when user clicks link button?

Best Regards,
Damodar
Damodar
Top achievements
Rank 1
 answered on 01 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?