Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
171 views

Hi,

I'm trying to insert a child table into a hierarchical RadGrid.  If there is already a child table under the master table, the Add New Record button appears.  When there are no child tables already existing, however, the grid just displays "No child records to display".  My desired functionality is to get a new child record to be created even if there are none existing via an Add New Record button.  Is this possible (through a property, button, or otherwise)?

I have provided a picture for reference.  The first two master records are unable to create new records underneath them, even though the third and fourth master records are.

Thanks!

Brian
Top achievements
Rank 2
Iron
 answered on 21 Apr 2015
2 answers
39 views

Hi,

Where is the best place to post a question re Spread Processing component when used in ASP.Net?

 Regards

 Jon

Jon
Top achievements
Rank 1
 answered on 21 Apr 2015
1 answer
51 views

 

 Hi team,

I have a Master Page withe the inline style and in my content page I have a user control which has a placeholder in Radajaxpanel. again in this user control I have another user control which has a Linkbutton and a TextBox inside a RadajaxPanel. in the first page Load everything looks really good but anytime that I am clicking on the linkButton and Post back happens the page is removing all the margin-left or padding left in the page. It is so strange because for the other normal post back that page is loading everything is working well but after this post back page layout is changing by missing the margins even for those items that I have in master page and after that even if I refresh the page the style is still messed up. Please help me.

 Thanks

 

Maria Ilieva
Telerik team
 answered on 21 Apr 2015
0 answers
89 views

Hi

 

I have Designed in my aspx page with bootstrap css then when i click hyperlink button open that bootstrap page with in the radgrid window. But my bootstrap 

page show not correct my bootstrap css not reflect there i navigate the page without rad window working fine . So how to change this

i need radwindow accept my bootstrap design page how will do this

Jaya
Top achievements
Rank 1
 asked on 21 Apr 2015
1 answer
83 views

I had to put in a Boolean value on my grid to trigger it in certain situations to fill or not.  however with the gird features of insert and edit turned on it will not show them on postback so I cannot do insert or edits with template editform's.  I know I have resolved this long ago but can't find location or my old ticket.

 It only happens when I click on edit form or insert to grid and I get blank grid line, but if I hit refresh again there is the edit or insert information, so I know it has to do Boolean statement.

 

Dim fundGrid As Boolean = False
 
 
Protected Sub myFundGrid_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles myFundGrid.ItemCommand
       If (e.CommandName = "Archive") Then
           Dim fundId As Integer = e.CommandArgument
 
           sql = "Update Drat_FundSource set bitArchive = 1 where intFundID = " & fundId
 
           insertUpdateDelete(sql)
 
           fundGrid = True
           myFundGrid.Rebind()
       End If
 
       If (e.CommandName = RadGrid.PerformInsertCommandName AndAlso e.Item.OwnerTableView.Name = "FundGrid") Then
           Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
           Dim source As DropDownList = DirectCast(editedItem.FindControl("ddlSource"), DropDownList)
           Dim pgm As TextBox = DirectCast(editedItem.FindControl("txtPGm"), TextBox)
           Dim eor As TextBox = DirectCast(editedItem.FindControl("txtEOR"), TextBox)
           Dim mdep As TextBox = DirectCast(editedItem.FindControl("txtMDEP"), TextBox)
           Dim ams As TextBox = DirectCast(editedItem.FindControl("txtAMSCOS"), TextBox)
 
           sql = "Insert Drat_FundSource (intSourceId, strPGMCDNum,strEORNum, strMDepNum, strAMSCOSNum, dtEntered, intEnteredBy) VALUES (" & source.SelectedValue & ", '" & sanitizeString(pgm.Text.ToUpper) & "', " _
               & "'" & sanitizeString(eor.Text.ToUpper) & "', '" & sanitizeString(mdep.Text.ToUpper) & "', '" & sanitizeString(ams.Text.ToUpper) & "', '" & Date.Now & "', " & GetUserId() & ")"
 
           insertUpdateDelete(sql)
 
           fundGrid = True
           myFundGrid.Rebind()
       End If
 
       If (e.CommandName = RadGrid.UpdateCommandName AndAlso e.Item.OwnerTableView.Name = "FundGrid") Then
           Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
           Dim fundId As Integer = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("ID")
           Dim source As DropDownList = DirectCast(editedItem.FindControl("ddlSource"), DropDownList)
           Dim pgm As TextBox = DirectCast(editedItem.FindControl("txtPGm"), TextBox)
           Dim eor As TextBox = DirectCast(editedItem.FindControl("txtEOR"), TextBox)
           Dim mdep As TextBox = DirectCast(editedItem.FindControl("txtMDEP"), TextBox)
           Dim ams As TextBox = DirectCast(editedItem.FindControl("txtAMSCOS"), TextBox)
 
           sql = "Update Drat_FundSource set intSourceId = " & source.SelectedValue & ", strPGMCDNum = '" & sanitizeString(pgm.Text.ToUpper) & "', strEORNum = '" & sanitizeString(eor.Text.ToUpper) & "', " _
               & "strMDepNum = '" & sanitizeString(mdep.Text.ToUpper) & "', strAMSCOSNum = '" & sanitizeString(ams.Text.ToUpper) & "' where intFundId = " & fundId
 
           insertUpdateDelete(sql)
 
           fundGrid = True
           myFundGrid.Rebind()
       End If
   End Sub
 
 
 Protected Sub myFundGrid_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles myFundGrid.NeedDataSource
       If fundGrid = True Then
           Dim sqlwhere As String
           If cbhistory.Checked = True Then
               sqlwhere = String.Empty
           Else
               sqlwhere = "  where bitArchive IS NULL"
           End If
 
           sql = "Select ds.intFundId ID, intSourceId, CASE WHEN ds.intSourceId = 1 then 'FEDERAL' ELSE 'STATE' END SOURCE, ds.strPGMCDNum PGMCD, ds.strEORNum EOR, ds.strMDepNum MDEP, ds.strAmscosNum AMSCOS, " _
                  & "Convert(varchar(10), ds.dtEntered, 111) DATE, mn.strFullName + ' \ ' + strRank NAME from Drat_FundSource ds INNER JOIN MnNgPersonnel.dbo.tblMNNatPersonnel mn on mn.intPersonnelId = intEnteredBy " _
                  & sqlwhere
 
           myFundGrid.DataSource = getData(sql)
       End If
   End Sub

Angel Petrov
Telerik team
 answered on 21 Apr 2015
1 answer
71 views

The following thread was created by myself on the same subject but using a drop down list. 

http://www.telerik.com/forums/use-value-as-displayed-selected-value

 

I'm wondering if this is possible with the ComboBox? I know it seems like and odd request but the list is fixed and needs to show the value of the item when collapse but he full description when expanded.

 

Thanks!

Dimitar Terziev
Telerik team
 answered on 21 Apr 2015
1 answer
56 views
hi i am trying to use the grid save changes command.  and i am getting err 500.  it seems to be related to the input of the controller.  but i cant find it.  can any one post an exmple how the controller should look for telerik grid mvc ajax . net 4.5
Naomi
Top achievements
Rank 1
 answered on 21 Apr 2015
1 answer
53 views

I see that the dropdown tree has a get_embeddedTree() function that returns a RadTreeView. I wanted to get all nodes in the tree and test if they had any children.

 So I can do embeddedTree.get_allNodes(); and iterate through that array. Here comes the part I am asking about. In chrome console, I see there is a _hasChildren() function for a node. I don't see this documented anywhere on the Telerik site. Why is this function undocumented? Is it safe to use?

Plamen
Telerik team
 answered on 21 Apr 2015
1 answer
109 views

Is it possible and legal (from licensing) to utilize the RadAsyncUpload dnn wrapper (DnnAsyncUpload) to apply a custom skin to the control for use in a custom module (non-commercial)?  I have tried using the CSS file from various Telerik skins and have followed the tutorial from the Telerik docs, but they don't seem to work.  I'm including the CSS file as follows:

<dnn:DnnCssInclude runat="server" FilePath="~/DesktopModules/myModule/css/Upload.Bootstrap.css" />

The CSS file is successfully being included.

The control is defined as:

<dnnweb:DnnAsyncUpload runat="server" ID="dnnUpload" MultipleFileSection="Automatic" EnableEmbeddedSkins="false" ControlObjectsVisibility="All" Skin="Bootstrap" ... />

If this isn't support for the DNN wrapped control, no problem... I just didn't want to spend time figuring it out if it isn't supported.  If it is supported, why won't the custom skins display?

Thanks.

Hristo Valyavicharski
Telerik team
 answered on 20 Apr 2015
3 answers
142 views

hi,

in first pic i have tree view wich it bind from DB and i have button i have some instruction in envent nodecheck before i click button the event work after clicking and binding gridview the instruction in nodecheck  dosen't work i dont know plz help 

Ivan Danchev
Telerik team
 answered on 20 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?