Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
Hi,
I had one radpanelbar in my application. In that, inside of rad-panel the data should be collapsible. But the parent must not be collapsible.It should simple display the details.
Here is my code and i attached the image of this scenario.
 
Code
 
<div class="leftmenu">
<telerik:RadPanelBar EnableEmbeddedSkins="false" Width="308px" CssClass="radleftMenu"
 OnItemDataBound="RadPanelBar1_ItemDataBound" OnLoad="RadPanelBar1_Load" AllowCollapseAllItems="false"
 Skin="Web20" runat="server" ID="radMenuManagerNavigation">
</telerik:RadPanelBar>
 
<div id="divMainDocument" runat="server" style="background-color: #5B90A6; margin-left: 10px;
 margin-top: 10px; margin-bottom: 10px; margin-right: 10px;">
<telerik:RadPanelBar EnableEmbeddedSkins="false" Width="308px" CssClass="radleftMenu"
    AllowCollapseAllItems="false" Skin="Web20" runat="server" ID="RadPanelBar1">
   </telerik:RadPanelBar>
  </div>
   </div>
  </asp:Panel>
 
.cs code:
 
protected void RadPanelBar1_ItemDataBound(object sender, Telerik.Web.UI.RadPanelBarEventArgs e)
        {
        }
 
protected void RadPanelBar1_Load(object sender, EventArgs e)
        {
            UrlQueryStringPasser url = new UrlQueryStringPasser();
            foreach (RadPanelItem item in radMenuManagerNavigation.GetAllItems())
            {
                if (item.Level == 0)
                {
                    if (item.Items.Count != 0)
                        if (item.Level != 2)
                            item.Expanded = true;
                }
 
 
                if (url[UIConfigurationConstant.CODE] != null)
                    if (item.Value == url[UIConfigurationConstant.CODE].ToString())
                    {
                        item.Selected = true;
                        if (item.Items.Count != 0)
                            item.Expanded = true;
                    }
            }
        }

Please look over the image attached, that may help to recover my problem.


Thanks,
Janni
Janni
Top achievements
Rank 1
 answered on 14 Jan 2011
2 answers
128 views
Hi All

I have a databound column that has a checkbox in it.

My question is how can i get the checkbox value server side so that i can format another cell based on if its true or false.

Any help would be greatly appriciated.

Rgds

Darren
Cush
Top achievements
Rank 1
 answered on 14 Jan 2011
1 answer
112 views
I have a row in DataGrid that  contains a one TextBox and one Combobox control and grid has a bottun(Add Row).   On clicking  on this button(Add Row), dynamically a new Row is generated below with the same controls(TextBox and Combobox ).

If  the datagrid as of above, with many rows(2 or more)  are there , how to get all the values to be stored into database on clicking a button (Save).

How can we store row by row into a collection of class and pass that class at once to finally save into database.

Currently I'm reading each row by below code,

dtUsers.Columns.Add(

new DataColumn("TranTypeName", typeof(String)));

 

dtUsers.Columns.Add(

new DataColumn("ApprDlgtTranTypeKey", typeof(Decimal)));

 

dtUsers.Columns.Add(

new DataColumn("ApprDlgtDelegatedTo", typeof(String)));

 

dtUsers.Columns.Add(

new DataColumn("ApprDlgtKey", typeof(Decimal)));

 

delegation.ApprDlgtTranTypeKey = ((

DropDownList)e.Item.FindControl("cboFor")).SelectedValue;

 

delegation.TranTypeName =

Convert.ToString(((DropDownList)e.Item.FindControl("cboFor")).SelectedItem);

 

delegation.ApprDlgtDelegatedTo = ((

TextBox)e.Item.FindControl("txtDelegatedTo")).Text.Trim();

 

delegation.ApprDlgtKey =

"0";

DataRow drUser = dtUsers.NewRow();

 

drUser[

"ApprDlgtTranTypeKey"] = delegation.ApprDlgtTranTypeKey;

 

drUser[

"TranTypeName"] = delegation.TranTypeName;

 

drUser[

"ApprDlgtDelegatedTo"] = delegation.ApprDlgtDelegatedTo;

 

drUser[

"ApprDlgtKey"] = delegation.ApprDlgtKey;

 

dtUsers.Rows.Add(drUser);

 

grdDelegation.DataSource = dtUsers;

grdDelegation.DataBind();

Daniel
Telerik team
 answered on 14 Jan 2011
3 answers
158 views
I am Neil Ghuman, IT Manager for Motorcycle Accessories.  I need some advice on what to do here.  Please visit the product details page for my website where we are selling an Icon Airframe Carbon Lifeform Helmet. We are currently using Jquery Zoom and Jquery autocomplete and they seem to work fairly well.  If you click on the main helmet image, you will notice a Telerik Rad Window Popup.  I need some help with configuring this window to do what I want it to do.
1) I want to get rid of the scroll bars.
2) I want the background of the page to be a darker color, how do I control that?
3) I want the controls for this window to be at the bottom of the window instead of the top.
4) I want the window to pop up at the top of the page instead of the middle of the page.  Even if the IE or Firefox window was to be minimized, I want the top of the pop up window to be aligned up with the center top of the browser.  Where do I control this?
5) I want the pop up image/window to be animated.  Ideas?

Please let me know if anyone has ideas on how this can be accomplished.  I was going to do everything with Jquery Lightboxes, but this seems like a more advanced and clean way to do things. Thank you.

Neil Ghuman
Motorcycle Parts and Motorcycle Accessories
Svetlina Anati
Telerik team
 answered on 14 Jan 2011
2 answers
58 views
Hi,

I have defined a custom template for alert and confirm dialogs. But am not able to move the dialogs even after setting Behavior property to "Move" for RadWindowManager.

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableEmbeddedSkins="False" Skin="SendToENv2" Behavior="Default" InitialBehavior="None" Behaviors="Maximize,Minimize,Move,Resize">
<AlertTemplate >
    <div class="rwDialogPopup radalert"> 
    <div class="rwDialogText"> {1} </div>
    <div>
    <a id="send2Alert" onclick="$find('{0}').close();" onkeypress="$find('{0}').close();" class="rwPopupButton" href="javascript:void(0);">
    <span class="rwOuterSpan">
    <span class="rwInnerSpan">##LOC[OK]##</span>
    </span>
    </a>
</div>
</div>
</AlertTemplate>
</telerik:RadWindowManager>

 

I have even tried with the code present in the below link posted by one of the telerik member . There also i am facing the same issue. No customized styles have been explcitily defined by me. Code file is being attached. - Code.jpg
http://www.telerik.com/community/forums/aspnet-ajax/window/templates-for-confirm-dialog.aspx

1 more point i noticed here is that the issue doesn't happens with Tereik RadControls for ASP.NET AJAX Q2 2010. Am currently using Tereik  RadControls for ASP.NET AJAX Q2 2009. The issue occurs in the 2009 version. Please let know whether this is the limitation for the 2009 version or should i need to explicitly provide any customizations in order to make the confirm/alert dialogs move( along with the movement of cursor)

Thanks,
Divya
Divya
Top achievements
Rank 1
 answered on 14 Jan 2011
1 answer
67 views
Found this strange behavior after reordering of the column was done: if someone swap column 1 and 4 and enters a filter expression into column 4, column 1 will have the same filter query and radgrid will have two parts in the filterexpression: one from column 1 and one from column 4. Anyone discovered that?
Maria Ilieva
Telerik team
 answered on 14 Jan 2011
2 answers
86 views
Good day!
I have got such a question: I have got  grid and I can change page size - I can set it to 10, 20 and 50.
For example: I have 47 items in the grid. When I set page size to 50 the grid's paging becomes invisible and I can not change page size any more =((
Can I make paging always visible?

Thank you
Lina
lina fetisova
Top achievements
Rank 1
 answered on 14 Jan 2011
4 answers
342 views
Hi,
I am using FormDecorator in my page.

how can i enable/disable button using javascript ?
Georgi Tunev
Telerik team
 answered on 14 Jan 2011
6 answers
150 views
I have a grid that's using a separate Edit form that has a RadInputManager to validate control values (Note: The RIM and controls are part of a user control that makes up a portion of the edit form). Most of these are standard (ASP) textboxes and the RIM is properly showing the entry cues (i.e. "Please enter text here."). However, when the form is submitted, the RIM validators (?) are not firing to show the missing/incorrect fields and are also not preventing the form from being submitted (form is being posted back with bad data).

On the server side, if I check Page.IsValid, the result is true. Previously, I had a similar issue where the RIM validation was flagging the fields as bad (i.e. showing a red outline in the offending field(s)), but was still submitting the form immediately instead of forcing the user to correct the bad data.

Here's a snippet of the RadInputManager properties that are set:

<telerik:RadInputManager id="RadInputManager1" runat="server">
    <telerik:TextBoxSetting ErrorMessage="Required field." Validation-IsRequired="True"
        EmptyMessage="Please type here." Validation-ValidateOnEvent="Submit" >
        <TargetControls>
            <telerik:TargetInput ControlID="txtFirstName" Enabled="true" />
            <telerik:TargetInput ControlID="txtLastName" Enabled="true" />
            <telerik:TargetInput ControlID="txtEmail" Enabled="true" />
        </TargetControls>
        <Validation IsRequired="True" ValidationGroup="AccountValidationGroup">
        </Validation>
    </telerik:TextBoxSetting>
    <telerik:RegExpTextBoxSetting ErrorMessage="Please enter a valid email address."
        ValidationExpression="^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$" Validation-ValidateOnEvent="Submit">
        <TargetControls>
            <telerik:TargetInput ControlID="txtEmail" Enabled="true" />
        </TargetControls>
    <Validation IsRequired="True" ValidationGroup="AccountValidationGroup"></Validation>
    </telerik:RegExpTextBoxSetting>
</telerik:RadInputManager>


And here is the markup for the fields themselves:

<div style="float: left; width: 50%;">
    <table cellspacing="0" border="0" summary="Edit Table">
        <tr>
            <td align="right">
                <asp:Label ID="lblFirstName" runat="server" Text="First Name" /> 
            </td>
            <td>
                <asp:TextBox ID="txtFirstName" runat="server" AutoCompleteType="FirstName" 
                    TabIndex="3" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblLastName" runat="server" Text="Last Name" /> 
            </td>
            <td>
                <asp:TextBox ID="txtLastName" runat="server" AutoCompleteType="LastName" 
                    TabIndex="4" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblEmail" runat="server" Text="Email" /> 
            </td>
            <td>
                <telerik:RadTextBox ID="txtEmail" runat="server" AutoCompleteType="None" 
                    TabIndex="9"></telerik:RadTextBox>
            </td>
        </tr>
    </table>
</div>

Has anyone seen this issue before and/or know of a solution?

Thanks,

Jon
Pavlina
Telerik team
 answered on 14 Jan 2011
2 answers
102 views
I have problem with rewrite with generate new image in ascx file.
OK is
http://www.domain.com/contact.html
generate new image  call Default.aspx

Wrong is
http://www.domain.com/en/contact.html
generate new image call en\Default.aspx

error Ajax is
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<!DOCTYPE html PUBLI'.

IS POSIBILITY SET URL TO captcha for link generate new image ????
Marek Svrcina
Top achievements
Rank 1
 answered on 14 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?