Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 views
I am looking to have a color picker designed which is similar to this one here but yet different:
http://www.almsamim.com/color-picker.html

It visually is an HSV color space as the dimensions move the HSB numbers.

That one shows visually the HSV color space but actually it is using RGB color space to determine the value of the colors, because HSV is more of an intuitive visual representation.  In my color picker I need all 16,777,216 rgb hex colors to be able to be chosen uniquely with no duplicates.


In any case that is what I am looking for but with these key differences.

I need it 768 pixels x 768 pixels, so each color is going to take up a 9 (3x3) pixel square space. Also the movement of the cursor will only be on the center pixel of the 9 pixel squares.


Do you guys think this project could be accomplished using this program suite?  Thanks all!
Travis
Tsvetie
Telerik team
 answered on 12 Oct 2009
1 answer
82 views
Hi,
Is it possible to make the panelbar:
1. Click on the text to redirect and at the same time,
2. Click on arrow and other area besides the text to collapse/expand ?
Paul
Telerik team
 answered on 12 Oct 2009
1 answer
81 views
HI,
 
  I have used Rad Upload control.I want to upload images at a particular resolution.
 (say, user can upload images of resolution 777*115  px )
  Is it possible?

Thanks.
Paul
Telerik team
 answered on 12 Oct 2009
1 answer
35 views
How can i use Q3 2008 and Q2 2009 SKIN in the same page?
Paul
Telerik team
 answered on 12 Oct 2009
1 answer
159 views
I am attempting to fill the entire browser window which I want to shrink or expand as browser window is resized.  I have 2 RadDocks with a smaller one on the top (containing combo boxes), and a larger one one the bottom containing a grid.  The problem I have is that no matter what I have tried, the RadDockLayout does not stretch to consume 100% height (the width works fine).  What am I missing?  See the html below that I am using.  The only thing that has worked for a 1 size of browser window is setting the height (see bold below) on the  RadDock2, but this is not the desired effect.  Placing height at 100% does not work for me.  Seems 100% really means 75% internally (or that is how it looks).  This is in a content page where the master page has a title and menu on top of page.

<telerik:RadDockLayout ID="RadDockLayout1" runat="server" >
<center>
 <telerik:RadDockZone ID="RadDockZone1" runat="server" Width="98%">
  <telerik:RadDock ID="RadDock1" runat="server">
   <Commands>
    <telerik:DockExpandCollapseCommand />
   </Commands>
   <ContentTemplate>
     <!-- contains labels and combo boxes -->
   </ContentTemplate> 
  </telerik:RadDock>
  
  <telerik:RadDock ID="RadDock2" runat="server" Height="650px" >
  <Commands>
   <telerik:DockExpandCollapseCommand />
  </Commands>
  <ContentTemplate>
   <!-- contains grid -->
  </ContentTemplate>
  </telerik:RadDock>
 </telerik:RadDockZone>
</center> 
</telerik:RadDockLayout>
Jim
Top achievements
Rank 1
 answered on 12 Oct 2009
3 answers
200 views
A bit of an odd one.

I've a page with a grid on that does all sorts of clever things client-side in the OnRowSelecting event.

Sadly, the client has moved the goal posts and I (under certain circumstances) need to pre-select a row in my server-side code when the page loads.

Now, I know I can rewrite all of the clever JS to perform the same tasks on the server; I just don't want to

So, is there a way of forcing the selection of a row in server-side code that will trigger the client-side OnRowSelecting event? I can, I think, actually use the OnRowSelected event instead, if that's an option.

And, yes, I know I could write a JS function to do stuff and call that using, for example, ResponseScripts.Add(), but I want to access the 'sender' and 'args' parameters that the built-in client-side event exposes.

And thoughts?

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 12 Oct 2009
2 answers
250 views
I have 3 context menus loaded into my RadTreeView. I associate different menus with my nodes depending on node level. I'm using the OnClientContextMenuItemClicking event to prompt for Delete confirmation when user clicks a delete context menu command.  In my Client-side event handler, I want to determine which context menu was clicked so that I can hide just that menu.  I've found one way, but it seems cumbersome and subject to change if Telerik changes ID naming conventions.  Is there a better way to find the context menu that was clicked?  Here is what I have working right now:

<script type="text/javascript">
   function contextMenuItemClicking(sender, eventArgs) {
       var item = eventArgs.get_menuItem();
       if (item.get_text() == "Delete") {
           if (!confirm("Confirm delete")) {
               eventArgs.set_cancel(true);
               for (var i = 0; i < sender.get_contextMenus().length; i++) {
                   if (sender.get_contextMenus()[i]._clientStateFieldID ==
                       eventArgs.get_node()._resolvedContextMenuID + "_ClientState") {
                       sender.get_contextMenus()[i].hide();
                       break;
                   }
               }
           }
       } 
   }

(...)

            <telerik:RadTreeView ID="radTreeMainView" Runat="server" 
                Height="420px" 
                Skin="Web20" 
                OnClientContextMenuItemClicking="contextMenuItemClicking" 
                oncontextmenuitemclick="radTreeMainView_ContextMenuItemClick"
                >
            </telerik:RadTreeView>

Scott
Top achievements
Rank 1
 answered on 12 Oct 2009
1 answer
165 views

Hi,

I'm having a problem with radgrid and i couldn't find a general solution. Here is the scenario:

I have a search page that binds results to grid. pagesize=10. first query returns 11 elements so grid is 2 pages. i'm selecting second page then search again which returns 1 element. here is the problem, radgrid stuck at second page and i don't want to show "No records to display" message, i just want to reset page to 1. 

I can do it by:

protected void btnSearch_Click(object sender, EventArgs e)  
        {  
            grdBank.CurrentPageIndex = 0;  
            grdBank.Rebind();  
        } 

however, i'm using this grid in more than 100 pages which all have this problem. i don't want to put this code in every page. So i created my own custom pager as described here: http://www.telerik.com/help/aspnet-ajax/grdprogrammaticpagercustomization.html but this also has same problem. 

i tried to reset page by "e.Item.OwnerTableView.CurrentPageIndex = 0;" in "protected override void OnItemEvent(GridItemEventArgs e)" which works as expected but caused another problem that i can't go to page 3 which is also expected...

how can i solve it in pager? on which event should i reset page? 

Thanks

KocSistem
Top achievements
Rank 1
 answered on 12 Oct 2009
1 answer
124 views
Hi

Our client has purchased and made available the RadControls ( RadControls_for_ASP.NET_AJAX_2009_2_826_dev.msi). I am installing on a dev machine which is running Windows 2008 Server with Visual Studio 2008.

The installation fails when 'copying new files' with an error message 'Error Writing to File: Telerik.web.design.dll Verify that you have access to this directory'

I am using the admin account to install, and have removed the previous demo version of the controls.

Can anyone offer some advice?

William
Missing User
 answered on 12 Oct 2009
5 answers
333 views
We are creating the radgrid dynamically in code behind with one bound column and other template columns.
We are not able to find checkbox control in gridDataItem using gridDataItem.FindControl method although text of bound column is available.

Please provide solution for the same.

 Code:
The folowing method is called on page load:
----------------------------------------------------------------------------------------------------------------------
Private Function UpdateGridActionColumns() As GridColumnCollection
 Dim actionCollection As GridColumnCollection
        Dim dsActions As New DataSet
        Dim dtActions As New DataTable
        Try
            actionCollection = New GridColumnCollection(RadGrid1_Functions.MasterTableView)
            dsActions = Me._appObject.GetAllActions().ConvertToDataSet()
            RadGrid1_Functions.MasterTableView.Columns.Clear()


            Dim boundColumn As New GridBoundColumn
            boundColumn.DataField = "APP_FUNCTION_ID"
            boundColumn.UniqueName = "SEC_FUNCTION_ID"
            boundColumn.HeaderText = "Function"
            RadGrid1_Functions.MasterTableView.Columns.Add(boundColumn)

            If dsActions.Tables.Count > 0 Then
                dtActions = dsActions.Tables(0)
                For ctr As Integer = 0 To dtActions.Rows.Count - 1
                    Dim templateColumnID As String = dtActions.Rows(ctr)("Action_Id")
                    Dim templateColumn As GridTemplateColumn = New GridTemplateColumn
                    templateColumn.ItemTemplate = New MyTemplate(templateColumnID)
                    templateColumn.UniqueName = templateColumnID
                    templateColumn.DataField = "Action_Id"
                    templateColumn.HeaderText = dtActions.Rows(ctr)("Action_Name")
                    RadGrid1_Functions.MasterTableView.Columns.Add(templateColumn)
                Next
            End If
            Return actionCollection
        Catch ex As Exception
            Return Nothing
        End Try
End Function
----------------------------------------------------------------------------------------------------------------------
Template column class is:

 Private Class MyTemplate
        Implements ITemplate

        Protected chkTempColumn As CheckBox
        Private colname As String

        Public Sub New(ByVal cName As String)
            MyBase.New()
            colname = cName
        End Sub

        Public Sub InstantiateIn(ByVal container As System.Web.UI.Control) Implements ITemplate.InstantiateIn
            chkTempColumn = New CheckBox
            chkTempColumn.ID = "chk" & colname
            AddHandler chkTempColumn.DataBinding, AddressOf Me.chkTempColumn_DataBinding

            Dim table As Table = New Table
            Dim row As TableRow = New TableRow
            Dim cell As TableCell = New TableCell

            table.BorderWidth = 0
            row.BorderWidth = 0
            cell.BorderWidth = 0

            row.Cells.Add(cell)
            table.Rows.Add(row)
            cell.Controls.Add(chkTempColumn)
            container.Controls.Add(table)
            'container.Controls.Add(boolValue)
        End Sub

        Private Sub chkTempColumn_DataBinding(ByVal sender As Object, ByVal e As EventArgs)
            Dim cBox As CheckBox = CType(sender, CheckBox)
            Dim container As GridDataItem = CType(cBox.NamingContainer, GridDataItem)
            Dim dr As DataRow = CType(container.DataItem, DataRowView).Row

            'cBox.Checked = CType(CType(container.DataItem, DataRowView)("Bool"), Boolean)
            Select Case Integer.Parse(dr(colname))
                Case 0
                    cBox.Checked = False
                Case 1
                    cBox.Checked = True
                Case -1
                    cBox.Checked = False
                    cBox.Enabled = False
            End Select
        End Sub
    End Class
----------------------------------------------------------------------------------------------------------------------
Please provide the solution for same.

Please mark a copy of solution to:
chetan.mehta@cognizant.com

Regards
Chetan
Frameworks team, marketRx (A Cognizant company)

P.S: We have purchased Telerik UI suite but raising ticket here since the subscription has expired.
Nikolay Rusev
Telerik team
 answered on 12 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?