Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
245 views
This doesn't seem like it should be that difficult but I can't figure out how to do it.   I have a grid with an ImageButton template column.   When the ImageButton is clicked, I want to access the grid and retrieve certain column key values from that row on the client side.  The row is not selected, so the grid.get_masterTableView().get_selectedItems()[0] does not work.    How can I do this?

Thanks,
Jeff G.
Princy
Top achievements
Rank 2
 answered on 13 Jul 2010
2 answers
153 views
Hi, does anyone know how to automatically select a new row immediately after adding it? I would like my users to be able to add a new row and then it is selected (highlighted) automatically (wouldn't want to tire their fingers out ...joke).

Thanks.
GlenB
Top achievements
Rank 1
 answered on 13 Jul 2010
0 answers
300 views
Just FYI, I was getting a 401 from my Captcha control (using SharePoint + IIS6) when it accesses the Telerik.Web.UI.WebResource.axd handler. This is because my SharePoint site is not anonymous at the top level, but only at specific sub-site levels.

Adding this to the Web.config file seemed to work:

<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*"/>       
      </authorization>      
    </system.web>
  </location>

Lynne
Top achievements
Rank 1
 asked on 13 Jul 2010
2 answers
102 views
Hi,

I want to open Radwindow,when i check the node in RadTreeview. for that i used node_check event().and Radwindow.visibleOnpageLoad=true;  RadWindow is opening with button_click,but not opening with Treeview.node_check event.

protected

 

void RadTreeView1_NodeCheck(object sender, RadTreeNodeEventArgs e)

 

{

 

RadTreeNode node = e.Node;

 

}

 

if (e.Node.Text == "Chief Complaints")

 

{

// not working
RadWindow1.VisibleOnPageLoad =

true;

 

}

 

}

 

protected

 

void b1_Click(object sender, EventArgs e)

 

{
//working

RadWindow1.VisibleOnPageLoad =

true;

 

}

 


Regards,
Srikanth.

Srikanth
Top achievements
Rank 1
 answered on 13 Jul 2010
5 answers
478 views
Using 3.5 controls - Have Telerik project set to use the 3.5 binary inside my solution structure.

I have a web page with a gridview control with paging enabled. The data is coming from a sql datasource (I also tried changing it to use a List<> with the OnNeedDataSource event.

I can view the grid fine and page back and forth between the numeric pages however when I change the PageSize drop down I get this error message.

Unable to cast object of type 'ASP.masterpage_master' to type 'Telerik.Web.UI.GridTableView'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Unable to cast object of type 'ASP.masterpage_master' to type 'Telerik.Web.UI.GridTableView'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidCastException: Unable to cast object of type 'ASP.masterpage_master' to type 'Telerik.Web.UI.GridTableView'.]
   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +1719
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

I put the Telerik.Web.UI.DLL into reflector and inspected the  raisepostbackevent method for the radgrid I'm only seeing 2 places where it directly casts it to a GridTableView

    if (eventArgument.IndexOf("FireCommand") != -1) 
    { 
        GridGroupByExpression expression2; 
        GridGroupByExpression expression3; 
        string id = eventArgument.Split(new char[] { ';' })[0].Split(new char[] { ':' })[1]; 
        GridTableView tableView = (GridTableView) this.Page.FindControl(id); 
 ...
    if (eventArgument.IndexOf("ReorderColumns") != -1) 
    { 
        GridTableView view = (GridTableView) this.Page.FindControl(eventArgument.Split(new char[] { ',' })[1]); 

Is there any chance that eventArgument.Split is returning something like "this" that it would pick up the masterpage reference somehow?

Or does anyone have any idea what could be causing this error?


smith spd
Top achievements
Rank 1
 answered on 12 Jul 2010
0 answers
102 views
I have a context menu that has an "edit" item. I would like to have that "edit" item perform as the double click functionality does. What it does not seem to do is handle recurring events properly -- it does not popup the box that asks whether to edit a single occurrence or the whole series.

EDIT: Disregard. I had code that was breaking this functionality. It is now working.
lordscarlet
Top achievements
Rank 1
 asked on 12 Jul 2010
15 answers
473 views
Hello all,

I'm using the horizontal menu with drop downs.
I've successfully deployed a custom CSS for my menu, however I can not figure out how to display the arrow effect when an item has children.
I've found the css skin file selectors, and it looks like rmExpandLeft is the class to manipulate it, but when I add that element to the CSS file it doesn't do anything.
I've compared the source for "Default" css and my custom css and the HTML output is the same; additionally, there is NO rmExpandLeft in the HTML, so I'm not sure how to determine if it has children.

Any clues?

Regards

Matt
Jason Fedler
Top achievements
Rank 1
 answered on 12 Jul 2010
2 answers
217 views
I need to access the item that is being edited from the updating event of a SqlDataSource.  Currently, I am able to access the item by using the following code.

protected void SqlDataSource1_Updating(object sender, SqlDataSourceCommandEventArgs e)
{
    foreach (GridItem item in rgvResult.MasterTableView.Items)
    {
        if (item.Edit)
        {
            GridEditFormItem editItem = (GridEditFormItem)rgvResult.MasterTableView.GetItems(GridItemType.EditFormItem)[item.ItemIndex];
 
            //do stuff
        }
    }
}

Is there a method similar to GetInsertItem() that I can use to get the edited item or do I have to loop through the collection to get the item?
Waylon Campbell
Top achievements
Rank 1
 answered on 12 Jul 2010
1 answer
115 views
I want to change the color of the hours column programmatically. So I want to have some of the hour labels in one color and other labels in other colors. Is there a way to do this?
Peter
Telerik team
 answered on 12 Jul 2010
3 answers
174 views
Hi All,

I have a situation where i have to update a recurrence rule in such a way that it includes exception in recurrence rule itself programmaticly.
For ex if there is a weekly recurrence rule but i would like to add exception that there should be no occurrences for all Wednesdays.

Please do the needful.

Thanks
Prashant
T. Tsonev
Telerik team
 answered on 12 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?