Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
62 views
Hi All,
I'm trying to custromize radgrid so i could have this result in image "Expectation.jpg", i make some modifications and what i reach till now is what u can find on image "Done.png" could any one please tell me how to :

- Attach the Button images of expand and collapse to their row and to the next button image (with lines) as shown in image
- show border between cells and rows 

thanks.
Jayesh Goyani
Top achievements
Rank 2
 answered on 09 May 2014
3 answers
255 views
After disabling the buttoncolumn in a grid when clicked the confirm text still shows. The button does not fire which is good. how do I keep the confirm text from showing. I tried the following which does not work.

protected void RadGrid1_PreRender(object sender, EventArgs e)
        {
            foreach (GridDataItem DataItem in RadGrid1.Items)
            {
                if (DataItem["Import"].Text == "0")
                {
                    DataItem["ImportColumn"].Enabled = false;
  
                    TableCell cell = (TableCell)DataItem["ImportColumn"];
                    cell.Enabled = false;
  
                }
            }



Richard
Top achievements
Rank 1
 answered on 08 May 2014
2 answers
288 views
Hi,
I have a RadioButtonList as part of my FormTemplate.  When the index of this changes, I want to do some server-side processing & change the value of a label that is also in the Form Template.  So, I have set up within the FormTemplate
<asp:RadioButtonList ID="rdo1" runat="server" 
 Onselectedindexchanged="rdo1_SelectedIndexChanged" AutoPostBack="True"
</asp:RadioButtonList> 

And in the code behind:
protected void rdo1_SelectedIndexChanged(object sender, EventArgs e) { 
RadioButtonList rdoList = this.RadGrid1.FindControl("rdo1"as RadioButtonList; 
Label lbl = this.RadGrid1.FindControl("lbl1"as Label; 

But they are never found and my Controls are set to null;  Any help/suggestions?  I've seen the client-side solution to this, but I would prefer to not do this on the client.
Thanks.


KC
Top achievements
Rank 1
 answered on 08 May 2014
2 answers
55 views
I have a RadContentTemplateTile with an image at the bottom that I'd like to extend to the very edge on the left, button and right.
Should I use a different Tile for this?

Example markup below and screen capture attached.

Thanks!
-Matt

<Groups>
                            <telerik:TileGroup>
                                 
                                <telerik:RadContentTemplateTile Name="WelcomeTile" BackColor="#00457E" Shape="Wide">
                                    <ContentTemplate>
                                        <div style="position:relative;width:312px;height:160px;">
                                            <div style="position:absolute;bottom:0px;left:-4px;">
                                                <img src="Images/Tile_CrownPoint.jpg" style="width:314px;height:111px;" />
                                            </div>
                                            <div style="position:absolute;top:0px;">
                                                <asp:Panel ID="Panel1" CssClass="WideTileContent TileBigger" runat="server">
                                                    Yay! River!
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                    <PeekTemplate>
                                        <asp:Panel class="WideTileContent TileRegular" runat="server"
                                            ID="Panel4"
                                            BackColor="#20659E">
                                            <%=WelcomeData.MessageBody %>
                                        </asp:Panel>
                                    </PeekTemplate>
                                    <PeekTemplateSettings CloseDelay="0" ShowInterval="0" ShowPeekTemplateOnMouseOver="True" HidePeekTemplateOnMouseOut="True"
                                        Animation="Slide" />
                                </telerik:RadContentTemplateTile>
Matt
Top achievements
Rank 1
 answered on 08 May 2014
3 answers
42 views
There is now a line between the text and the dropdown image for dropdowns on the toolbar. Looks like its now a split button. You can see this on your demo site with certain skins. I am using office 2010 Silver. See screen shot.

Thanks

Tom
Top achievements
Rank 1
 answered on 08 May 2014
3 answers
389 views
I'm working with a RadHtmlChart that has a lot of series running through it, and frequently, our users will want to be able to quickly select or deselect all the series in the legends, and then select the series they actually want to see.

I was wondering, how would I go about implementing  "select all" and "deselect all" options for the legend on the chart?
Gabriel
Top achievements
Rank 2
 answered on 08 May 2014
1 answer
61 views
Hi 

Im aware there are other threads with this same problem but I
have tried every solution on those threads and nothing has worked.

I need to edit the designer in a project created a few months ago. 

I get the "Error creating controls " message.
I updated telerik, and then visual studio(2010) crashes when i open the designer.

Any solutions?

Grant.
Boyan Dimitrov
Telerik team
 answered on 08 May 2014
2 answers
653 views
Hi,

We have a problem and strongly suspicious about telerik components about this request.

Our firewall and .net seem the below url as dangerous because of first & sign. We checked our scripts and codes which has a potential to generate such a url, but we couldn't find.

http://xxx/$$$&?&?$$$?cmd=get_file&arg=block_style.css&sid=2721D35AB490C1FAA14DC203E330729AE1AD88B7

Can you please check that your components may generate such a request url ?

We are getting first exception and then the second one, even we cannot find any strong relationship between them, they seems sequentially...

Telerik.Web.UI version : 2012.1.411.40
Telerik.Web.UI.Skins version : 2012.1.411.40
Telerik.Web.Design version : 2012.1.411.40

Thank you,
dogu

First exception:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 06.05.2014 08:48:24
Event time (UTC): 06.05.2014 05:48:24
Event ID: e2f92e7b72fb4fedbeacc2af4c66ffc3
Event sequence: 5897
Event occurrence: 4
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/ROOT-1-130438116095242020
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\inetpub\wwwroot\
    Machine name: xxx
 
Process information:
    Process ID: 9652
    Process name: w3wp.exe
    Account name: IIS APPPOOL\ASP.NET v4.0 DefaultAppPool
 
Exception information:
    Exception type: HttpException
    Exception message: A potentially dangerous Request.Path value was detected from the client (&).
   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)
 
Request information:
    Request URL: http://xxx/$$$&?&?$$$?cmd=get_file&arg=block_style.css&sid=2721D35AB490C1FAA14DC203E330729AE1AD88B7
    Request path: /$$$&?&?$$$
    User host address: 1.2.3.4
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: IIS APPPOOL\ASP.NET v4.0 DefaultAppPool
 
Thread information:
    Thread ID: 148
    Thread account name: IIS APPPOOL\ASP.NET v4.0 DefaultAppPool
    Is impersonating: False
    Stack trace:    at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)

Second Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Web.UI.RadCompression.GetCompressionSettingAttribute()
   at Telerik.Web.UI.RadCompression.ShouldApplyOnPostback()
   at Telerik.Web.UI.RadCompression.ShouldExplicitlyAddContentEncoding()
   at Telerik.Web.UI.RadCompression.application_EndRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Dogu
Top achievements
Rank 1
 answered on 08 May 2014
3 answers
96 views
I have done this repeadedly in other grid but for some reason when I transformed to C# nothing seems to work for me when I try to translate VB ways to C# ways, The code is differenet but the functionality of grid stays the same.  I am trying to populate the Dropwdown list from a database which is successful, however i want to assign and id from the database to the drowpdownlist and its not working it will not assign at all.  Works fine in Vb, but C# no go.


<EditFormSettings EditFormType="Template">
                <FormTemplate>
                    <table style="width:100%;background-color:antiquewhite">
                        <tr>
                            <td style="height:10px"></td>
                        </tr>
                        <tr>
                            <td style="width:10%;text-align:right">Name: </td>
                            <td style="width:90%;text-align:left"><asp:Label ID="lblName" runat="server" Text='<%#Bind("TokenFor") %>'></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="height:3px"></td>
                        </tr>
                          <tr>
                            <td style="width:10%;text-align:right">Persona: </td>
                            <td style="width:90%;text-align:left"><asp:DropDownList ID="ddlPersona" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td style="height:3px"></td>
                        </tr>
                        <tr>
                            <td style="width:10%;text-align:right">Email: </td>
                            <td style="width:90%;text-align:left"><asp:TextBox ID="txtEmail" runat="server" Text='<%#Bind("strTokenEmail") %>' Width="260px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="height:3px"></td>
                        </tr>
                        <tr>
                            <td style="width:10%;text-align:right">Phone: </td>
                            <td style="width:90%;text-align:left"><asp:TextBox ID="txtPhone" runat="server" Text='<%#Bind("strPhoneNum") %>'></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="height:20px"></td>
                        </tr>
                         <tr>
                            <td style="height:3px"></td>
                        </tr>
                        <tr>
                            <td style="width:10%;text-align:right">Location: </td>
                            <td style="width:90%;text-align:left"><asp:DropDownList ID="ddlLocation" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td style="height:3px"></td>
                        </tr>
                        <tr>
                            <td style="width:10%;text-align:right"></td>
                            <td style="width:90%;text-align:left">
                                 <asp:LinkButton ID="lnkSubmit" runat="server" Text='<%# ((bool)DataBinder.Eval(Container, "OwnerTableView.IsItemInserted")) ? "Insert" : "Update" %>'
                                   CommandName='<%# ((bool)DataBinder.Eval(Container, "OwnerTableView.IsItemInserted")) ? "PerformInsert" : "Update" %>'>
                                 </asp:LinkButton>
                                       
                                  <asp:LinkButton ID="lnkCancel" runat="server" CausesValidation="false" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td style="height:10px"></td>
                        </tr>
                    </table>
                </FormTemplate>
            </EditFormSettings>
 
 
 
 protected void myRadGrid_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))
        {
            GridEditFormItem item = (GridEditFormItem)e.Item;
            DropDownList ddlLocation = (DropDownList)item.FindControl("ddlLocation");
            DropDownList ddlPersona = (DropDownList)item.FindControl("ddlPersona");
 
            sql = "Select intPersonaId, strPersonaLtr + ' - ' + strPersona Persona from tblPersona where bitActive = 1";
            ddlPersona.DataSource = c.GetReader(sql);
            ddlPersona.DataTextField = "Persona";
            ddlPersona.DataValueField = "intPersonaId";
            ddlPersona.DataBind();
            ddlPersona.SelectedValue = (string)DataBinder.Eval(e.Item.DataItem, "intPersonaId").ToString();
 
            sql = "Select intLocationId, strLocation from tblLocations where bitActive = 1";
            ddlLocation.DataSource = c.GetReader(sql);
            ddlLocation.DataTextField = "strLocation";
            ddlLocation.DataValueField = "intLocationId";
            ddlLocation.Items.Add(new ListItem("Pick Location", "0"));
            ddlLocation.DataBind();
            ddlLocation.SelectedValue = (string)DataBinder.Eval(e.Item.DataItem, "intLocationTokenId").ToString();
        }





















Kevin
Top achievements
Rank 1
 answered on 08 May 2014
3 answers
94 views
hello to all


i have a web page that load user control ,a user control  sometime contain datagrid ,  chart, ....

my problem when the usercontrol contain dock every thing is fine untill the user move the dock then when the user select another webcontrol  to load that time dock is still showing on  the page .
i will post code if necessary but beacuse the project is big thats why i try to get help without code

thanks
 


 
Danail Vasilev
Telerik team
 answered on 08 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?