Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
264 views
using visual studio 2012 professional update 2 and Telerik RadControls for ASP.NET AJAX VSExtensions Package v2013.1.219.
I created a RadControls application and in the wizard, i set the default skin to Office2010Blue. i got the Telerik.Web.UI.Skins assembly automatically referenced. Whenever i use a telerik control, i cannot set any skin other than the default in the designer, if i open the drop down to select one i get a message that says : " No skins assembly found. To use the built-in skins, please add a reference to Telerik.Web.UI.Skins.dll or copy it to the Bin folder of your application and reload the solution in visual studio.

please advise
ck
Top achievements
Rank 1
 answered on 19 Apr 2013
3 answers
88 views
Hi,

we have radgrid which contains a checkbox for all rows in the grid, On checking and unchecking, checkbox, a text box is updated. textbox is located outside the radgrid. 

lets say the there are 10 results displayed in grid, on checking 4 checkboxes, text box will display the count 4. 

while double clicking or fast clicking the checkbox in the radgrid, value in textbox increments or decrements out of control.

is there an issue with radgrid and IE9 compatibility ?

Everything works well in other versions of IE ( 7& 8) and also in other browsers. 

thanks
Abdul Rahman.
Milena
Telerik team
 answered on 19 Apr 2013
1 answer
166 views
trying to get more into javascript and not doing postbacks if I do not have to.  What I am tring to figure out is how to show a div that is my information to insert on the radgrid add new record command.  cant do inside of the grid as I have a jquery autocomplete that does not play nice.  So how can I pop up a div in javascript on the click o fthe radgrid insert new record.

Protected Sub myRadGrid_InsertCommand(sender As Object, e As GridCommandEventArgs) Handles myRadGrid.InsertCommand
 
End Sub
 
Protected Sub myRadGrid_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles myRadGrid.ItemCommand
    If (e.CommandArgument = "Up") Then
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), " document.getElementById('divOut').style.display='block';", True)
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), " document.getElementById('tblAdmin').style.display='block';", True)
    End If
End Sub


<table class="ConsultGrid">
      <tr>
          <td>
             <telerik:RadGrid ID="myRadGrid" runat="server" Width="100%" Skin="Web20" >
                  <MasterTableView AutoGenerateColumns="false" Font-Size="10" DataKeyNames="intAdminId" CommandItemDisplay="Top">
                      <HeaderStyle ForeColor="White" Font-Bold="true" HorizontalAlign="Center" />
                      <ItemStyle HorizontalAlign="Center"/>
                      <AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" />
                          <Columns>
                              <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn>
                              <telerik:GridBoundColumn DataField="Name" HeaderText="NAME" />
                              <telerik:GridTemplateColumn>
                                  <ItemTemplate>
                                      <asp:LinkButton ID="lnkChange" runat="server" CommandArgument='<%# Bind("intAdminId")%>' CommandName="Up" Text="Add"></asp:LinkButton>
                                  </ItemTemplate>
                              </telerik:GridTemplateColumn>
                              <telerik:GridTemplateColumn HeaderText="ADMIN">
                                  <ItemTemplate>
                                      <asp:CheckBox ID="cbADmin" Checked='<%# IIf(DataBinder.Eval(Container.DataItem, "bitProgramAdmin") Is DBNull.Value, False, Eval("bitProgramAdmin"))%>' runat="server" Enabled="false" />
                                  </ItemTemplate>
                              </telerik:GridTemplateColumn>
                              <telerik:GridTemplateColumn HeaderText="MEPS ADMIN">
                                  <ItemTemplate>
                                      <asp:CheckBox ID="cbMepsAdmin" Checked='<%# IIf(DataBinder.Eval(Container.DataItem, "bitMepsAdmin") Is DBNull.Value, False, Eval("bitMepsAdmin"))%>' runat="server" Enabled="false" />
                                  </ItemTemplate>
                              </telerik:GridTemplateColumn>
                              <telerik:GridTemplateColumn HeaderText="ACTIVE">
                                  <ItemTemplate>
                                      <asp:CheckBox ID="cbActivate" Checked='<%# IIf(DataBinder.Eval(Container.DataItem, "bitActive") Is DBNull.Value, False, Eval("bitActive"))%>' runat="server" Enabled="false" />
                                  </ItemTemplate>
                              </telerik:GridTemplateColumn>
                           </Columns>
                              <EditFormSettings EditFormType="Template">
                                  <FormTemplate>
                                      
                                  </FormTemplate>
                              </EditFormSettings>
                  </MasterTableView>
             </telerik:RadGrid>
          </td>
      </tr>
  </table>
  <div class="happy" runat="server" id="divOut" style="display:none">
  </div>
   <table class="windows" runat="server" id="tblAdmin" style="display:none">
          <tr>
              <td style="text-align:right">Enter Admin: </td>
              <td>
                  <asp:TextBox ID="txtname" runat="server" Width="260px"></asp:TextBox><asp:HiddenField ID="HFId" runat="server" />
              </td>
          </tr>
          <tr>
              <td style="height:5px"></td>
          </tr>
          <tr>
              <td style="text-align:right">Program Admin: </td>
              <td> <asp:CheckBox ID="cbAdmin" runat="server" /></td>
          </tr>
          <tr>
              <td style="height:5px"></td>
          </tr>
          <tr>
              <td style="text-align:right">MEPS Admin: </td>
              <td> <asp:CheckBox ID="cbMepsAdmin"  runat="server" /></td>
          </tr>
          <tr>
              <td style="height:5px"></td>
          </tr>
          <tr>
              <td style="text-align:right">Active: </td>
              <td><asp:CheckBox ID="cbActive" runat="server" /></td>
          </tr>
          <tr>
              <td></td>
              <td>
                  <asp:LinkButton ID="lnkSubmit" runat="server" Text="Submit"></asp:LinkButton>
                       
                  <asp:LinkButton ID="lnkCancel" runat="server" CausesValidation="false" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
              </td>
          </tr>
          <tr>
              <td style="height:8px"></td>
          </tr>
      </table>
Antonio Stoilkov
Telerik team
 answered on 19 Apr 2013
22 answers
272 views
Hi,

I have my scheduler binded through web service. This part was working ok in the Q2 but then I updated to the Q3 and it's not working properly anymore.

I add an Attribute to my resources, say "X" for example and in the get resources from the web service I do the following:

Resource.Attributes["X"] = 1

when I get this Resource in the scheduler all the attributes dissapear. I don't know if that's normal or not. I use attributes to send extra information on the appointments and it works fine.

any ideas? is it a bug? or a normal behaviour? As I told you it was working fine for the Q2. This attribute [NonSerializedInControlState] may be preventing it from serialize?

regards,

jose 
Boyan Dimitrov
Telerik team
 answered on 19 Apr 2013
12 answers
464 views
I have added LinkButton dynamically. Everything is coming properly like style and related attributes. But OnCommand For LinkButton not triggering and if click on link button which i have been added it disappears. From UI. And Event Listener not triggering properly.
Please Suggest me.
Here my code
protected void Aspx_RadGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {
             if (e.Item is GridDataItem)
               {
                 GridDataItem zitem = (GridDataItem)e.Item;
                HtmlGenericControl zobjSpanLabel = (HtmlGenericControl)e.Item.FindControl("span_StoryLabels_IceBox");
                  LinkButton zobjLableLinkButton = new LinkButton();
                        zobjLableLinkButton.Text ="Test";
                        zobjLableLinkButton.Command += new CommandEventHandler(GetThingsRelatedToEntity);
                        zobjLableLinkButton.CommandArgument = "1234";
                        zobjLableLinkButton.CommandName = "";                        
                        zobjLableLinkButton.Attributes.Add("style", "text-decoration:none;color: #006633;cursor: pointer;font-family: arial,sans-serif;font-size: 12px;");
                        zobjLableLinkButton.CssClass = "stroylabels";
                        zobjSpanLabel .Controls.Add(zobjLableLinkButton);
}

protected void GetThingsRelatedToEntity(object sender, CommandEventArgs e)
{
//My Code Here
}

Thanks in advance.
Eyup
Telerik team
 answered on 19 Apr 2013
4 answers
156 views
Hi.

I have an web app that are using a datepicker and it has started to run really slow after the first postback.
I found that the "slowness" only occured in Chrome 26 (26.0.1410.43). The same code worked perfectly in Chrome 25 (verifed on another computer and slow after upgrade to 26). 

Any ideas what can cause this issue?

EDIT;
I having problems recreating the issue in a standalone project that I can post. (It is part of a large webapp). And it seems like its only a problem when the DOM is larger. I.e the example apps seems to run a little slower, but on my app it takes 3+ seconds plus to change the month in the calendar.

The thing I dont understand is that it works without any errors but its slow and only in Chrome 26+, the bottleneck seems to be located in the JS function Telerik.Web.UI.RadCalendar._navigatePrev/XXXX and its much slower after a postback.

EDIT 2:
The row that seems to take longer time is this.RenderViewDays(d, b, a, this.RadCalendar.get_orientation(), this.StartRowIndex, this.StartColumnIndex);

Any ideas why a postback could change the performace of the line above? I have stepped through the code and profiled it without finding any reason or bottleneck "hotspot".

When stepping through the code no errors or external (non-telerik-functions) gets invoked nor is any other client side functions attached.

The exact same code works perfect in other browsers (and earlier Chrome versions < 26).
 


Eyup
Telerik team
 answered on 19 Apr 2013
1 answer
98 views
I created a grid while debugging.

<

 

telerik:RadGrid ID="RadSearch" runat="server" AllowFilteringByColumn="True" AutoGenerateColumns="true" OnNeedDataSource="RadSearch_NeedDataSource">

I see that the autogenerated date fields returned have a date picker in the filter.

How do I get that in my grid where AutoGenerateColumns="false" and my date column is in the .aspx page?
<telerik:RadGrid ID="RadSearch" runat="server" AllowFilteringByColumn="True" AutoGenerateColumns="false" OnNeedDataSource="RadSearch_NeedDataSource">

 

 

...

...
<
Columns>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Last_Update_Date" HeaderText="Modified" SortExpression="Last_Update_Date" AllowFiltering="true" UniqueName="Last_Update_Date" DataFormatString="{0:MM/dd/yyyy}" />
...

Thanks,
David

 

Princy
Top achievements
Rank 2
 answered on 19 Apr 2013
0 answers
55 views
Hi Team,

I am using rad controls for printing. It was working very thing fine in laser printers with A4 sheets. But as per our requirement we need to sent print TVS (http://tinyurl.com/cvnch6a) printer for printing huge amount of data. Hear getting an issue the printer was taking print and getting out put with unreadable format.

So please suggest me to go further. 


Thanks & Regards

Rambabu
Ram
Top achievements
Rank 1
 asked on 19 Apr 2013
3 answers
176 views
I have a radgrid with a details table with a formtemplate for editing. so it's a grid with two levels, when I am editing at the child level the modal popup show up fine but When I click the update button, it does all the work intended but does not close. It all works fine for inserting a record or canceling. and in the first lever both the edit and insert work fine, but just the child level edit is causing this problem. I've read a couple things to try and that is adding AllowAutomaticUpdates="false" and also adding

grdVcntn.MasterTableView.IsItemInserted = False
grdVcntn.MasterTableView.Rebind() to the _ItemCommand for the e.CommandName I have and neither worked.

I am also binding both grids in the backend using _NeedDataSource and _DetailTableDataBind. Is there any other sudgestions for fixing this.

Pavlina
Telerik team
 answered on 18 Apr 2013
2 answers
273 views
I've upgraded the web site to dot.net framework 4 and Telerik ASP.NET Ajax Controls 2013 Q1 (also tried 2012 Q3) framework 4.0.
It's Windows Server 2008, IIS 7,
Application Pool is .NET fr. 4.0.30319, Integrated mode, Local System account

Telerik Controls do not respond on click events.
RadTabStrip, RadComboBox, RadMenu, RadToolbar

Can see JS error in Web developer tools:
Uncaught ReferenceError: Sys is not defined Uncaught ReferenceError: Telerik is not defined
and many of those:
Failed to load resource: the server responded with a status of 404 (Not Found) ....


web config sections:
<handlers>
  
<remove
name="Telerik_Web_UI_WebResource_axd"/>
   <add name="Telerik_Web_UI_WebResource_axd" preCondition="integratedMode"
       path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"
       verb="*" />
</handlers>
<modules
runAllManagedModulesForAllRequests="true">
  <remove name="RadCompression"/>
 
<add
name="RadCompression" type="Telerik.Web.UI.RadCompression" />
</modules>
<pages enableViewStateMac="false"
clientIDMode="AutoID">
  <controls>
    <add
assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagPrefix="telerik"/>
  </controls>
</pages>

ok, found it, i was using asp ScriptManager on the master which was not registered in web config 
the solution is or register it or use the Telerik Rad.ScriptManager
Andrew
Top achievements
Rank 1
 answered on 18 Apr 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?