Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
86 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
79 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
66 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
54 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
52 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
106 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
138 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
2 answers
115 views

Hello 

I am using a gridview which is having GridClientSelectColumn.

Is there any way to get the checkstate of a row serverside ?

I tried the following, but checkbox is never checked

   foreach (GridDataItem item in oGridFields.Items) {
        CheckBox chk = (CheckBox)item["prgSel"].Controls[0];
        if (chk.Checked) {
  
        }
    }

 

Thanks for any help.

Karlheinz
Top achievements
Rank 1
 answered on 20 Apr 2015
2 answers
178 views

I have a webpage that has a regular RadGrid with GridBoundColumns and GridNumericColumns. 

During the excel export the formatting of my numerical data seems to get lost. Columns that appear on the grid on the page will look like:

 

123.43

0.00

 

The aspx for the regular RadGrid has code that another developer wrote that includes attributes:

EmptyDataText

DataFormatString

FooterAggregateFormatString

 

Here is what that looks like:

 

<telerik:GridNumericColumn DataField="revenue" EmptyDataText="0.00" HeaderText="Revenue" DataFormatString="{0:#,##0.00;(#,##0.00)}"<br>                        Groupable="false" UniqueName="revenue" Aggregate="Sum" FooterText=" " FooterAggregateFormatString="{0:#,##0.00;(#,##0.00)}"><br>                        <HeaderStyle HorizontalAlign="Center" /><br>                        <ItemStyle HorizontalAlign="Right" Wrap="false" /><br>                        <FooterStyle HorizontalAlign="Right" Wrap="false" /><br>                    </telerik:GridNumericColumn>

 

In the RadPivotGrid the similar column to above appears like so:

 

<telerik:PivotGridAggregateField DataField="actualValue" Aggregate="Sum"><br>                    <HeaderCellTemplate><br>                        <asp:Label ID="lblActualValue" Text="Actual" runat="server" /><br>                    </HeaderCellTemplate><br>                </telerik:PivotGridAggregateField>

So how can I add the attriutes I mentioned to the PivotGridAggregateField?

 

Thanks,

 Julian

 

Julian
Top achievements
Rank 1
 answered on 20 Apr 2015
1 answer
82 views

I try to implement a RadSlider in RadGrid EditTemplate according to this demo

 

demos.telerik.com/aspnet-ajax/slider/examples/databinding/defaultvb.aspx

 Something like this:

 

http://www.ulealliance.org/certification/list.aspx

 

But the JavaScript cannot find the slider and tooltipmanager.

Could you test with a short demo app?

PS: I do not need the functionality with the thumbnails, onlu Slider ith step Tooltips.

 

Thanks,

Marc

Slav
Telerik team
 answered on 20 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?