Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
110 views
Hi,

I have been using the GridCheckBoxColumn in the Grid. I do need to invoke a checkbox clicked event when the checkbox is checked or unchecked. Based on the event, the reason for selection(next column) is to be populated or cleared. I am not using the radgrid_itembound method as I am using a customized grid of RadGrid which doesn't give this method exposed.  Please suggest on the checkbox click event.

Regards,
Francita.

Francita
Top achievements
Rank 1
 asked on 07 Aug 2010
2 answers
155 views

Dear All
I need to change text direction of RadEditor from server side on the basis of application language. I mean "rtl" and ltr". I have tried with the following but unable to see any difference. Can you guide me in this regard.

   if (Page.IsPostBack == false)
        {
                      RadData.Attributes.Add("dir", Activity.getLanguageDirection());
}

I have also tried by adding this attribute to full page which is transformed to rtl/ltl but no effect on RADEditor..

Any suggestions??
Aamir Ali Ansari
Top achievements
Rank 2
 answered on 07 Aug 2010
4 answers
285 views
Good Day All

i have a Toolbar button that has a textbox and image buttons, now my problem is that the controls inside the toolbar are not aligned correctly. i would like to have them centered. I have attached the image on how they look and the markup to the definition is

<telerik:RadToolBar ID="RadToolBar1" Runat="server" Width="100%" Height="100%" Skin="Forest">
              <Items>
              <telerik:RadToolBarButton Width="90%" Text="Button1" runat="server">
              <ItemTemplate>
                <asp:ImageButton ID="btnoweb" Height="50" Width="50" runat="server" ImageUrl="~/images/Picture3.png" />
                 
                <asp:ImageButton ID="btnCalender" Height="50" Width="50" runat="server" OnClick="btnCalender_Click" ImageUrl="~/images/CalenderView.png" />
                
                <asp:ImageButton ID="btnAttach" Height="50" Width="50" runat="server" ImageUrl="~/images/Attach.png"/>
                
               <asp:Menu ID="mnuMenu" Height="50" Width="50" runat="server" ></asp:Menu>
               
               <asp:ImageButton ID="imgpose" Height="50" Width="50" runat="server" ImageUrl="~/images/Picture5.png"/>
                <asp:TextBox ID="txtsearch"  Width="650px"  Height="40px" runat="server" ></asp:TextBox>
               <asp:ImageButton ID="ImageButton1" Height="50" Width="50" runat="server" ImageUrl="~/images/Cancel.png" />
              </ItemTemplate>
              </telerik:RadToolBarButton>
              </Items>
             </telerik:RadToolBar>

Thanks
Vuyiswa
Top achievements
Rank 2
 answered on 07 Aug 2010
4 answers
129 views
hello

I needed some custom filter controls. So I created my own column-class:
public class GridColBound : GridBoundColumn

and created my own filter-control:
protected override void SetupFilterControls(TableCell cell)
 {
     base.SetupFilterControls(cell);
     cell.Controls.RemoveAt(0);
     Label _lbl = new Label();
     _lbl.ID = "FilterLabel" + this.DataField;
     _lbl.Visible = true;
     _lbl.Text = "Filter";
     _lbl.BackColor = System.Drawing.Color.Green;
     _lbl.ForeColor = System.Drawing.Color.White;
     _lbl.BorderColor = System.Drawing.Color.Black;
     _lbl.BorderStyle = BorderStyle.Solid;
     cell.Controls.AddAt(0, _lbl);
     cell.Controls.RemoveAt(1);
 }
...

Everything worked as expected, but: No more events are thrown. No ItemCommand, no RadToolBar1_ButtonClick.

What can I do?

thanks

Ralph


Regeesh Joseph
Top achievements
Rank 1
 answered on 07 Aug 2010
1 answer
74 views
Hi all,

 I have a rad grid, that is automatically generated because it must be dynamic. When editting items in the grid I use AutoGenerate='true' because the grid never has the same dataset twice.

When using .ExtractValues, the values are not matching up with the grid.

As an example, my datagrid has 3 columns. ID, A and B.

ID get's set to read only when the form is in edit mode so as to not confuse users. We then have A and B, correctly displayed in the correct order.

But when .ExtractValues pulls out the values, the values for column B go in with Key A and vice-versa.

Any ideas?

Thanks!
Brad
Top achievements
Rank 1
 answered on 07 Aug 2010
1 answer
65 views
I want to have 5-6 tabs each Multipage would have a RadGrid or RadListView on it (amound other things)

Is there a way to set it up so only the active tab is rendering\bloating the viewstate :)

...in my case a user might not even click to any other tabs ever so I don't want any extra bloat coming down

Or is this how it works now?
Cori
Top achievements
Rank 2
 answered on 06 Aug 2010
3 answers
135 views
Hello, i currently have a form and part of the form includes a RadComboBox that is populated by a big list (over 1k items). The problem is that when i try to use the combo box it spikes the cpu and ram usage (300-600mb) and it freezes the browser. This happens everything i try to use the combobox. I've tried IE, Chrome and Firefox; they all have the same problem but IE has  more notable memory usage.

Any ideas?
Rafael
Top achievements
Rank 1
 answered on 06 Aug 2010
4 answers
202 views
I am using a context menu and when a user clicks on a certain menuitem I want a confirm dialog to appear asking whether or not it should proceed with the onclick event. If the user wants to proceed, then the onclick event is triggered, if the user does not, then nothing happens and the confirm dialog just closes. I have tried this using the blockConfirm as shown:
window.blockConfirm = function (text, mozEvent, oWidth, oHeight, callerObj, oTitle)
{
  var ev = mozEvent ? mozEvent : window.event; //Moz support requires passing the event argument manually
  //Cancel the event
  ev.cancelBubble = true;
  ev.returnValue = false;
  if (ev.stopPropagation) ev.stopPropagation();
  if (ev.preventDefault) ev.preventDefault();
 
  //Determine who is the caller
  var callerObj = ev.srcElement ? ev.srcElement : ev.target;
 
  //Call the original radconfirm and pass it all necessary parameters
  if (callerObj)
  {
    //Show the confirm, then when it is closing, if returned value was true, automatically call the caller's click method again.
    var callBackFn = function (arg)
    {
      if (arg)
      {
        callerObj["onclick"] = "";
        if (callerObj.click) callerObj.click(); //Works fine every time in IE, but does not work for links in Moz
        else if (callerObj.tagName == "A") //We assume it is a link button!
        {
          try
          {
            eval(callerObj.href)
          }
          catch (e)
          {
          }
        }
      }
    }
    radconfirm(text, callBackFn, oWidth, oHeight, callerObj, oTitle);
  }
  return false;
}
function RadContextMenu_ItemClicking(sender, eventArgs)
{
  var item = eventArgs.get_item();
    if (item.get_text().substring(0, 7).toLowerCase() == "publish")
    {
        //display radconfirm popup
        return blockConfirm('message', eventArgs, 340, 100, '', 'Confirm Publish');
    }
  if (item.get_text().substring(0, 7).toLowerCase() == "version" || item.get_text().substring(0, 7).toLowerCase() == "publish")
  { 
    eventArgs.set_cancel(true);
  }
  else
  {
    //disable all context menus
    <asp:Literal ID="LiteralDisableContextMenu" runat="server" />
  }
}

I am pretty sure the problem is with the eventArgs variable that I am sending the blockConfirm. I have the blockConfirm working on a different part of my project when triggered from an ImageButton and that call is:

return blockConfirm('Are you sure you want to delete this item?', event, 340, 100, '', 'Confirm Delete?');

When I try using the variable "event" with the onclientclicking I get an error saying it does not exist. So what do I need to do to make this work with a RadMenuItem?

I read on the forums and could not find any answer, however this has been asked before here: http://www.telerik.com/community/forums/aspnet-ajax/treeview/radconfirm-on-radtreeview-nodeclick.aspx







Cori
Top achievements
Rank 2
 answered on 06 Aug 2010
3 answers
164 views

Hi all,

I am using the below code to populate a DateInput when the user edits a record in a RadGrid so the Edit form is pre-populated with correct data. All is well until I try to Add a new record, because the ExpireDate variable is now NULL.

The Exception is:

An exception of type 'System.InvalidCastException' occurred in App_Web_xngshb9r.dll but was not handled in user code

Additional information: Specified cast is not valid.

And the code block (client-side):

<

 

telerik:RadDatePicker ID="RDP" runat="server" MinDate="01/01/1900" MaxDate="12/31/2100"

 

 

    SelectedDate='<%# Eval("ExpireDate") %>' TabIndex="2" OnSelectedDateChanged="RDP_SelectedDateChanged">

 

 

</telerik:RadDatePicker>

Any help would be greatly appreciated!

 

Brad
Top achievements
Rank 1
 answered on 06 Aug 2010
1 answer
141 views
Hi all,

I have found many posts about RadConfirms but none seem to fit what I need. I've read the post here:
http://www.telerik.com/help/aspnet-ajax/window_dialogsconfirm.html

Along with others.

I have RadConfirm windows tied into my RadGrids and would like to display RadConfirms, completely from the server side, similar to those fired off from the RadGrid.

I can display a confirm box from firing it off of another control like:

<

 

button onclick = "radconfirm('Are you sure?', confirmCallBackFn); return false;"> show CONFIRM BOX</button>

 

But I would rather be able to do it similar to a .Show() method from Forms controls.

But that doesn't allow for changing the title or text, nor do I need the extra function for determing the callback value.

Any help would be greatly appreciated.

Thanks!
Brad
Top achievements
Rank 1
 answered on 06 Aug 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?