Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views

Is there a way to prevent the first row from being automatically selected in a grid?

Im rendering a grid without any selection allowed (ClientSettings.Selecting.AllowRowSelect = "false", AllowRowSelect="false") but the tr tag for the first row in the grid still automatically has its class set to hrgRow rgSelectedRow.

Pavlina
Telerik team
 answered on 12 Oct 2010
2 answers
165 views
Hi,

I have a RadGrid and another grid inside as NestedViewTemplate.

Whenever I click on expand button for any row, NeedDataSource for Parent Grid is also getting called, causing performance issues.

Is there a way I can avoid this?

Please let me know if any more information is needed.

Thanks.
spt3210
Top achievements
Rank 1
 answered on 12 Oct 2010
1 answer
147 views
Hello Sir,

I am facing one problem in radgrid.The issue is when we decrease any one or more column width than it will create blank space after the last column.if i put UseStaticHeaders="False" than it is fine but some other issue is created like pager control are coming up side if "No records to display".also some scroll issue.So i need to remove space issue when UseStaticHeaders="True".
Pls help me.

Thanks
Jignesh Patel
Dimo
Telerik team
 answered on 12 Oct 2010
6 answers
241 views
Hello,

We would like to make the drop down area wider in order to show the full text of the combo box items.

I have the following code:  (The combo is set to 250px width)

 

 

 

protected void LstAgency_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
    {
        LstAgency.Items.Clear();
  
        if (e.Context["CustomText"].ToString().Length >= 2)
        {
            data = APIHelper.GetCompanies(e.Context["CustomText"].ToString());
  
            ShowSmartCombo(e, LstAgency, data, "Name");
        }
  
        // We want to show the drop down to the width of the longest company name. 
        // Use approx. 3 px per character. iLongestName * 3
        LstAgency.DropDownWidth = new Unit(800, UnitType.Pixel);
    }

But the DropDownWidth does not change. I have stepped through the code to make sure it's setting the DropDownWidth, but nothing happening.

Is it because we can't change the width of the drop down in the onItemRequested event?

Thanks,
Annie

 

Cori
Top achievements
Rank 2
 answered on 12 Oct 2010
1 answer
329 views
Hi Guys,

I'm playing around with the RadEditor for the first time. I want to databing the content to my datasource but can't seem to work out how.

My datasource;

 

<asp:SqlDataSource ID="sdsJobDetails_viewJobs" runat="server" 
    ConnectionString="<%$ ConnectionStrings:Gateway10.My.MySettings.dbConnString %>" 
    SelectCommand="SELECT * FROM [viewJob] WHERE ([jobID] = @jobID)" 
    ProviderName="<%$ ConnectionStrings:Gateway10.My.MySettings.dbConnString.ProviderName %>">
    <SelectParameters>
        <asp:QueryStringParameter DefaultValue="0" Name="jobID" 
            QueryStringField="jobID" Type="Int64" />
    </SelectParameters>
</asp:SqlDataSource>


This doesn't work;

<telerik:RadEditor ID="RadEditor1" runat="server" Height="300px" Width="100%" DataSourceID="sdsJobDetails_viewJobs" 
    EditModes="Design" EnableResize="False" Content='<%#Bind("jobTextNotes")%>'>

Rumen
Telerik team
 answered on 12 Oct 2010
1 answer
439 views

Hi,

I want to change the skin for all the telerik controls in my application in one shot. found the following way to achive it by adding the skin in the web.config.

<appSettings
<add value="Hay" key="Telerik.Skin"/> 
</appSettings>

 
I should also want this skin to be changed at runtime, my providing the skin list in a combo and allow the users to change. How to go about it.

Jidesh

Dimo
Telerik team
 answered on 12 Oct 2010
6 answers
329 views
I am using radtabstrip to load in usercontrols as my content pages. Is it possible to rewrite the url address bar when a tab has been clicked?

e.g.
I have 3 tabs, home, products, admin.
If the user clicks the tabs I want the url address bar to show like below.
www.mysite.com/home
www.mysite.com/products
www.mysite.com/admin

I have tried using Context.RewritePath("~/home") in the radtabstrip click event, but the address bar never changes.

Is this possible?

Mike
Michael
Top achievements
Rank 1
 answered on 12 Oct 2010
6 answers
401 views
Hello,

I'm using Q3 2009.
After selecting an item into the combobox, I would like the combobox css takes its highlight skin. This is a fanciful example to understand my request :

If Not radCombo1.SelectedItem Is Nothing Then
    radCombo1.CssClass = "RadComboBox_Black:hover"
Else
    radCombo1.CssClass = "RadComboBox_Black"
End If

Is it possible to do that please ?
Thank you.
luc bonenfant
Top achievements
Rank 1
 answered on 12 Oct 2010
1 answer
129 views
Hi.

i am using RADMaskedTextBox .i have used the follwing

 

 

<telerik:RadMaskedTextBox ID="RadMaskedTextBox1" Runat="server"

 

 

 

Height="21px" Width="166px" ShowButton="True" ButtonCssClass="style1"

 

 

 

Mask="####" SelectionOnFocus="SelectAll"

 

 

 

ClientEvents-OnButtonClick="TestLoad" >

 

 

 

 

 

</telerik:RadMaskedTextBox>

I have written Javascript fucntion 'TestLoad' and it is working fine.

But when the button is clicked i want to execute Server Event(As like Normal Button Click Event)

COuld you please help me

Regards
Kumar

 

Shinu
Top achievements
Rank 2
 answered on 12 Oct 2010
3 answers
162 views
Hi all,

I am trying to load RadDock dynamically with controls on dock expand using AJAX. I have provided the code below the commented part is the problem. I am unable to get the control ID which raised the postback.

If possible provide me with the code to dynamically create the portal page with the ajaxified docks.
RadDock RadDock1 = new RadDock();
    RadAjaxPanel AjPanel = new RadAjaxPanel();
 
    RadDock RadDock2 = new RadDock();
    RadAjaxPanel AjPanel2 = new RadAjaxPanel();
    
    protected void Page_Init(object sender, EventArgs e)
    {
        Session["ExpandCtrlID"] = null;
 
        AjPanel.RenderMode = UpdatePanelRenderMode.Inline;
        RadDock1.ID = "RadDock1";
        DockExpandCollapseCommand ex1 = new DockExpandCollapseCommand();
 
        RadDock1.Commands.Add(ex1);
        RadDock1.Collapsed = true;
        RadDock1.Command += new DockCommandEventHandler(RadDock1_Command);
        RadDock1.ContentContainer.Controls.Add(AjPanel);
        RadDock1.CommandsAutoPostBack = true;
        RadDock1.OnClientCommand = "DockOnClientCommand";
        RadDockZone1.Controls.Add(RadDock1);
 
        AjPanel2.RenderMode = UpdatePanelRenderMode.Inline;
        RadDock2.ID = "RadDock2";
        RadDock2.Commands.Add(new DockExpandCollapseCommand());
        RadDock2.Collapsed = true;
        RadDock2.Command += new DockCommandEventHandler(RadDock2_Command);
        RadDock2.ContentContainer.Controls.Add(AjPanel2);
        RadDock2.CommandsAutoPostBack = true;
        RadDock2.OnClientCommand = "DockOnClientCommand";
        RadDockZone1.Controls.Add(RadDock2);
    }
 
 
    void RadDock2_Command(object sender, DockCommandEventArgs e)
    {
        string controlID = RadDock2.ClientID;
        LoadUserControlInDock(controlID);
    }
 
    void RadDock1_Command(object sender, DockCommandEventArgs e)
    {
        string controlID = RadDock1.ClientID;
        LoadUserControlInDock(controlID);       
    }
 
    protected void Page_Load(object sender, EventArgs e)
    {
        Label1.Text = "";
        if (Page.IsPostBack)
        {
            if (ScriptManager1.IsInAsyncPostBack)
            {
                //RadDock dock;
                //dock = sender as RadDock;
                //string id = dock.ClientID.ToString();
                LoadUserControlInDock(id);
                Label1.Text = "Asynchronous";
            }
            else
            {
                Label1.Text = "Not Asynchronous";
            }
        }
        RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadDock1, AjPanel);
        }
 
    protected void LoadUserControlInDock(string contID)
    {
        Control c1 = new Control();
        c1 = this.LoadControl("WebUserControl.ascx");
 
        switch (contID)
        {
            case "RadDock1":
                AjPanel.Controls.Clear();
                AjPanel.Controls.Add(c1);
                Test.Value = "Loaded";
                break;
            case "RadDock2":
                AjPanel2.Controls.Clear();
                AjPanel2.Controls.Add(c1);
                Test.Value = "Loaded";
                break;
        }
    }
 
Pero
Telerik team
 answered on 12 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?