Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
209 views
hello...
i m using dynamic Rad text box...

protected void Page_Init(object sender, EventArgs e)

{

for (Int32 j = 0; j < 2; j++)

{

TableRow tr = new TableRow();

for (Int32 i = 0; i < 2; i++)

{

HimaniTextBox txtbox = new HimaniTextBox();

txtbox.ID = "TextBox" + i;

txtbox.CssClass = "txtstyle1";

TableCell tc = new TableCell();

tc.Style.Add("Width", "50%");

tc.Controls.Add(txtbox);

tr.Controls.Add(tc);

}

Table1.Controls.Add(tr);

}

}
STYLE SHEET Is

 

.txtstyle1

 

 

{

width:99% !important;

}
when i enter  text in this textbox its  size increase according enter text...
for clear vision plz see  attached file

Harry
Top achievements
Rank 1
 answered on 20 Nov 2009
3 answers
154 views
Hi,

I need to pop up a window in asp.net MVC application, so i used RadWindowManager and window.radopen(it works fine in web form).

 
 <telerik:RadWindowManager runat="server" ID="RadWindowManager1" VisibleStatusbar="false" Modal="true" DestroyOnClose="true" Behavior="Close,Reload,Move,Resize" > 
            <Windows> 
                <telerik:RadWindow runat="server" ID="RadWindow1" Height="800px" Width="700px"  NavigateUrl='<%# Url.Action( "About", "Home" ) %>'></telerik:RadWindow> 
            </Windows> 
     </telerik:RadWindowManager> 
 
...  
 <href="#" onclick="window.radopen('<%= Url.Action("Index", "Home") %>', 'RadWindow1'); return false">System Admin</a> 

but when run it, error occoured:Object doesn't support this property or method

Can anyone help me?

thanks.
suhua an
Top achievements
Rank 1
 answered on 20 Nov 2009
1 answer
141 views
I have a grid on my page
<telerik:RadGrid ID="RadGrid1" AllowFilteringByColumn="true" Skin="Vista" runat="server" EnableViewState="false" GridLines="None"   
 AllowPaging="true" AllowSorting="true" PageSize="6" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged" > 
    <AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle> 
    <ClientSettings EnablePostBackOnRowClick="true">  
       <Selecting AllowRowSelect="True"></Selecting> 
       <ClientEvents OnCommand="RadGrid1_Command" /> 
    </ClientSettings> 
    <MasterTableView HierarchyLoadMode="Client" ClientDataKeyNames="DuplicateStatementID">  
       <Columns> 
          <telerik:GridBoundColumn AllowFiltering="false" SortExpression="DuplicateStatementID" 
                   DataField="DuplicateStatementID" HeaderText="ID" DataType="System.Int32" Visible="false" /> 
          <telerik:GridBoundColumn SortExpression="Year" DataField="Year" HeaderText="Year" UniqueName="RGYear">  
            <ItemStyle Width="50px" /> 
          </telerik:GridBoundColumn> 
          <telerik:GridBoundColumn SortExpression="MonthName" DataField="MonthName" HeaderText="Month">  
       </Columns> 
    </MasterTableView> 
    <PagerStyle AlwaysVisible="true" /> 
</telerik:RadGrid> 

When I click on a row in the grid it fires the OnSelectedIndexChanged

        protected void RadGrid1_SelectedIndexChanged(object sender, System.EventArgs e)  
        {  
             
          GridDataItem item = RadGrid1.SelectedItems[0] as GridDataItem;  
          string s = item["RGYear"].Text;    
 
          }           

The problem is it claims nothing has been selected.  when I jump over the code I can see the row get seledted and then deselected.
I am trying to set it up so that when the user clicks on a row in the grid it will take that data from the grid and populate some text boxes on the screen.
Princy
Top achievements
Rank 2
 answered on 20 Nov 2009
2 answers
109 views
I'm using RadDatePicker  and I have client event

<

 

ClientEvents OnDateSelected="DateSelected" />

 

<

 

DateInput ... />
inside that handler I would like to change the color of DateInput text to red, indicating change was made
but I cannot. I've tried several ways and nothing works. Please help

function

 

DateSelected(sender, eventArgs) {
    //change color of the DateInput

 

}

Martin
Top achievements
Rank 1
 answered on 19 Nov 2009
4 answers
252 views
Dear Experts,

I have a scenario with respect to usage of RadGrid with Update Panel and Response.Write. Could you please help on this?

I am getting - Sys.WebForms.PageRequestManagerParserErrorException.

I am placing the RadGrid within update panel to avoid the refresh problem.

I have a select button - GridButtonColumn on the rows - when I click on the select button - I invoke a response.write and I get the above error.

But I was able to avoid this error by calling the  asp:Postback trigger, but my very purpose of avoiding the screen refresh is gone.

Thanks in advance.

Thanks,
Deva
Deva Kumar
Top achievements
Rank 1
 answered on 19 Nov 2009
4 answers
139 views
Hi,

  I m using RadCombo, when "OnSelectedIndexChanged" the entire page will be reloaded..i want to set "supress postback" property to this control like asp.net. I used ASP.net "Updatepanel" for entire page but Rad not taking the place..I hv problem in Rad control postback only, how can i control it.
 
Any suggestion Plz..


Thanks & Regards,

Suresh Kannan P
Simon
Telerik team
 answered on 19 Nov 2009
1 answer
99 views
Hi,

I am having problems accessing the DatePicker component in javascript when added the DatePicker from code behind.
I would like to reposition the DatePicker's Calendar, which script works for DatePickers added on the markup(aspx) using the <%=DatePicker1.ClientID%>
However I am not sure how I can reference the component dynamically added in code behind. I have tried to pass the  DynamicDatePicker.ClientID to the script which manipulates the position of the Calendar. Unfortunately I have an earlier version of RAD controls so I have to this script manipulation, or the nasty way: I have to hardcode the position from code behind which is not a very efficient way of resolving this issue.
thanks
Veli
Telerik team
 answered on 19 Nov 2009
7 answers
137 views
Our users reported a problem with radComboxI, and I tested it at
 
When an item is selected from combo box, the load-on-demand is disabled, meaning user can't select any other items, the current items are fixed. The count label shows "items 1-1 out of 1". It is not easy way to get back and select the other 91 items. The browser was IE 7.
 
Thanks
Simon
Telerik team
 answered on 19 Nov 2009
4 answers
597 views

How can I limit the dropdown width in edit mode?

<telerik:GridDropDownColumn DataField="Justification" HeaderText="Align" UniqueName="Align"
DataSourceID="xdsAligns" ListTextField="Text" ListValueField="Value"
DropDownControlType="RadComboBox" 
EnableEmptyListItem="false" ItemStyle-Width="9ex" />

john
Top achievements
Rank 1
 answered on 19 Nov 2009
2 answers
71 views
I am trying to add a 4px by 4px comment image to a row if "CommentLength" returned
from datasource is greater than 0.  I am trying to place it in the upper left hand corner
of the row (Kind of like Excel does with the upper right hand corner).  Does anyone
know how I can go about this.  Thanks in advance.

Joshua
Josh
Top achievements
Rank 1
 answered on 19 Nov 2009
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?