Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
169 views
Hello,

I was wondering if its possible to have a treeview with the nodes being comboboxes/ listboxes.  The selection of one item may have additional nodes of additional comboboxes/listboxes.

Thanks in advance,

Mike
Princy
Top achievements
Rank 2
 answered on 14 Mar 2013
1 answer
97 views
Hi,
I am using Telerik Control Library v2009 for my web application.

Everything works fine in IE 9 Compatibility mode. All embedded styles works fine with my control (i.e. RadGrid, Calendar Control etc).
But in non-compatibility mode, no css loaded properly.
If we check through Developer Tools -> Console, it gives the following error.
///////////////////////////////////////
SEC7113: CSS was ignored due to mime type mismatch WebResource.axd?d=4DzX1gSlgsf9eiyfsOmMEfF7Yniuv7E5z4WX19F9pvc3MxpWZC1oEFL5MmC1hWCcrhk7Nuyyx5tolNE_3FShghZ5SLfqnd3m1ZEbdufb5neMr009seJgX784LZXOv_BjH83oszSu2EYKsUqghm4qZ5pcHFo1&t=634770805886806167
/////////////////////////////////////

Please suggest?
Imran
Galin
Telerik team
 answered on 14 Mar 2013
1 answer
80 views
I have a Grid that is grouped. When I update the database based on the group I get the foolwoing error:

"Unable to cast object of type 'Telerik.Web.UI.GridGroupFooterItem' to type 'Telerik.Web.UI.GridDataItem'. "

The database is updated even though the error is thrown.

Here is my code.
Private Sub btn_ApproveAll_Click(sender As Object, e As EventArgs)
 
    Dim item As GridGroupHeaderItem = DirectCast(rgd_ProjectPlanTasksApprove.MasterTableView.GetItems(GridItemType.GroupHeader)(0), GridGroupHeaderItem)
    For Each groupHeader As GridGroupHeaderItem In rgd_ProjectPlanTasksApprove.MasterTableView.GetItems(GridItemType.GroupHeader)
        Dim children As GridItem() = groupHeader.GetChildItems()
        For Each child As GridDataItem In children
 
            Dim IDTaskUpdates As String = child("IDTaskUpdates").Text
 
            Dim sql As String
            Dim strConnString As [String] = System.Configuration.ConfigurationManager.ConnectionStrings("SharePoint_ConnectionString").ConnectionString()
            sql = "UPDATE Task_Updates SET TaskUpdateApproved = 1, ApprovedDate = @ApprovedDate, ModifiedDate = @ModifiedDate  WHERE IDTaskUpdates = @IDTaskUpdates"
            Dim cn As New SqlConnection(strConnString)
            Dim cmd As New SqlCommand(sql, cn)
 
            cmd.Parameters.Add("@IDTaskUpdates", SqlDbType.Int).Value = IDTaskUpdates
            cmd.Parameters.Add("@ApprovedDate", SqlDbType.DateTime).Value = Date.Now
            cmd.Parameters.Add("@ModifiedDate", SqlDbType.DateTime).Value = Date.Now
            cmd.Parameters.Add("@IDModifiedUser", SqlDbType.NVarChar, 36).Value = Session("ActiveDirID")
 
            cmd.Connection.Open()
            cmd.ExecuteNonQuery()
            cmd.Connection.Close()
        Next
 
    Next
 
End Sub

As always any help much appreciated.


Andrey
Telerik team
 answered on 14 Mar 2013
6 answers
188 views
I was able to create a new skin for a RadSplitter Control, everything works fine, except when I tried to change the size of the text that shows in the SlidingZone Tabs.  I was able to change the font color but the font size doesn't change.
Am I doing something wrong?

I have the 2009 trial version, and I'm deciding wether to buy the developer version or not, and this issue is affecting my decision.

I'll appreciate your help with this.

Regards,

Jesus.
Princy
Top achievements
Rank 2
 answered on 14 Mar 2013
1 answer
61 views
I have a grid with a parent/child set of tables. The expand/collapse button works as expected when it is a ascx user control on a page, but when that control is placed in a web part on a page and the expend/collapse button clicked, the entire page refreshes, why?
Andrey
Telerik team
 answered on 14 Mar 2013
4 answers
624 views
I have a RadMaskedTextBox used for zip 5 or 9 data.

I would like to validate always for 5 digit zip code or 9 digit zip code.

the following regex does not catch zip code 33461-12 which is obviously wrong (it thinks its correct).

I think there is an issue with the underscores in the mask.  

Valid zip codes should be:

33451
33545-1250

Anything else should be invalid, ex:

3314
33415-1
33145-12
33415-123

Any help would be greatly appreciated.

<telerik:RadMaskedTextBox ID="txtZipCode" runat="server" Mask="#####-####" SelectionOnFocus="CaretToBeginning"></telerik:RadMaskedTextBox>
    <asp:RegularExpressionValidator
    ID="RegularExpressionValidator1"
    ControlToValidate="txtZipCode"
    ValidationExpression="^((\d{5}(-|\s)\d{0,4})|(\d{5}))$"
    ErrorMessage="Zip code must be numeric nnnnn or nnnnn-nnnn."
    Display="dynamic"
    RunAt="server"></asp:RegularExpressionValidator>


Andrey
Telerik team
 answered on 14 Mar 2013
3 answers
257 views
I want RadButton as Flat Button as i have attached a image file. It would be fine if control has a property for that to apply or fine with CSS also... I have tried a lot with CSS, I did for aspx button but unable to apply for radbutton. Below are the Css Class & the RadButton 'm just showing you, how i have applied / used.

.clsButton {
    width: auto;
    font-size:1.1em;
    border-style:groove;
    padding:0px,0px,0px,0px;
    margin:0px,0px,0px,0px;
    text-align:center;
}

<telerik:RadButton ID="btnSave" runat="server" Text="Save" CssClass="clsButton" Width="150px"></telerik:RadButton>

Even i have tried by mentioning "!important" in CSS class, still no use.

Please help me out. I need it urgent. Thanks in advance for any help.


Vishnu
Top achievements
Rank 1
 answered on 14 Mar 2013
9 answers
143 views
Hi again!
I am trying to get access to the controls on the template´s grid but says Null reference Exception dont know what errors I am doing in.
I just use a template to add new record and to edit a record. I am ussing in my code this

 

RadGridExpensesLines_InsertCommand(

 

 

 

 

 

protected

 

 

void RadGridExpensesLines_InsertCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)

 

 

 

 

{

 

 

 

 

if (e.CommandName == RadGrid.PerformInsertCommandName)

{

 

GridEditFormInsertItem editedItem = e.Item as GridEditFormInsertItem;

 

PurchaseInvoiceLine purchaseline = new PurchaseInvoiceLine();

purchaseline.ArticleName = (editedItem.FindControl(

 

"RadTextBoxArticleName") as TextBox).Text;
}

In my aspx:

<telerik:RadGrid ID="RadGridLines" runat="server" AutoGenerateColumns="false" GridLines="None" OnNeedDataSource="RadGridExpensesLines_NeedDataSource" OnInsertCommand="RadGridExpensesLines_InsertCommand">

 

<

 

 

asp:Button ID="ButtonInsert" Text="Insert" runat="server" CommandName="PerformInsert" Visible="true"></asp:Button>



I tried also with

protected

 

 

void RadGridExpensesLines_ItemCommand(object sender, GridCommandEventArgs e)


but any success!!!!
Please someone can tell me why can not access to my controls on the template?
Please really need a help!

 

 

Shinu
Top achievements
Rank 2
 answered on 14 Mar 2013
1 answer
323 views
Hi,

I have a grid, which contains some Checkbox columns.
In the SelectedIndexChanged event on the server, I am trying to read the checked status of the checkbox columns.
I have tried several different variations to get this, but I seem to be banging my head against a wall.
I'm sure this is fairly striaght forward, but I can't see where the problem lies, and I can't find an example of what I am trying to do.

Below are the different things I have tried - all of which give me a Null value exception.

All suggestions greatly appreciated.

Attached = ((System.Web.UI.WebControls.CheckBox)BaysGrid.SelectedItems[0].FindControl("bgAttached")).Checked;
 
Attached = ((System.Web.UI.WebControls.CheckBox)(BaysGrid.MasterTableView.GetSelectedItems()[0].Controls[0].Controls[0])).Checked;
 
Attached = ((System.Web.UI.WebControls.CheckBox)(BaysGrid.MasterTableView.GetSelectedItems()[0].FindControl("bgAttached"))).Checked;
 
Attached = Convert.ToBoolean(BaysGrid.SelectedItems[0].Cells[5].Text);

Grid name is BaysGrid, Markup for the specific column is:
<telerik:GridCheckBoxColumn DataField="bAttached" DataType="System.Boolean"
  FilterControlAltText="Filter bgAttached column" HeaderText="Attach"
  UniqueName="bgAttached">
  <HeaderStyle Width="40px" />
</telerik:GridCheckBoxColumn>



Thanks

Paul
Shinu
Top achievements
Rank 2
 answered on 14 Mar 2013
2 answers
270 views
I need to change a function in our company software that uses Radwindow so it uses jQuery ui dilog instead (for reasons beyond me).
function ShowPopupByWindow(_type, _targetControl, _radWindow) {
  var popupURL = 'finder.aspx?action=' + _type;
  
  // This is how the Radopen is working right now
  //var oWnd = window.radopen(popupURL, _radWindow);
   
  // This is what I want to implement
  selector = "#" + _targetControl;
  jQuery(selector).dialog({ modal : true, open:
    function () {
      $(this).load(popupURL);
    }
  });
}


however i get this error Uncaught TypeError: Cannot set property 'control' of undefined
Iuzzef
Top achievements
Rank 1
 answered on 14 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?