Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
284 views
I have a grid on the page that has an edit button on each of the rows. Initially, I had a link with an image that would go to the correct edit page. However, I now need to do some processing before going to the edit page. I have tried several methods and none of them are working as expected.

1. Use GridEditCommandColumn and catch the ItemCommand event of the grid.
2. Use a template column with a button and catch the Click event of the button.
3. Use a template column with a button and set the CommandName and catch the ItemCommand event of the grid.

At this time, there are no errors. In all of these methods the grid will postback, but it does not reach the event. It will go through the Page_Load event, and then come back to the page.

UPDATE:

I am doing advanced databinding on the grid and the order of events seems to be Page_Load and then NeedDataSource. It appears to stop after this event. Also, ViewState is turned off.
Ron Buchanan
Top achievements
Rank 1
 answered on 04 Jan 2010
1 answer
201 views
How can I set the tabindex for each element of the pager?  I can do this for a couple of the elements but the documentation does not mention the names of ALL THE ELEMENTS of the pager.  Specifically I need to set the tabindex on the Next, Previous, First, Last and Numeric buttons.  

I need to override the default of '0' because I have a LinkButton column which for some reason receives focus after the pager elements.  I have set the tabindex to the LinkButton column elements to '0' but for some reason it's being bypassed. 
Princy
Top achievements
Rank 2
 answered on 04 Jan 2010
1 answer
90 views
Hello,
I was browsing to URL http://demos.telerik.com/aspnet-ajax/calendar/examples/programming/customdaycellrendering/defaultcs.aspx and in selected date text, I put abcd<br/>efg . In Client side, everything works at is should . It server side, I get an error <Sorry, we couldn't find the page you're looking for.>

Christos
Dimo
Telerik team
 answered on 04 Jan 2010
1 answer
93 views
Hi folks,

Does anyone have an example of using the ShowMoreResultsBox with the ItemsRequested event in an Entity Framework + LINQ scenario?

This page shows what I want:
http://www.telerik.com/help/aspnet-ajax/combo_loadondemandshowmoreresultsbox.html

but it uses a DataTable and offsets instead of LINQ syntax.

Thanks,

Ken
Simon
Telerik team
 answered on 04 Jan 2010
5 answers
106 views

http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/entitydatasource/defaultcs.aspx


I was playing the above demo app and found there is different behavior on selecting an item by clicking and selecting an item by typing

When select an item by clicking on it, the selected item will be highlighted and full list is remained. However if select the same item by typing it, the list is limited to the typed one.

My question is how to make the typing behavior is same as the clicking method? Is this default behavior? Is any future release will support this?

Simon
Telerik team
 answered on 04 Jan 2010
4 answers
80 views
Hi all,
  In my project I am replacing my Q2 2009 Sp1 version with Q3 209 SP1. But when the page loads it shows an error like

Could not load file or assembly 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


But the designer shows all the controls. The page contains RadSplitter, RadGrid and RadScheduler. Please share me a solution...

I see the post of Gert Petersen , but the solutions not working for me.
Pavlina
Telerik team
 answered on 04 Jan 2010
2 answers
108 views
Hi,

We recently upgraded the MOSS RadEditor from 4.4 to 5.6.

On of our editors complained about some lack of functionality in the Image Manager. In one of the picture libraries, there are now almost 900 pictures.
They would very much like to have the ability to:
  • Define default sorting when selecting a library in the left menu in the dialog box (i.e. sort by filename, instead of ID) (set via config file)
  • Define which (builtin) columns to view in the dialog box (set via config file)
  • Browse the library with thumbnails (i.e. turn on and off viewing of thumbnails) (check box in dialog box)
  • Turn on or off preview (to the right), which makes sense if you are already have turned on thumbnail browsing (check box in dialog box)
  • Resizing of the dialog box

I don't know if you've received feature request on any of these in the past, but if so, here's on more. :-)

Thank you.
Kind regards,
Frank-Ove Kristiansen
IT Department
Top achievements
Rank 1
 answered on 04 Jan 2010
3 answers
209 views
Hello,
I have two RadToolTipManagers :

    <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"  RelativeTo="Mouse"
                                 OnAjaxUpdate="OnAjaxUpdate" Sticky="true"   MouseTrailing="false"
                    Position="MiddleLeft" Width="500px" Height="320px"
        Animation="None" Skin="Office2007" EnableViewState="False">
    </telerik:RadToolTipManager>

    <telerik:RadToolTipManager ID="RadToolTipManager2" runat="server"  RelativeTo="Mouse"
                                 OnAjaxUpdate="OnAjaxUpdate2" Sticky="true" 
        ManualClose="true" Modal="true"
                    Position="MiddleLeft" Width="850px" Height="620px"  MouseTrailing="false"
        Animation="None" Skin="Office2007" ShowEvent="OnClick">
    </telerik:RadToolTipManager>

They have different target controls.Say RadToolTipManager1 takes care of controls 1-10, RadToolTipManager2 takes care of controls 20-30;
The problem is:

whenever I mouse over controls 1-10,  "OnAjaxUpdate" fired, AND "OnAjaxUpdate2" fired.
whenever I click controls 20-30,  "OnAjaxUpdate" fired, AND "OnAjaxUpdate2" fired.
 which screw up the display.
I'm looking for a simple way to solve the problem: Whenever I mouse over controls 1-10, ONLY "OnAjaxUpdate" fired,
 AND whenever I click controls 20-30, ONLY "OnAjaxUpdate2" fired.

Please help.

Thanks in advance,
Long

Svetlina Anati
Telerik team
 answered on 04 Jan 2010
3 answers
215 views
Hi,

Here is the scenario -

On RadGrid, user can click on cell and changes background color of the cell from nothing to "Green" .  Any help is highly appreciated..

Javascript code..

  <script type="text/jscript">
               /*
               It enables click functionality on the grid CELL..
               */
               function CellClick(index, uniqueName) {
                   var grid = $find("<%=gridWord.ClientID %>");
                   var MasterTable = grid.get_masterTableView();
                   var row = MasterTable.get_dataItems()[index];
                   var cell = MasterTable.getCellByColumnUniqueName(row, uniqueName);
                   var celltext = cell.innerHTML;
                   if (cell.style.backgroundColor == "green") {
                       cell.style.backgroundColor = "";
                   }
                   else {
                       cell.style.backgroundColor = "green";
                   }

                   
               }   
        </script>

code behind snippet -

protected void gridWord_ItemDataBound(object sender, GridItemEventArgs e)
        {
            //This bit enables JavaScript Click Event..
            if (e.Item is GridDataItem)
            {
                foreach (GridColumn col in gridWord.MasterTableView.RenderColumns)
                {
                    GridDataItem dataItem = (GridDataItem)e.Item;
                    dataItem[col.UniqueName].Attributes.Add("onclick", "CellClick('" + dataItem.ItemIndex + "','" + col.UniqueName + "');");
                }
            } 
        }


 protected void btnSubmit_Click(object sender, EventArgs e)
        {
                foreach (GridDataItem item in gridWord.MasterTableView.Items)
                {
   //Hard -code to get the BackColor of the cell..
                    TableCell cell = item["1"];
                    lblError.Text = cell.BackColor.Name;
                }
        }

cell.BackColor.Name always returns 0 even when the cell has "Green" background color.

FYI, RadGrid has only one ROW with multiple Columns.

Many thanks.

Milan G




Iana Tsolova
Telerik team
 answered on 04 Jan 2010
5 answers
214 views
Hi,

I know that the default (and only as far as I can find) width that the collapse on a RadSplitter drops to is 0px.
Has anyone managed to find a way to collapse to a minimum width of say 25px, so as not to obscure the pane completely?

Any pointers will be very welcome.

Yours thankfully

Dale
Svetlina Anati
Telerik team
 answered on 04 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?