Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
Hi,
I have a screen in that I have Ribbonbars. I have 4 Ribbon Bar Tabs , each ribbon bar tab has 4 ribbon bar groups and each ribbbon bar group has 4 buttons.
My problem is I ahve the ribbon bar width as 100%. But these controls do not occupy the complete width. They look very clumsy.
Is there a way to adjust each Ribbon bar tab items to take up some extra space?
Thanks
Princy
Top achievements
Rank 2
 answered on 27 Jul 2012
3 answers
169 views
Hi , i am using Q1 2011 version of rad control in the application

I am trying to create a Grid dynamically and implementing sorting on that  (Grid Getting Disintegratesd on sorting{unwanted empty columns appear}):

Html Code:

<telerik:RadGrid ID="rdGrd" runat="server" AutoGenerateColumns="False" EnableEmbeddedSkins ="false" Skin="Outlook" HeaderStyle-HorizontalAlign="Left" CssClass="RadGrid_Outlook"
GridLines="Both" Height="350px" AllowSorting = "true">  

<MasterTableView ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" FilterItemStyle-HorizontalAlign="Left">

 <Columns>  

<telerik:GridBoundColumn DataField="ID" Display="False" UniqueName="ID"> <ItemStyle HorizontalAlign="Left" />  </telerik:GridBoundColumn

<telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name">

 <ItemStyle HorizontalAlign="Left" />

 </telerik:GridBoundColumn>

 </Columns>

 </MasterTableView>

<ClientSettings EnableRowHoverStyle="false">
<Selecting AllowRowSelect="false" />
<Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders = "true" /> </ClientSettings>
</telerik:RadGrid>

Vb Code On page load : (DtWrAra is a datatable)

 

Private Sub AddDynamicColumns()

For c As Integer = 0 To DtWrAra.Count - 1
Dim cbDownload As New GridTemplateColumn()

cbDownload.HeaderText = DtWrAra(c).Name

cbDownload.UniqueName = DtWrAra(c).Id

cbDownload.ItemTemplate = New RadGridCheckBoxTemplate(DtWrAra(c).Id) 

Me.rdGrd.MasterTableView.Columns.Add(cbDownload)
Next
End Sub
 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
rdGrd.DataSource = SampleDataSourceObject
AddDynamicColumns()

rdGrd.DataBind()

End Sub

========
These check box template columns are later checked on eachrow basis.

When i am performing sorting operation grid getting distorted .I am not Certain about the cause. Attached a screen shot..
If any one can help me on this ...

Thanks,
Saurabh

 

Shinu
Top achievements
Rank 2
 answered on 27 Jul 2012
0 answers
159 views
I am using RadGrid with a GridHyperLinkColumn.  I am binding the grid on the client side.  When I use the hyperlink, it seems that the hreg in the generated <a tag is a reference to the local server.  This is not what is in the bound object.  I have an object, with a prperty "Url", Url has the value http://google.com

<telerik:GridHyperLinkColumn HeaderText="Preplan" DataTextField="Url" DataNavigateUrlFields="Url"
Target="_blank" DataNavigateUrlFormatString="{0}" HeaderStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Left" Visible="false" AllowFiltering="false" />

Above is the markup that I am using, however the output is this:

<a target="_blank" href="/mytestsite/Home/tabid/41/language/en-US/http://google.com">http://google.com</a>

I am using DotNetNuke 5.6 with version 2010.02.0929.35 of Telerik.Web.UI.dll

Given that the text is correct and looking @ the object in the debugger, the given data string is http://google.com, I can only assume that the control is adding the relative path...

what I find interesting is that if I change the DataNavigationUrlFormattingString in the markup to be DataNavigateUrlFormatString="http://google.com"  I get the expected result:
<a target="_blank" href="http://google.com">http://google.com</a>

Any thoughts on what I'm doing wrong?

An update:
It seems that if I use the property: DataNavigateUrlFormatString="http://{0}"

 

I get a different result, then I get either :  <a href="http:http://google.com" target="_blank">http://google.com</a> or <a href="http://google.com" target="_blank">http://google.com</a>
depending on the contents of the field, if it is http://google.com then you get the former, if it's google.com  then it's the latter.

 

 

 

 

 

Geoffrey
Top achievements
Rank 1
 asked on 26 Jul 2012
5 answers
207 views
Hello,

I have a grid with 28 column filters. My question is: once a filter is applied, is there a way for the user to know that a particular filter is active? As there is no change in the filter icon or color (or column background), then how can the user know there is filtering in the grid and on which column(s)?
Is there any grid built-in property that allows to achieve this functionality?

Regards,
M.R.
M. R.
Top achievements
Rank 1
 answered on 26 Jul 2012
1 answer
105 views
Hey guys,
I have an issue with batch update similar to this example:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx 

my issue is I cant use the SqlDataSource but must use the ObjectDataSource as all Database requests goes through Stored Procedures and the stored procedure updates two tables...two update commands in the procedure.

What do I need to change in your example to get this working with an objectdatasource?

Thanks,


Dimitrios
Top achievements
Rank 1
 answered on 26 Jul 2012
16 answers
281 views
Hi, I'm facing something strange with rad orgchart control.

I've an orgchart which i bind it with some data in the Page_PreInit, and within each node i created RadDockZone Template inside every node.

the problem is: At the last node in the orgchart it doesn't fire the InstantiateIn directly for the raddockzone template , while it's fire directly with the rest nodes except the last one,  it's fire but too late , it fire after orgchart_DataBound and Page_Init and Page_Load. so this problem doesn't allow me to save the dock state in the last zone in the last node.

UPDATE : WORKING CODE IS IN THE THIRD POST PLEASE TRY IT.

Thank you.
Kate
Telerik team
 answered on 26 Jul 2012
8 answers
808 views
Hello,
I have a grid with GridClientSelectColumn column and client setting with AllowRowSelect="true". Furthermore, on

ItemDataBound

event, I hide the checkbox based on some logic, because I want only specific rows to be selected. The problem is that even if I hide the checkbox, the grid allows the row to be selected by simply clicking anywhere on the row. What is a proper way to setup a grid that allows only specific rows to be selectable?

Thank you.

 

 

 

 

Eyup
Telerik team
 answered on 26 Jul 2012
5 answers
165 views
Hi,

  What is the easiest way to add a text message above the input fields in the upload window in file explorer?

Thanks,

Jed
Vessy
Telerik team
 answered on 26 Jul 2012
4 answers
492 views
I've just upgraded to Q2 2012 and I'm now having a problem with code that has worked for months without any issues.  I've got an onkeyup function on a RadTextBox, which then fires an ajax request to get search results as the user types.  In Q2 2012 the value of the text box is not being consistently set before my onkeyup function is run.  So if I put a break point in the function I get

>>> $find("ctl00_MainContent_SearchBox").get_value()
""
>>> $find("ctl00_MainContent_SearchBox").get_textBoxValue()
"d"

In code behind when I do SearchBox.Text I get the blank value, not the text.  As soon as my onkeyup event has finnished the value is set correctly.  I did not have this issue in Q3 2011.

If I change the RadTextBox to an asp:TextBox the issue goes away.
Roelof
Top achievements
Rank 1
 answered on 26 Jul 2012
1 answer
234 views
Using latest(2012, 2, 607, 40) version I have one notification control on the page.
In code, I can set and show the notification and it shows fine.
But when I set and show the notification from the ItemCommand in a raggrid, then notifiaction shows no text in the title or text; It still has the notification popup with Icon, and that's it......

<

asp:Content ID="Content1" ContentPlaceHolderID="cp" runat="Server">

    <telerik:RadAjaxManager runat="server" ID="ram" DefaultLoadingPanelID="rlp">

        <AjaxSettings>

            <telerik:AjaxSetting AjaxControlID="btnNew">

                <UpdatedControls>

                    <telerik:AjaxUpdatedControl ControlID="rgvPolicy" />

                </UpdatedControls>

            </telerik:AjaxSetting>

            <telerik:AjaxSetting AjaxControlID="rgvPolicy">

                <UpdatedControls>

                    <telerik:AjaxUpdatedControl ControlID="rgvPolicy" />

                </UpdatedControls>

            </telerik:AjaxSetting>

        </AjaxSettings>

    </telerik:RadAjaxManager>

<telerik:RadAjaxLoadingPanel runat="server" ID="rlp">

</telerik:RadAjaxLoadingPanel>

<telerik:RadNotification AutoCloseDelay="0" Animation="Resize" AnimationDuration="500" runat="server" ID="rn" Position="Center" Width="400" />

<div class="generic-container" style="margin:10px;"> ...

 

 

Protected Sub rgvPolicy_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgvPolicy.ItemCommand

    If TypeOf e.Item Is GridDataItem And e.CommandName = "Delete" Then

        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)

        Dim ID = DirectCast(item.GetDataKeyValue("PolID"), Integer)

        Dim desc = item("PolDescription").Text
 

        proj.espManager(schema).PolicyManager.Item(ID).Delete()

        rgvPolicy.Rebind()

 

        With rn

            .TitleIcon = IconURL(Buttons.ButtonFunction.Ok)

            .Title = "Policy Deleted"

            .Text = String.Format("Policy '{0}' and all its calculations have been deleted.", desc)

            .Show()

        End With

    End If

End Sub

Protected Sub RadButtonEx1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadButtonEx1.Click

    With rn

        .TitleIcon = IconURL(Buttons.ButtonFunction.Ok)

        .Title = "AAAAAAAAAAAAAARG"

        .Text = String.Format("Policy '{0}' and all its calculations have been deleted.", "YADDA")

        .Show()

    End With  

End Sub

Marin Bratanov
Telerik team
 answered on 26 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?